Skip to content

Commit

Permalink
fix win
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Jan 12, 2024
1 parent f5ddaf2 commit b7e1683
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ async function main (argv) {
}

pkg.type = 'module'
pkg.scripts['init-project'] = 'ssc init --config'
pkg.scripts.start = 'ssc build -r -o'
pkg.scripts.build = 'ssc build -o'
pkg.scripts.test = 'ssc build -r -o --test=./test/index.js --headless'
Expand All @@ -217,8 +218,8 @@ async function main (argv) {
process.stdout.write('Creating socket files...')
// Use spawn so we can pass stdio, fte is interactive
const initProcess = spawn(
'ssc',
['init', '--config'],
`npm${os.platform() === 'win32' ? '.cmd' : ''}`,
['run', 'init-project'],
{
stdio: [process.stdin, process.stdout, process.stderr]
})
Expand Down

0 comments on commit b7e1683

Please sign in to comment.