mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
fix reset script
This commit is contained in:
parent
7035ea7389
commit
504d40faab
3
scripts/bootstrap.js
vendored
3
scripts/bootstrap.js
vendored
@ -3,6 +3,7 @@
|
||||
/* eslint-disable global-require */
|
||||
|
||||
const { spawnSync } = require('child_process');
|
||||
const { join } = require('path');
|
||||
const { maxConcurrentTasks } = require('./utils/concurrency');
|
||||
|
||||
const spawn = (command, options = {}) => {
|
||||
@ -109,7 +110,7 @@ function run() {
|
||||
option: '--reset',
|
||||
command: () => {
|
||||
log.info(prefix, 'git clean');
|
||||
spawn('node -r esm ./scripts/reset.js');
|
||||
spawn(`node -r esm ${join(__dirname, 'reset.js')}`);
|
||||
},
|
||||
order: 0,
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user