create-gasket-app 7.3.1 → 7.3.3
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.
|
@@ -6,20 +6,34 @@ import { runShellCommand } from '@gasket/utils';
|
|
|
6
6
|
* @type {import('../../internal').postCreateHooks}
|
|
7
7
|
*/
|
|
8
8
|
async function postCreateHooks({ gasket, context }) {
|
|
9
|
-
const { dest } = context;
|
|
9
|
+
const { dest, packageManager } = context;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @param
|
|
14
|
-
* @returns {Promise} A promise
|
|
12
|
+
* Determines the correct command for running scripts based on the package manager.
|
|
13
|
+
* @param {string} script - The name of the script to run.
|
|
14
|
+
* @returns {Promise} A promise that resolves if the script runs successfully.
|
|
15
15
|
*/
|
|
16
16
|
async function runScript(script) {
|
|
17
|
-
|
|
17
|
+
let cmd;
|
|
18
|
+
|
|
19
|
+
switch (packageManager) {
|
|
20
|
+
case 'yarn':
|
|
21
|
+
cmd = 'yarn';
|
|
22
|
+
break;
|
|
23
|
+
case 'pnpm':
|
|
24
|
+
cmd = 'pnpm';
|
|
25
|
+
break;
|
|
26
|
+
case 'npm':
|
|
27
|
+
default:
|
|
28
|
+
cmd = 'npm';
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return await runShellCommand(cmd, ['run', script], { cwd: dest });
|
|
18
33
|
}
|
|
19
34
|
|
|
20
35
|
/**
|
|
21
|
-
* An object with one value for now, so adding more utilities
|
|
22
|
-
* in future is easy.
|
|
36
|
+
* An object with one value for now, so adding more utilities in future is easy.
|
|
23
37
|
*/
|
|
24
38
|
const utils = { runScript };
|
|
25
39
|
await gasket.exec('postCreate', context, utils);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-gasket-app",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.3",
|
|
4
4
|
"description": "starter pack for creating a gasket app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,43 +11,39 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"lib"
|
|
13
13
|
],
|
|
14
|
-
"repository":
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git+ssh://git@github.com/godaddy/gasket.git"
|
|
17
|
-
},
|
|
14
|
+
"repository": "godaddy/gasket.git",
|
|
18
15
|
"publishConfig": {
|
|
19
16
|
"access": "public"
|
|
20
17
|
},
|
|
21
18
|
"author": "GoDaddy Operating Company, LLC",
|
|
22
19
|
"license": "MIT",
|
|
23
|
-
"bugs":
|
|
24
|
-
"url": "https://github.com/godaddy/gasket/issues"
|
|
25
|
-
},
|
|
20
|
+
"bugs": "https://github.com/godaddy/gasket/issues",
|
|
26
21
|
"homepage": "https://github.com/godaddy/gasket/tree/main/packages/create-gasket-app",
|
|
27
22
|
"dependencies": {
|
|
28
|
-
"chalk": "^
|
|
23
|
+
"chalk": "^4.1.2",
|
|
29
24
|
"commander": "^12.1.0",
|
|
30
25
|
"deepmerge": "^4.3.1",
|
|
31
26
|
"diagnostics": "^2.0.2",
|
|
32
27
|
"glob": "^8.1.0",
|
|
33
28
|
"handlebars": "^4.7.8",
|
|
34
|
-
"inquirer": "6.5.2",
|
|
29
|
+
"inquirer": "^6.5.2",
|
|
35
30
|
"json5": "^2.2.3",
|
|
36
31
|
"mkdirp": "^1.0.4",
|
|
37
|
-
"ora": "3.4.0",
|
|
32
|
+
"ora": "^3.4.0",
|
|
38
33
|
"semver": "^7.7.1",
|
|
39
|
-
"@gasket/core": "
|
|
40
|
-
"@gasket/plugin-command": "
|
|
41
|
-
"@gasket/plugin-docs": "
|
|
42
|
-
"@gasket/plugin-docusaurus": "
|
|
43
|
-
"@gasket/plugin-dynamic-plugins": "
|
|
44
|
-
"@gasket/plugin-git": "
|
|
45
|
-
"@gasket/plugin-logger": "
|
|
46
|
-
"@gasket/plugin-metadata": "
|
|
47
|
-
"@gasket/request": "
|
|
48
|
-
"@gasket/utils": "
|
|
34
|
+
"@gasket/core": "7.3.2",
|
|
35
|
+
"@gasket/plugin-command": "7.3.3",
|
|
36
|
+
"@gasket/plugin-docs": "7.3.3",
|
|
37
|
+
"@gasket/plugin-docusaurus": "7.3.2",
|
|
38
|
+
"@gasket/plugin-dynamic-plugins": "7.3.3",
|
|
39
|
+
"@gasket/plugin-git": "7.3.2",
|
|
40
|
+
"@gasket/plugin-logger": "7.3.2",
|
|
41
|
+
"@gasket/plugin-metadata": "7.3.4",
|
|
42
|
+
"@gasket/request": "7.3.3",
|
|
43
|
+
"@gasket/utils": "7.3.2"
|
|
49
44
|
},
|
|
50
45
|
"devDependencies": {
|
|
46
|
+
"@jest/globals": "^29.7.0",
|
|
51
47
|
"@types/inquirer": "^9.0.7",
|
|
52
48
|
"@types/jest": "^29.5.14",
|
|
53
49
|
"@types/node": "^20.17.19",
|
|
@@ -60,7 +56,7 @@
|
|
|
60
56
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
61
57
|
"jest": "^29.7.0",
|
|
62
58
|
"typescript": "^5.7.3",
|
|
63
|
-
"@gasket/request": "
|
|
59
|
+
"@gasket/request": "7.3.3"
|
|
64
60
|
},
|
|
65
61
|
"eslintConfig": {
|
|
66
62
|
"extends": [
|
|
@@ -98,10 +94,10 @@
|
|
|
98
94
|
"scripts": {
|
|
99
95
|
"lint": "eslint .",
|
|
100
96
|
"lint:fix": "pnpm run lint --fix",
|
|
97
|
+
"posttest": "pnpm run lint",
|
|
101
98
|
"test": "cross-env NODE_OPTIONS='--unhandled-rejections=strict --experimental-vm-modules' jest",
|
|
102
|
-
"test:watch": "pnpm run test --watch",
|
|
103
99
|
"test:coverage": "jest --coverage",
|
|
104
|
-
"
|
|
100
|
+
"test:watch": "pnpm run test --watch",
|
|
105
101
|
"typecheck": "tsc",
|
|
106
102
|
"typecheck:watch": "tsc --watch"
|
|
107
103
|
}
|