create-gasket-app 7.0.0-next.29 → 7.0.0-next.30

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.
@@ -20,7 +20,7 @@ async function loadPresets({ context }) {
20
20
  packageManager: context.packageManager,
21
21
  dest: tmpDir
22
22
  });
23
- const pkgVerb = pkgManager.isYarn ? 'add' : 'install';
23
+ const pkgVerb = pkgManager.manager === 'yarn' ? 'add' : 'install';
24
24
 
25
25
  const remotePresets = context.rawPresets.map(async preset => {
26
26
  const parts = hasVersion.test(preset) && preset.split('@').filter(Boolean);
@@ -1,5 +1,7 @@
1
1
  import { Command } from 'commander';
2
- import { processArgs, processOptions, createOption } from './index.js';
2
+ import { processArgs } from './process-args.js';
3
+ import { processOptions } from './process-options.js';
4
+ import { createOption } from './create-option.js';
3
5
  const program = new Command();
4
6
 
5
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gasket-app",
3
- "version": "7.0.0-next.29",
3
+ "version": "7.0.0-next.30",
4
4
  "description": "starter pack for creating a gasket app",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "homepage": "https://github.com/godaddy/gasket/tree/main/packages/create-gasket-app",
35
35
  "dependencies": {
36
- "@gasket/core": "^7.0.0-next.29",
37
- "@gasket/plugin-git": "^7.0.0-next.29",
38
- "@gasket/plugin-logger": "^7.0.0-next.29",
39
- "@gasket/utils": "^7.0.0-next.29",
36
+ "@gasket/core": "^7.0.0-next.30",
37
+ "@gasket/plugin-git": "^7.0.0-next.30",
38
+ "@gasket/plugin-logger": "^7.0.0-next.30",
39
+ "@gasket/utils": "^7.0.0-next.30",
40
40
  "commander": "^12.0.0",
41
41
  "deepmerge": "^4.3.1",
42
42
  "glob": "^8.1.0",
@@ -79,5 +79,5 @@
79
79
  "jest": {
80
80
  "transform": {}
81
81
  },
82
- "gitHead": "7068aef0e4e8b7aaeb6e4e675d02858779d59ac9"
82
+ "gitHead": "0249719e07092027d6e8a077de03ec0bf5eb5124"
83
83
  }
package/lib/main.js DELETED
@@ -1,20 +0,0 @@
1
- import { fork } from 'child_process';
2
- import { createRequire } from 'module';
3
- const require = createRequire(import.meta.url);
4
-
5
- /**
6
- * Executes the @gasket/cli passing through the create command and any arguments.
7
- *
8
- * @param {string[]} args - create command arguments
9
- * @returns {ChildProcess} process
10
- */
11
- export default function main(...args) {
12
- // import.meta.resolve is not available in Jest without babel transform
13
- const gasketBin = require.resolve('@gasket/cli/bin/run');
14
-
15
- return fork(
16
- gasketBin,
17
- ['create', ...args],
18
- { stdio: 'inherit', stdin: 'inherit', stderr: 'inherit' }
19
- );
20
- }