Skip to content

Commit a327879

Browse files
committed
feat: Add Require ESM flags to CLI scripts
Added--experimental-require-module to hashbang lines in the server start scripts for execution from the command line.
1 parent 12a8556 commit a327879

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bin/solid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/env node
1+
#!/usr/bin/env -S node --experimental-require-module
22
const startCli = require('./lib/cli')
33
startCli()

bin/solid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/env node
1+
#!/usr/bin/env -S node --experimental-require-module
22
const startCli = require('./lib/cli')
33
startCli()

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,6 @@
177177
"solid": "bin/solid"
178178
},
179179
"engines": {
180-
"node": ">=12.0"
180+
"node": ">=22.0"
181181
}
182182
}

0 commit comments

Comments
 (0)