@willbooster/wb 22.32.2 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/index.js +6 -2
- package/dist/index.js +23 -23
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## Supported Platforms
|
|
6
6
|
|
|
7
|
-
`wb`
|
|
7
|
+
`wb` runs on macOS and Linux with Bun >= 1.4.4 or Node.js >= 26. The packaged command uses Bun (`bun wb <command>`). To run it with Node.js, invoke `bin/index.js` with `node`. Keep real Node.js 26 on `PATH` for tools such as Playwright, Wrangler, and vinext.
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
package/bin/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
if (!process.versions.bun && Number(process.versions.node.split('.')[0]) < 26) {
|
|
4
|
+
throw new Error('wb requires Node.js >= 26 or Bun >= 1.4.4.');
|
|
5
|
+
}
|
|
2
6
|
|
|
3
7
|
import { protectRunScriptArgs } from './runArgs.js';
|
|
4
8
|
|
|
@@ -9,7 +13,7 @@ if (process.argv[2] === 'dotenv') {
|
|
|
9
13
|
const { startAutoGcIfDue } = await import('../dist/gc.js');
|
|
10
14
|
startAutoGcIfDue('dotenv');
|
|
11
15
|
const { runDotenvCommand } = await import('./dotenv.js');
|
|
12
|
-
|
|
16
|
+
runDotenvCommand(process.argv.slice(3));
|
|
13
17
|
} else {
|
|
14
18
|
await import('../dist/index.js');
|
|
15
19
|
}
|