@rubriclab/bunl 0.0.21 → 0.0.23
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/build/client.js +8 -0
- package/client.ts +9 -0
- package/package.json +1 -1
package/build/client.js
CHANGED
|
@@ -504,10 +504,18 @@ var { values } = parseArgs({
|
|
|
504
504
|
open: {
|
|
505
505
|
type: "boolean",
|
|
506
506
|
short: "o"
|
|
507
|
+
},
|
|
508
|
+
version: {
|
|
509
|
+
type: "boolean",
|
|
510
|
+
short: "v"
|
|
507
511
|
}
|
|
508
512
|
},
|
|
509
513
|
allowPositionals: true
|
|
510
514
|
});
|
|
515
|
+
if (values.version) {
|
|
516
|
+
console.log("0.0.23");
|
|
517
|
+
process.exit();
|
|
518
|
+
}
|
|
511
519
|
if (!values.port)
|
|
512
520
|
throw "pass -p 3000";
|
|
513
521
|
var { port, domain, subdomain, open: open2 } = values;
|
package/client.ts
CHANGED
|
@@ -85,10 +85,19 @@ const { values } = parseArgs({
|
|
|
85
85
|
type: "boolean",
|
|
86
86
|
short: "o",
|
|
87
87
|
},
|
|
88
|
+
version: {
|
|
89
|
+
type: "boolean",
|
|
90
|
+
short: "v",
|
|
91
|
+
},
|
|
88
92
|
},
|
|
89
93
|
allowPositionals: true,
|
|
90
94
|
});
|
|
91
95
|
|
|
96
|
+
if (values.version) {
|
|
97
|
+
console.log(process.env.npm_package_version);
|
|
98
|
+
process.exit();
|
|
99
|
+
}
|
|
100
|
+
|
|
92
101
|
if (!values.port) throw "pass -p 3000";
|
|
93
102
|
|
|
94
103
|
const { port, domain, subdomain, open } = values;
|