create-gasket-app 6.46.3-cli.0 → 6.46.6

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/lib/index.js CHANGED
@@ -1,16 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const { fork } = require('child_process');
4
- const path = require('path');
5
-
6
3
  const [, , ...args] = process.argv;
7
4
 
8
- function main() {
9
- return fork(
10
- path.join(__dirname, '..', 'node_modules', '.bin', 'gasket'),
11
- ['create', ...args],
12
- { stdio: 'inherit', stdin: 'inherit', stderr: 'inherit' }
13
- );
14
- }
15
-
16
- main();
5
+ require('./main')(...args);
package/lib/main.js ADDED
@@ -0,0 +1,19 @@
1
+ const { fork } = require('child_process');
2
+
3
+ /**
4
+ * Executes the @gasket/cli passing through the create command and any arguments.
5
+ *
6
+ * @param {string[]} args - create command arguments
7
+ * @returns {ChildProcess} process
8
+ */
9
+ function main(...args) {
10
+ const gasketBin = require.resolve('@gasket/cli/bin/run');
11
+
12
+ return fork(
13
+ gasketBin,
14
+ ['create', ...args],
15
+ { stdio: 'inherit', stdin: 'inherit', stderr: 'inherit' }
16
+ );
17
+ }
18
+
19
+ module.exports = main;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gasket-app",
3
- "version": "6.46.3-cli.0",
3
+ "version": "6.46.6",
4
4
  "description": "starter pack for creating a gasket app",
5
5
  "main": "lib",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "homepage": "https://github.com/godaddy/gasket/tree/main/packages/create-gasket-app",
33
33
  "dependencies": {
34
- "@gasket/cli": "^6.46.3-cli.0"
34
+ "@gasket/cli": "^6.46.4"
35
35
  },
36
36
  "devDependencies": {
37
37
  "cross-env": "^7.0.3",
@@ -57,5 +57,5 @@
57
57
  "eslintIgnore": [
58
58
  "test/fixtures"
59
59
  ],
60
- "gitHead": "601fda81b813f6158bfedbdb89f64118daa13600"
60
+ "gitHead": "fa8d4f8420942e51537015f231ef51385366834f"
61
61
  }