Skip to content

Commit 4466ccc

Browse files
fix: use jss binary from node_modules/.bin instead of direct file path
1 parent 58b10d8 commit 4466ccc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ console.log('\n' + chalk.dim('Press ') + chalk.bold.red('Ctrl+C') + chalk.dim('
119119
console.log(chalk.yellow('⏳ Initializing server components...\n'));
120120

121121
// Find jss binary
122-
const jssBin = join(__dirname, 'node_modules', 'javascript-solid-server', 'bin', 'jss.js');
122+
const jssBin = join(__dirname, 'node_modules', '.bin', 'jss');
123123

124124
// Build jss arguments
125125
const jssArgs = [
@@ -136,7 +136,7 @@ if (!options.multiuser) {
136136
}
137137

138138
// Start JSS
139-
const jss = spawn('node', [jssBin, ...jssArgs], {
139+
const jss = spawn(jssBin, jssArgs, {
140140
stdio: 'inherit',
141141
env: {
142142
...process.env,

0 commit comments

Comments
 (0)