spawnpack 0.1.1 → 0.1.2
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 +21 -8
- package/dist/spawnpack.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,11 +30,17 @@ Install Bun first:
|
|
|
30
30
|
|
|
31
31
|
## Install
|
|
32
32
|
|
|
33
|
-
### Global install with Bun
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
bun add -g spawnpack
|
|
37
|
-
```
|
|
33
|
+
### Global install with Bun
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
bun add -g spawnpack
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Global install with npm
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm i -g spawnpack
|
|
43
|
+
```
|
|
38
44
|
|
|
39
45
|
### One-off run with Bun
|
|
40
46
|
|
|
@@ -51,9 +57,16 @@ bun run src/index.ts
|
|
|
51
57
|
|
|
52
58
|
## Usage
|
|
53
59
|
|
|
54
|
-
```bash
|
|
55
|
-
spawnpack
|
|
56
|
-
```
|
|
60
|
+
```bash
|
|
61
|
+
spawnpack
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Show the installed version:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
spawnpack -v
|
|
68
|
+
spawnpack --version
|
|
69
|
+
```
|
|
57
70
|
|
|
58
71
|
The wizard walks through:
|
|
59
72
|
|
package/dist/spawnpack.js
CHANGED
|
@@ -2711,6 +2711,12 @@ async function runWizard() {
|
|
|
2711
2711
|
|
|
2712
2712
|
// src/index.ts
|
|
2713
2713
|
var teal3 = (value) => `\x1B[38;2;47;208;181m${value}\x1B[39m`;
|
|
2714
|
+
var args = new Set(process.argv.slice(2));
|
|
2715
|
+
if (args.has("-v") || args.has("--version")) {
|
|
2716
|
+
const packageJson = await Bun.file(new URL("../package.json", import.meta.url)).json();
|
|
2717
|
+
console.log(packageJson.version);
|
|
2718
|
+
process.exit(0);
|
|
2719
|
+
}
|
|
2714
2720
|
var config = await runWizard();
|
|
2715
2721
|
if (config === null) {
|
|
2716
2722
|
process.exit(0);
|