Fixed startup.

feature/bun
SamTV12345 2023-10-02 22:24:58 +02:00
parent 752c0fa063
commit e319711e80
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -67,7 +67,7 @@
"terser": "^5.20.0", "terser": "^5.20.0",
"threads": "^1.7.0", "threads": "^1.7.0",
"tinycon": "0.6.8", "tinycon": "0.6.8",
"ueberdb2": "^4.2.13", "ueberdb2": "^4.2.17",
"underscore": "1.13.6", "underscore": "1.13.6",
"unorm": "1.6.0", "unorm": "1.6.0",
"wtfnode": "^0.9.1" "wtfnode": "^0.9.1"

View File

@ -111,7 +111,7 @@ exports.getPackages = async () => {
// * The `--no-production` flag is required (or the `NODE_ENV` environment variable must be // * The `--no-production` flag is required (or the `NODE_ENV` environment variable must be
// unset or set to `development`) because otherwise `npm ls` will not mention any packages // unset or set to `development`) because otherwise `npm ls` will not mention any packages
// that are not included in `package.json` (which is expected to not exist). // that are not included in `package.json` (which is expected to not exist).
const cmd = ['bun', 'ls', '--long', '--json', '--depth=0', '--no-production']; const cmd = ['npm', 'ls', '--long', '--json', '--depth=0', '--no-production'];
const {dependencies = {}} = JSON.parse(await runCmd(cmd, {stdio: [null, 'string']})); const {dependencies = {}} = JSON.parse(await runCmd(cmd, {stdio: [null, 'string']}));
await Promise.all(Object.entries(dependencies).map(async ([pkg, info]) => { await Promise.all(Object.entries(dependencies).map(async ([pkg, info]) => {
if (!pkg.startsWith(exports.prefix)) { if (!pkg.startsWith(exports.prefix)) {