@genesislcap/build-kit 14.152.2 → 14.153.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/utils/prompts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/utils/prompts.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAIhC,eAAO,MAAM,UAAU,YAAmB,GAAG,YAAW,GAAG,iBAAoC,CAAC;AAEhG,eAAO,MAAM,gBAAgB,uCAkB5B,CAAC;AAwBF,eAAO,MAAM,iBAAiB,gEAqB7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,gEAS/B,CAAC;AA8CF,eAAO,MAAM,OAAO,mKA+BnB,CAAC"}
|
package/dist/utils/prompts.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getData = exports.getPromptValidators = exports.getPromptDefaults = exports.validateSeedData = exports.runPrompts = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
5
6
|
const consola_1 = tslib_1.__importDefault(require("consola"));
|
|
6
7
|
const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
|
|
7
8
|
const console_1 = require("./console");
|
|
@@ -76,7 +77,7 @@ exports.getPromptValidators = getPromptValidators;
|
|
|
76
77
|
// process CLI prompt params
|
|
77
78
|
const getCLIParams = (persistedAnswers, params, defaults, dir, subdir, skipOptionalPrompts, seedMeta, details, validate) => {
|
|
78
79
|
const base = skipOptionalPrompts ? defaults : {};
|
|
79
|
-
const cliParams = Object.assign(Object.assign(Object.assign(Object.assign({}, base), persistedAnswers), params), { appName: dir, pkgName: dir, directory: dir, appSeed: {
|
|
80
|
+
const cliParams = Object.assign(Object.assign(Object.assign(Object.assign({}, base), persistedAnswers), params), { appName: (0, node_path_1.basename)(dir), pkgName: (0, node_path_1.basename)(dir), directory: (0, node_path_1.basename)(dir), appSeed: {
|
|
80
81
|
type: seedMeta.local ? 'local' : 'remote',
|
|
81
82
|
name: seedMeta.seed,
|
|
82
83
|
description: details.description,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/build-kit",
|
|
3
3
|
"description": "Build utilities & types",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.153.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@esbuild-kit/cjs-loader": "2.4.2",
|
|
39
|
-
"@genesislcap/foundation-testing": "14.
|
|
39
|
+
"@genesislcap/foundation-testing": "14.153.0",
|
|
40
40
|
"@types/http-proxy": "^1.17.8",
|
|
41
41
|
"@types/node": "^20.8.7",
|
|
42
42
|
"tsm": "^2.2.1",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "2354510b7a853c207ac7fb9e245decb21ef0d7af"
|
|
55
55
|
}
|
package/src/utils/prompts.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { basename } from 'node:path';
|
|
1
2
|
import consola from 'consola';
|
|
2
3
|
import inquirer from 'inquirer';
|
|
3
4
|
import type { Question } from 'inquirer';
|
|
@@ -99,9 +100,9 @@ const getCLIParams = (
|
|
|
99
100
|
...base,
|
|
100
101
|
...persistedAnswers,
|
|
101
102
|
...params,
|
|
102
|
-
appName: dir,
|
|
103
|
-
pkgName: dir,
|
|
104
|
-
directory: dir,
|
|
103
|
+
appName: basename(dir),
|
|
104
|
+
pkgName: basename(dir),
|
|
105
|
+
directory: basename(dir),
|
|
105
106
|
appSeed: {
|
|
106
107
|
type: seedMeta.local ? 'local' : 'remote',
|
|
107
108
|
name: seedMeta.seed,
|