@naseej/blox 1.4.0 → 1.4.1

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.
Files changed (3) hide show
  1. package/bin/run +19 -1
  2. package/dist/run.js +1 -1
  3. package/package.json +1 -1
package/bin/run CHANGED
@@ -1,3 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- require('../dist/run')
3
+ const disableWarningFlag = '--disable-warning=DEP0190';
4
+
5
+ if (!process.execArgv.includes(disableWarningFlag)) {
6
+ const { spawn } = require('node:child_process');
7
+ const args = [disableWarningFlag, ...process.execArgv, ...process.argv.slice(1)];
8
+
9
+ const child = spawn(process.execPath, args, { stdio: 'inherit' });
10
+ child.on('exit', (code, signal) => {
11
+ if (signal) {
12
+ process.kill(process.pid, signal);
13
+ return;
14
+ }
15
+
16
+ process.exit(code ?? 0);
17
+ });
18
+ return;
19
+ }
20
+
21
+ require('../dist/run');
package/dist/run.js CHANGED
@@ -31,7 +31,7 @@ var option = (flags, description) => {
31
31
  };
32
32
 
33
33
  // package.json
34
- var version = "1.4.0";
34
+ var version = "1.4.1";
35
35
 
36
36
  // src/commands/add/index.ts
37
37
  var import_fs_extra8 = __toESM(require("fs-extra"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naseej/blox",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "blox cli",
5
5
  "bin": {
6
6
  "blox": "./bin/run"