create-gasket-app 7.0.0-next.67 → 7.0.0-next.68
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.
|
@@ -5,7 +5,7 @@ import { default as gasketUtils } from '@gasket/utils';
|
|
|
5
5
|
import { mkdtemp } from 'fs/promises';
|
|
6
6
|
import { createRequire } from 'module';
|
|
7
7
|
const require = createRequire(import.meta.url);
|
|
8
|
-
const hasVersionOrTag = /@([\^~]?\d+\.\d+\.\d+(?:-[\d\w.-]+)?|[\^~]?\d+\.\d+\.\d+|[a-zA-Z]
|
|
8
|
+
const hasVersionOrTag = /@([\^~]?\d+\.\d+\.\d+(?:-[\d\w.-]+)?|[\^~]?\d+\.\d+\.\d+|[a-zA-Z]+|file:.+)$/;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* loadPresets - Load presets to temp directory
|
|
@@ -36,7 +36,7 @@ async function loadPresets({ context }) {
|
|
|
36
36
|
// We can't specify the cwd for the import, so we need to use the full path
|
|
37
37
|
// expects type:module & "main": "lib/fullpath.js"
|
|
38
38
|
const mod = await import(`${modPath}/${name}/${pkgFile.main}`);
|
|
39
|
-
return mod.default || mod;
|
|
39
|
+
return mod.default?.default || mod.default || mod;
|
|
40
40
|
} catch (err) {
|
|
41
41
|
throw new Error(`Failed to install preset ${name}${version}: ${err.message}`);
|
|
42
42
|
}
|
|
@@ -48,7 +48,7 @@ async function loadPresets({ context }) {
|
|
|
48
48
|
await pkgManager.exec(pkgVerb, [localPresetPath]);
|
|
49
49
|
const pkgFile = require(path.join(localPresetPath, 'package.json'));
|
|
50
50
|
const mod = await import(`${modPath}/${pkgFile.name}/${pkgFile.main}`);
|
|
51
|
-
return mod.default || mod;
|
|
51
|
+
return mod.default?.default || mod.default || mod;
|
|
52
52
|
} catch (err) {
|
|
53
53
|
throw new Error(`Failed to install local preset ${localPresetPath}`);
|
|
54
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-gasket-app",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.68",
|
|
4
4
|
"description": "starter pack for creating a gasket app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,14 +33,14 @@
|
|
|
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.
|
|
37
|
-
"@gasket/plugin-command": "7.0.0-next.
|
|
38
|
-
"@gasket/plugin-docs": "7.0.0-next.
|
|
39
|
-
"@gasket/plugin-docusaurus": "7.0.0-next.
|
|
40
|
-
"@gasket/plugin-git": "7.0.0-next.
|
|
41
|
-
"@gasket/plugin-logger": "7.0.0-next.
|
|
42
|
-
"@gasket/plugin-metadata": "7.0.0-next.
|
|
43
|
-
"@gasket/utils": "7.0.0-next.
|
|
36
|
+
"@gasket/core": "7.0.0-next.68",
|
|
37
|
+
"@gasket/plugin-command": "7.0.0-next.68",
|
|
38
|
+
"@gasket/plugin-docs": "7.0.0-next.68",
|
|
39
|
+
"@gasket/plugin-docusaurus": "7.0.0-next.68",
|
|
40
|
+
"@gasket/plugin-git": "7.0.0-next.68",
|
|
41
|
+
"@gasket/plugin-logger": "7.0.0-next.68",
|
|
42
|
+
"@gasket/plugin-metadata": "7.0.0-next.68",
|
|
43
|
+
"@gasket/utils": "7.0.0-next.68",
|
|
44
44
|
"commander": "^12.0.0",
|
|
45
45
|
"deepmerge": "^4.3.1",
|
|
46
46
|
"glob": "^8.1.0",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"untildify": "^4.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
+
"@types/inquirer": "^9.0.7",
|
|
58
59
|
"cross-env": "^7.0.3",
|
|
59
60
|
"diagnostics": "^2.0.2",
|
|
60
61
|
"dotenv": "^16.4.5",
|
|
@@ -83,5 +84,5 @@
|
|
|
83
84
|
"jest": {
|
|
84
85
|
"transform": {}
|
|
85
86
|
},
|
|
86
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "13b1cf962202f9d7212412d337cbfcd38cd92c2a"
|
|
87
88
|
}
|