@genesislcap/build-kit 15.6.2 → 15.7.0-ts7.1

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":"archive.d.ts","sourceRoot":"","sources":["../../src/utils/archive.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,GAAU,KAAK,MAAM,EAAE,aAAa,MAAM,EAAE,gBAAY,kBAkBnF,CAAC"}
1
+ {"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../src/utils/archive.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe,QAAe,MAAM,eAAe,MAAM,oCAkBrE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/utils/args.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,MAI1C,CAAC"}
1
+ {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/utils/args.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAI1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-context.d.ts","sourceRoot":"","sources":["../../src/utils/build-context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIjD,eAAO,MAAM,gBAAgB,GAAU,QAAG,EAAE,SAAS,OAAO,EAAE,YAAO,KAAG,OAAO,CAAC,YAAY,CAmC3F,CAAC"}
1
+ {"version":3,"file":"build-context.d.ts","sourceRoot":"","sources":["../../src/utils/build-context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIjD,eAAO,MAAM,gBAAgB,sBAAwB,OAAO,mBAAY,OAAO,CAAC,YAAY,CAmC3F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"child-process.d.ts","sourceRoot":"","sources":["../../src/utils/child-process.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,UAAU;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,GAAG,GAAI,QAAG,EAAE,YAAO,EAAE,UAAS,UAAe,8DAwBzD,CAAC;AASF,eAAO,MAAM,QAAQ,GAAU,QAAG,EAAE,YAAO,EAAE,UAAS,UAAe,KAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAwC3F,CAAC;AAcF,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,SAerC,CAAC"}
1
+ {"version":3,"file":"child-process.d.ts","sourceRoot":"","sources":["../../src/utils/child-process.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,UAAU;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,GAAG,qCAA2B,UAAU,8DAwBpD,CAAC;AASF,eAAO,MAAM,QAAQ,qCAAiC,UAAU,KAAQ,OAAO,CAAC,KAAK,GAAG,IAAI,CAwC3F,CAAC;AAcF,eAAO,MAAM,UAAU,QAAS,MAAM,SAerC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAuC7C,eAAO,MAAM,UAAU,GAAU,aAAa,WAAW,iBAMxD,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAuC7C,eAAO,MAAM,UAAU,gBAAuB,WAAW,iBAMxD,CAAC"}
@@ -6,5 +6,5 @@ export declare const getPublicPath: (fallback?: string) => string;
6
6
  export declare const setNodeEnv: (targetEnv: ENV) => void;
7
7
  export declare const loadEnvFiles: (ctx: BuildContext) => void;
8
8
  export declare const setEnvVars: (ctx: BuildContext) => void;
9
- export declare const resolveDefineConfig: (patterns: string[], httpConfig?: object, builder?: "webpack" | "vite") => Record<string, string>;
9
+ export declare const resolveDefineConfig: (patterns: string[], httpConfig?: object, builder?: 'webpack' | 'vite') => Record<string, string>;
10
10
  //# sourceMappingURL=env.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/utils/env.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,WAAU,MAAY,KAAG,MAEtD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,GAAG,SAOxC,CAAC;AA0BF,eAAO,MAAM,YAAY,GAAI,KAAK,YAAY,SAgB7C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,YAAY,SAe3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAAE,EAClB,aAAa,MAAM,EACnB,UAAU,SAAS,GAAG,MAAM,KAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,CAcnB,CAAC"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/utils/env.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa,cAAc,MAAM,KAAS,MAEtD,CAAC;AAEF,eAAO,MAAM,UAAU,cAAe,GAAG,SAOxC,CAAC;AA0BF,eAAO,MAAM,YAAY,QAAS,YAAY,SAgB7C,CAAC;AAEF,eAAO,MAAM,UAAU,QAAS,YAAY,SAe3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,aACpB,MAAM,EAAE,eACL,MAAM,YACT,SAAS,GAAG,MAAM,KAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,CAcnB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { PackageJson } from 'pkg-types';
2
2
  export declare const getFederatedPkgName: (pkgName?: string) => string;
3
3
  export declare const resolveFederationConfig: (federation: {
4
- remotes: any[];
5
- shared: any[];
4
+ remotes: undefined[];
5
+ shared: undefined[];
6
6
  }, packageJSON: PackageJson) => Promise<{
7
7
  remotes: PackageJson;
8
8
  shared: any;
@@ -1 +1 @@
1
- {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../src/utils/federation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,eAAO,MAAM,mBAAmB,GAAI,gBAAY,WAAwC,CAAC;AA0BzF,eAAO,MAAM,uBAAuB,GAClC;;;CAAwC,EACxC,aAAa,WAAW;;;EASzB,CAAC"}
1
+ {"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../../src/utils/federation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,eAAO,MAAM,mBAAmB,8BAAwD,CAAC;AA0BzF,eAAO,MAAM,uBAAuB;IACnB,OAAO;IAAM,MAAM;gBACrB,WAAW;;;EASzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/utils/fs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAK/C;;GAEG;AACH,eAAO,MAAM,EAAE,GAAU,OAAO,MAAM,GAAG,MAAM,EAAE,qBAGlC,CAAC;AAEhB,eAAO,MAAM,MAAM,GAAI,SAAS,QAAQ,EAAE,SAAS,QAAQ,SAAiC,CAAC;AAE7F,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CACd;AAED,eAAO,MAAM,YAAY,GACvB,cAAS,EACT,UAAU,MAAM,OAAO,YAAS,EAChC,UAAU,MAAM,OAAO,KAAG,OAAe,KACxC,MAAM,EAwBR,CAAC"}
1
+ {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/utils/fs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAK/C;;GAEG;AACH,eAAO,MAAM,EAAE,UAAiB,MAAM,GAAG,MAAM,EAAE,qBAGlC,CAAC;AAEhB,eAAO,MAAM,MAAM,YAAa,QAAQ,WAAW,QAAQ,SAAiC,CAAC;AAE7F,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CACd;AAED,eAAO,MAAM,YAAY,mCAEP,OAAO,8BACP,OAAO,KAAG,OAAO,KAChC,MAAM,EAwBR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"handlebars.d.ts","sourceRoot":"","sources":["../../src/utils/handlebars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AA4D5E,eAAO,MAAM,MAAM,GAAI,aAAQ,EAAE,SAAI,WAAuC,CAAC;AAE7E,eAAO,MAAM,UAAU,GACrB,MAAM,oBAAoB,EAC1B,MAAM,MAAM,EACZ,eAAe,oBAAoB,SAKpC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,iBAAY,SAGzD,CAAC"}
1
+ {"version":3,"file":"handlebars.d.ts","sourceRoot":"","sources":["../../src/utils/handlebars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AA4D5E,eAAO,MAAM,MAAM,sCAAyD,CAAC;AAE7E,eAAO,MAAM,UAAU,SACf,oBAAoB,QACpB,MAAM,iBACG,oBAAoB,SAKpC,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,4BAG3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/utils/json.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAO,MAAM,SAAS,GAAI,SAAI,EAAE,SAAI,SAMnC,CAAC"}
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/utils/json.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAO,MAAM,SAAS,gCAMrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"npm.d.ts","sourceRoot":"","sources":["../../src/utils/npm.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG7C,eAAO,MAAM,UAAU,GAAI,OAAE,EAAE,gBAAuB,QAUrD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAU,KAAK,MAAM,E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EAAE,CAoB7E,CAAC;AAeJ,eAAO,MAAM,gBAAgB,uDAqB5B,CAAC;AAGF,eAAO,MAAM,iBAAiB,uBAG7B,CAAC;AAGF,eAAO,MAAM,SAAS,QAAS,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAe,WAAW,kBAOvD,CAAC;AAoCF,eAAO,MAAM,cAAc,QACpB,WAAW,cACJ,MAAM,WACT,MAAM,EAAE,YACR,MAAM,EAAE;UAjCR,MAAM;QAAM,MAAM;UAAQ,MAAM;GAuC1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/utils/object.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,KAAK,OAAO,OAKnC,CAAC;AAET,eAAO,MAAM,iBAAiB,GAAI,UAAK,EAAE,gBAAW,EAAE,iBAAY;;CAG/D,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,KAAK,OAAO,EAAE,aAAa,MAAM,EAAE,OAM1D,CAAC"}
1
+ {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/utils/object.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,QAAS,OAAO,OAKnC,CAAC;AAET,eAAO,MAAM,iBAAiB;;CAG3B,CAAC;AAEJ,eAAO,MAAM,cAAc,QAAS,OAAO,eAAe,MAAM,EAAE,OAM1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/utils/prompts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,eAAO,MAAM,UAAU,GAAU,SAAS,GAAG,EAAE,UAAS,GAAQ,iBAA+B,CAAC;AAEhG,eAAO,MAAM,gBAAgB,GAAI,SAAI,EAAE,eAAU,EAAE,aAAQ,UAkB1D,CAAC;AAwBF,eAAO,MAAM,iBAAiB,GAAU,YAAO,wCAqB9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,YAAO,wCAShD,CAAC;AA8CF,eAAO,MAAM,OAAO,GAClB,qBAAgB,EAChB,YAAO,EACP,YAAO,EACP,aAAQ,EACR,aAAQ,EACR,WAAM,EACN,QAAG,EACH,wBAAmB,EACnB,aAAQ,iBAsBT,CAAC"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/utils/prompts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,eAAO,MAAM,UAAU,YAAmB,GAAG,YAAW,GAAG,iBAAoC,CAAC;AAEhG,eAAO,MAAM,gBAAgB,sDAkB5B,CAAC;AAwBF,eAAO,MAAM,iBAAiB,uDAqB7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,uDAS/B,CAAC;AA8CF,eAAO,MAAM,OAAO,mKA+BnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/utils/proxy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,gBAAW,KAAG,MACwC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,iBAAa,EAAE,kBAAc,WAGpE,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,C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;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,gBAAgB,YAAY,gBAAgB,KAAQ,UAAU,GAAG,SAwC7E,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAY,gBAAgB,KAAQ,aAAa,EAWlF,CAAC"}
@@ -74,7 +74,8 @@ exports.createDevProxy = createDevProxy;
74
74
  * @public
75
75
  */
76
76
  const createDevProxies = (config = {}) => {
77
- var _a, _b;
77
+ var _a;
78
+ var _b;
78
79
  if (!config.target && !process.env.API_HOST) {
79
80
  return undefined;
80
81
  }
@@ -82,12 +83,12 @@ const createDevProxies = (config = {}) => {
82
83
  const publicPath = process.env.PUBLIC_PATH || '/';
83
84
  const apiBasePath = `${publicPath}${apiPrefix}`;
84
85
  const paths = Array.isArray(config.paths) ? config.paths : ['/sm', '/sso', apiBasePath];
85
- const target = (_a = config.target) !== null && _a !== void 0 ? _a : (0, exports.convertWsEndpointToHTTP)(process.env.API_HOST, apiPrefix);
86
+ const target = (_b = config.target) !== null && _b !== void 0 ? _b : (0, exports.convertWsEndpointToHTTP)(process.env.API_HOST, apiPrefix);
86
87
  const defaultConfig = Object.assign(Object.assign({}, config), { target });
87
88
  const proxies = paths.reduce((prev, curr) => (Object.assign(Object.assign({}, prev), (0, exports.createDevProxy)(Object.assign(Object.assign({}, defaultConfig), { path: curr })))), {});
88
89
  // if we are pointing to locally running server instead of nginx
89
90
  // we need to rewrite path to top level to replicate what nginx would do
90
- if ((_b = process.env.API_HOST) === null || _b === void 0 ? void 0 : _b.includes('localhost')) {
91
+ if ((_a = process.env.API_HOST) === null || _a === void 0 ? void 0 : _a.includes('localhost')) {
91
92
  // we keep /sm for backward compatibility, but it should not be used going forward
92
93
  proxies['/sm'].pathRewrite = { '^/sm': '' };
93
94
  proxies[apiBasePath].pathRewrite = { [`^${apiBasePath}`]: '' };
@@ -1 +1 @@
1
- {"version":3,"file":"seed.commands.d.ts","sourceRoot":"","sources":["../../src/utils/seed.commands.ts"],"names":[],"mappings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IAEhB,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,cAAc,YAChB,MAAM,WACN,kBAAkB,YAClB,OAAO,kBAsEjB,CAAC"}
@@ -4,7 +4,7 @@ exports.runSeedCommand = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const node_fs_1 = require("node:fs");
6
6
  const node_path_1 = require("node:path");
7
- const consola_1 = require("consola");
7
+ const consola_1 = tslib_1.__importDefault(require("consola"));
8
8
  const types_1 = require("../types");
9
9
  const child_process_1 = require("./child-process");
10
10
  const console_1 = require("./console");
@@ -14,7 +14,7 @@ const seed_setup_1 = require("./seed.setup");
14
14
  const runSeedCommand = (dirpath_1, options_1, ...args_1) => tslib_1.__awaiter(void 0, [dirpath_1, options_1, ...args_1], void 0, function* (dirpath, options, command = types_1.COMMAND.INIT) {
15
15
  const dir = (0, node_path_1.resolve)(process.cwd(), dirpath);
16
16
  const start = Date.now();
17
- consola_1.consola.debug('CLI options', { dir, options, command });
17
+ consola_1.default.debug('CLI options', { dir, options, command });
18
18
  const isInit = command === types_1.COMMAND.INIT;
19
19
  const { insecure, seed, subdir, remote, ref, skipOptionalPrompts, params, isLogLevelVerbose, shell, scope, npm, skipInitDirCheck, skipSeedDepInstall, } = options;
20
20
  if (isLogLevelVerbose) {
@@ -22,35 +22,35 @@ const runSeedCommand = (dirpath_1, options_1, ...args_1) => tslib_1.__awaiter(vo
22
22
  process.env.DEBUG = '1';
23
23
  // Debug level https://github.com/unjs/consola#log-level
24
24
  process.env.CONSOLA_LEVEL = '4';
25
- consola_1.consola.level = 4;
25
+ consola_1.default.level = 4;
26
26
  }
27
27
  // don't overwrite if exists
28
28
  if (isInit && (0, node_fs_1.existsSync)(dir) && !skipInitDirCheck) {
29
- consola_1.consola.error(`Target directory ${(0, console_1.bold)(dir)} already exists.`);
29
+ consola_1.default.error(`Target directory ${(0, console_1.bold)(dir)} already exists.`);
30
30
  process.exit(1);
31
31
  }
32
32
  // for add operation there is no default seed - it needs to be specified explicitly
33
33
  if (!isInit && !seed) {
34
- consola_1.consola.error(`Please specify a seed.`);
34
+ consola_1.default.error(`Please specify a seed.`);
35
35
  process.exit();
36
36
  }
37
37
  // fetch remote or copy local seed
38
38
  const result = yield (0, seed_fetching_1.fetchSeed)(seed, dir, remote, ref, insecure, subdir, isInit, npm, scope);
39
- consola_1.consola.debug('Seed fetched', result);
39
+ consola_1.default.debug('Seed fetched', result);
40
40
  // NPM install in .genx folder
41
41
  if (!skipSeedDepInstall) {
42
42
  yield (0, seed_setup_1.installSeedDeps)(result.extractedSeedGenxDir, isLogLevelVerbose);
43
43
  }
44
44
  const seedInfo = yield (0, seed_meta_1.loadSeed)(result.extractedSeedGenxDir);
45
- consola_1.consola.debug('Seed loaded', seedInfo);
45
+ consola_1.default.debug('Seed loaded', seedInfo);
46
46
  // run seed configure script
47
47
  yield (0, seed_setup_1.configureSeedApp)(seedInfo, result, params, dir, skipOptionalPrompts, isInit);
48
48
  const label = isInit ? 'created' : 'updated';
49
- consola_1.consola.success(`Project successfully ${label} in ${Date.now() - start}ms.`);
49
+ consola_1.default.success(`Project successfully ${label} in ${Date.now() - start}ms.`);
50
50
  // show next steps message if defined in seed details
51
51
  const nextStepsMessage = seedInfo.details.nextStepsMessage;
52
52
  if (nextStepsMessage === null || nextStepsMessage === void 0 ? void 0 : nextStepsMessage.length) {
53
- consola_1.consola.info(`Next steps: \n` + nextStepsMessage);
53
+ consola_1.default.info(`Next steps: \n` + nextStepsMessage);
54
54
  }
55
55
  // launch shell in app dir
56
56
  if (shell) {
@@ -1 +1 @@
1
- {"version":3,"file":"seed.fetching.d.ts","sourceRoot":"","sources":["../../src/utils/seed.fetching.ts"],"names":[],"mappings":"AAKA,OA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AAE,OAAO,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,WAAW,SAChB,MAAM,OACP,MAAM,UACH,MAAM,UACN,OAAO,UACP,OAAO,KACd,QAmBF,CAAC;AA4GF,eAAO,MAAM,SAAS,SACd,MAAM,OACP,MAAM,UACH,OAAO,OACV,MAAM,YACD,OAAO,UACT,MAAM,UACN,OAAO,eACF,OAAO,sBACA,OAAO,KAC1B,OAAO,CAAC,WAAW,CA8BrB,CAAC"}
@@ -4,7 +4,7 @@ exports.fetchSeed = exports.getSeedDirs = exports.resolveNPMSeed = exports.resol
4
4
  const tslib_1 = require("tslib");
5
5
  const node_fs_1 = require("node:fs");
6
6
  const node_path_1 = require("node:path");
7
- const consola_1 = require("consola");
7
+ const consola_1 = tslib_1.__importDefault(require("consola"));
8
8
  const get_npm_tarball_url_1 = tslib_1.__importDefault(require("get-npm-tarball-url"));
9
9
  const giget_1 = require("giget");
10
10
  const archive_1 = require("./archive");
@@ -61,13 +61,13 @@ const getSeedDirs = (seed, dir, subdir, isInit, remote) => {
61
61
  exports.getSeedDirs = getSeedDirs;
62
62
  const copyLocalSeed = (dirs, ref, start) => {
63
63
  const { dir, subdir, localPath, extractedSeedDir, genxDir, extractedSeedGenxDir } = dirs;
64
- consola_1.consola.info(`Copying local seed ${(0, console_1.bold)(localPath)}`);
64
+ consola_1.default.info(`Copying local seed ${(0, console_1.bold)(localPath)}`);
65
65
  try {
66
66
  if (ref) {
67
- consola_1.consola.warn(`${(0, console_1.bold)('ref')} has no effect when used with a local seed`);
67
+ consola_1.default.warn(`${(0, console_1.bold)('ref')} has no effect when used with a local seed`);
68
68
  }
69
69
  (0, node_fs_1.cpSync)(localPath, extractedSeedDir, { recursive: true });
70
- consola_1.consola.success(`Seed copied in ${Date.now() - start}ms`);
70
+ consola_1.default.success(`Seed copied in ${Date.now() - start}ms`);
71
71
  return {
72
72
  local: true,
73
73
  genxDir,
@@ -80,49 +80,49 @@ const copyLocalSeed = (dirs, ref, start) => {
80
80
  };
81
81
  }
82
82
  catch (e) {
83
- consola_1.consola.error(`Error copying ${localPath} to ${(0, console_1.bold)(dir)}`, e);
83
+ consola_1.default.error(`Error copying ${localPath} to ${(0, console_1.bold)(dir)}`, e);
84
84
  process.exit(1);
85
85
  }
86
86
  };
87
87
  const fetchNPMSeed = (seed, ref, dirs, useDefaultNPMScope, start) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
88
88
  let success = true;
89
89
  const data = (0, exports.resolveNPMSeed)(seed, ref, useDefaultNPMScope);
90
- consola_1.consola.info(`Downloading NPM seed ${(0, console_1.bold)(data.artifact)} (dist tag ${(0, console_1.bold)(data.ref)}, subdir: ${(0, console_1.bold)(dirs.subdir || 'N/A')}) to ${(0, console_1.bold)(dirs.dir)} directory...`);
90
+ consola_1.default.info(`Downloading NPM seed ${(0, console_1.bold)(data.artifact)} (dist tag ${(0, console_1.bold)(data.ref)}, subdir: ${(0, console_1.bold)(dirs.subdir || 'N/A')}) to ${(0, console_1.bold)(dirs.dir)} directory...`);
91
91
  try {
92
92
  const version = (0, npm_1.getLatestVersion)(data.artifact, data.ref, false);
93
93
  const url = (0, get_npm_tarball_url_1.default)(data.artifact, version);
94
94
  // NPM tarballs contains top-level directory called package
95
95
  const path = dirs.subdir ? `${node_path_1.sep}package/${dirs.subdir}` : `${node_path_1.sep}package`;
96
96
  yield (0, archive_1.downloadTarball)(url, dirs.extractedSeedDir, path).catch((err) => {
97
- consola_1.consola.warn('Error downloading module', err);
97
+ consola_1.default.warn('Error downloading module', err);
98
98
  success = false;
99
99
  });
100
100
  }
101
101
  catch (err) {
102
102
  success = false;
103
- consola_1.consola.warn('Error fetching version information from the registry');
103
+ consola_1.default.warn('Error fetching version information from the registry');
104
104
  }
105
105
  // If NPM download successful return result, otherwise fall back to Git download
106
106
  if (success) {
107
- consola_1.consola.success(`Seed downloaded in ${Date.now() - start}ms`);
107
+ consola_1.default.success(`Seed downloaded in ${Date.now() - start}ms`);
108
108
  return Object.assign({ local: false, genxDir: dirs.genxDir, seed, subdir: dirs.subdir, pkg: (0, seed_meta_1.loadGenxModule)(dirs.extractedSeedGenxDir), dir: dirs.dir, extractedSeedDir: dirs.extractedSeedDir, extractedSeedGenxDir: dirs.extractedSeedGenxDir }, data);
109
109
  }
110
110
  });
111
111
  const fetchGitSeed = (seed, ref, dirs, start) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
112
112
  const data = (0, exports.resolveGitSeed)(seed, ref, dirs.subdir);
113
- consola_1.consola.info(`Downloading Git seed ${(0, console_1.bold)(data.repo)} (Ref ${(0, console_1.bold)(data.ref)}, subdir: ${(0, console_1.bold)(dirs.subdir || 'N/A')}) to ${(0, console_1.bold)(dirs.dir)} directory...`);
113
+ consola_1.default.info(`Downloading Git seed ${(0, console_1.bold)(data.repo)} (Ref ${(0, console_1.bold)(data.ref)}, subdir: ${(0, console_1.bold)(dirs.subdir || 'N/A')}) to ${(0, console_1.bold)(dirs.dir)} directory...`);
114
114
  try {
115
115
  yield (0, giget_1.downloadTemplate)(data.id, {
116
116
  dir: dirs.extractedSeedDir, // destination directory to clone to
117
117
  // auth?: string; // custom Authorization token to use for downloading template
118
118
  registry: false, // disable built-in Giget registry
119
119
  });
120
- consola_1.consola.success(`Seed downloaded in ${Date.now() - start}ms`);
120
+ consola_1.default.success(`Seed downloaded in ${Date.now() - start}ms`);
121
121
  return Object.assign({ local: false, genxDir: dirs.genxDir, seed, subdir: dirs.subdir, pkg: (0, seed_meta_1.loadGenxModule)(dirs.extractedSeedGenxDir), dir: dirs.dir, extractedSeedDir: dirs.extractedSeedDir, extractedSeedGenxDir: dirs.extractedSeedGenxDir }, data);
122
122
  }
123
123
  catch (err) {
124
124
  const error = process.env.DEBUG ? err : err.message;
125
- consola_1.consola.error(error);
125
+ consola_1.default.error(error);
126
126
  process.exit(1);
127
127
  }
128
128
  });
@@ -1 +1 @@
1
- {"version":3,"file":"seed.meta.d.ts","sourceRoot":"","sources":["../../src/utils/seed.meta.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,GAAU,QAAG;;;;;;;EAgBjC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,EAAE,eAAuB,EAAE,uBAAoB,QAc5F,CAAC"}
1
+ {"version":3,"file":"seed.meta.d.ts","sourceRoot":"","sources":["../../src/utils/seed.meta.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;EAgBpB,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM,kDAc7C,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadGenxModule = exports.loadSeed = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const node_path_1 = require("node:path");
6
- const consola_1 = require("consola");
6
+ const consola_1 = tslib_1.__importDefault(require("consola"));
7
7
  const prompts_1 = require("./prompts");
8
8
  // load seed details including prompt question defaults and validators
9
9
  const loadSeed = (dir) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
@@ -34,7 +34,7 @@ const loadGenxModule = (genxDir, module = 'package.json', warnIfMissing = true)
34
34
  }
35
35
  catch (e) {
36
36
  if (warnIfMissing) {
37
- consola_1.consola.warn(`Could not load ${module} from ${genxDir}`);
37
+ consola_1.default.warn(`Could not load ${module} from ${genxDir}`);
38
38
  }
39
39
  return {};
40
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"seed.processing.d.ts","sourceRoot":"","sources":["../../src/utils/seed.processing.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,GAAU,QAAG,EAAE,YAAY,MAAM,EAAE,kBAkB/D,CAAC;AAmCF,eAAO,MAAM,cAAc,GAAI,oBAAe,EAAE,QAAG,EAAE,SAAI,EAAE,WAAM,EAAE,qBAAgB,SAuClF,CAAC"}
1
+ {"version":3,"file":"seed.processing.d.ts","sourceRoot":"","sources":["../../src/utils/seed.processing.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,yBAA2B,MAAM,EAAE,kBAkB/D,CAAC;AAmCF,eAAO,MAAM,cAAc,yFAuC1B,CAAC"}
@@ -4,7 +4,7 @@ exports.processOptions = exports.removeExclusions = exports.PROMPT_DATA_FILE = v
4
4
  const tslib_1 = require("tslib");
5
5
  const node_fs_1 = require("node:fs");
6
6
  const node_path_1 = require("node:path");
7
- const consola_1 = require("consola");
7
+ const consola_1 = tslib_1.__importDefault(require("consola"));
8
8
  const console_1 = require("./console");
9
9
  const fs_1 = require("./fs");
10
10
  const handlebars_1 = require("./handlebars");
@@ -17,16 +17,16 @@ const removeExclusions = (dir, exclusions) => tslib_1.__awaiter(void 0, void 0,
17
17
  yield Promise.all(exclude.map((exclusion) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
18
18
  if ((0, node_fs_1.existsSync)(exclusion)) {
19
19
  yield (0, fs_1.rm)(exclusion);
20
- consola_1.consola.debug(`Excluded: ${exclusion}`);
20
+ consola_1.default.debug(`Excluded: ${exclusion}`);
21
21
  }
22
22
  else {
23
- consola_1.consola.debug(`Ignored invalid exclusion: ${exclusion}`);
23
+ consola_1.default.debug(`Ignored invalid exclusion: ${exclusion}`);
24
24
  }
25
25
  })));
26
26
  }
27
27
  catch (err) {
28
28
  const error = process.env.DEBUG ? err : err.message;
29
- consola_1.consola.error(error);
29
+ consola_1.default.error(error);
30
30
  process.exit(1);
31
31
  }
32
32
  });
@@ -38,20 +38,20 @@ const processItem = ({ base, dir: itemDir, path, isDir, ext, stats }, data, rena
38
38
  if (needsRenaming) {
39
39
  try {
40
40
  (0, node_fs_1.renameSync)((0, node_path_1.resolve)(itemDir, base), (0, node_path_1.resolve)(itemDir, baseNew));
41
- consola_1.consola.debug(`Renamed ${(0, console_1.bold)(base)} to ${(0, console_1.bold)(baseNew)}`);
41
+ consola_1.default.debug(`Renamed ${(0, console_1.bold)(base)} to ${(0, console_1.bold)(baseNew)}`);
42
42
  }
43
43
  catch (e) {
44
- consola_1.consola.error(`Error renaming ${(0, console_1.bold)(base)} to ${(0, console_1.bold)(baseNew)}`);
44
+ consola_1.default.error(`Error renaming ${(0, console_1.bold)(base)} to ${(0, console_1.bold)(baseNew)}`);
45
45
  }
46
46
  }
47
47
  // Handlebars rendering
48
48
  if (interpolationEnabled && !isDir && interpolationWhitelist.some((i) => baseNew.includes(i))) {
49
49
  try {
50
50
  (0, handlebars_1.renderFile)(pathNew, data, pathNew);
51
- consola_1.consola.debug(`Interpolated variables in ${pathNew}`);
51
+ consola_1.default.debug(`Interpolated variables in ${pathNew}`);
52
52
  }
53
53
  catch (e) {
54
- consola_1.consola.error(`Error interpolating variables in ${pathNew}`);
54
+ consola_1.default.error(`Error interpolating variables in ${pathNew}`);
55
55
  }
56
56
  }
57
57
  return { isDir, ext, dir: itemDir, base: baseNew, path: pathNew, stats };
@@ -59,7 +59,7 @@ const processItem = ({ base, dir: itemDir, path, isDir, ext, stats }, data, rena
59
59
  const processOptions = (fetchSeedResult, dir, data, isInit, persistedAnswers) => {
60
60
  var _a, _b;
61
61
  const options = ((_a = fetchSeedResult.pkg) === null || _a === void 0 ? void 0 : _a.genxSeedConfig) || {};
62
- consola_1.consola.debug('Seed options', JSON.stringify(options));
62
+ consola_1.default.debug('Seed options', JSON.stringify(options));
63
63
  if (options.processFiles) {
64
64
  const ignoreDirs = ((_b = options.processFiles) === null || _b === void 0 ? void 0 : _b.exclude) || [
65
65
  '.git',
@@ -70,10 +70,7 @@ const processOptions = (fetchSeedResult, dir, data, isInit, persistedAnswers) =>
70
70
  'gradle',
71
71
  ];
72
72
  const filter = (entry) => !ignoreDirs.includes(entry.base);
73
- const mapper = (entry) => {
74
- var _a, _b, _c, _d, _e;
75
- return processItem(entry, data, !!((_a = options.processFiles) === null || _a === void 0 ? void 0 : _a.rename), !!((_c = (_b = options.processFiles) === null || _b === void 0 ? void 0 : _b.interpolateVariables) === null || _c === void 0 ? void 0 : _c.enabled), (_e = (_d = options.processFiles) === null || _d === void 0 ? void 0 : _d.interpolateVariables) === null || _e === void 0 ? void 0 : _e.include);
76
- };
73
+ const mapper = (entry) => { var _a, _b, _c, _d, _e; return processItem(entry, data, !!((_a = options.processFiles) === null || _a === void 0 ? void 0 : _a.rename), !!((_c = (_b = options.processFiles) === null || _b === void 0 ? void 0 : _b.interpolateVariables) === null || _c === void 0 ? void 0 : _c.enabled), (_e = (_d = options.processFiles) === null || _d === void 0 ? void 0 : _d.interpolateVariables) === null || _e === void 0 ? void 0 : _e.include); };
77
74
  (0, fs_1.listAllFiles)(dir, filter, mapper);
78
75
  }
79
76
  if (options.persistAnswers) {
@@ -1 +1 @@
1
- {"version":3,"file":"seed.setup.d.ts","sourceRoot":"","sources":["../../src/utils/seed.setup.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,eAAe,GAAU,QAAG,EAAE,sBAAiB,kBAmC3D,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAC3B,aAAQ,EACR,oBAAe,EACf,WAAM,EACN,QAAG,EACH,wBAAmB,EACnB,QAAQ,OAAO,kBA2ChB,CAAC"}
1
+ {"version":3,"file":"seed.setup.d.ts","sourceRoot":"","sources":["../../src/utils/seed.setup.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,eAAe,qDAmC3B,CAAC;AAGF,eAAO,MAAM,gBAAgB,iGAMnB,OAAO,kBA2ChB,CAAC"}
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const node_fs_1 = require("node:fs");
6
6
  const node_path_1 = require("node:path");
7
7
  const changeCase = tslib_1.__importStar(require("change-case"));
8
- const consola_1 = require("consola");
8
+ const consola_1 = tslib_1.__importDefault(require("consola"));
9
9
  const child_process_1 = require("./child-process");
10
10
  const fs_1 = require("./fs");
11
11
  const handlebars_1 = require("./handlebars");
@@ -22,26 +22,26 @@ const installSeedDeps = (dir, isLogLevelVerbose) => tslib_1.__awaiter(void 0, vo
22
22
  dependencies = packageJSON.dependencies || {};
23
23
  }
24
24
  catch (e) { }
25
- consola_1.consola.debug('Seed NPM dependencies', {
25
+ consola_1.default.debug('Seed NPM dependencies', {
26
26
  targetInstallDir: dir,
27
27
  dependencyCount: Object.keys(dependencies).length,
28
28
  });
29
29
  if (Object.keys(dependencies).length !== 0) {
30
30
  const start2 = Date.now();
31
- consola_1.consola.info('Installing seed NPM dependencies...');
31
+ consola_1.default.info('Installing seed NPM dependencies...');
32
32
  yield (0, child_process_1.runAsync)(dir, 'npm install', {
33
33
  prefixCommandWithNode: false,
34
34
  exitOnError: false,
35
35
  verbose: isLogLevelVerbose,
36
36
  env: Object.assign(Object.assign({}, process.env), { NODE_ENV: 'production' }),
37
37
  }).catch((err) => {
38
- consola_1.consola.error('Unexpected error installing seed dependencies. Try re-runing with --log-level verbose');
38
+ consola_1.default.error('Unexpected error installing seed dependencies. Try re-runing with --log-level verbose');
39
39
  if (err) {
40
- consola_1.consola.error(err);
40
+ consola_1.default.error(err);
41
41
  }
42
42
  process.exit(1);
43
43
  });
44
- consola_1.consola.success(`Installed in ${Date.now() - start2}ms`);
44
+ consola_1.default.success(`Installed in ${Date.now() - start2}ms`);
45
45
  }
46
46
  });
47
47
  exports.installSeedDeps = installSeedDeps;
@@ -52,7 +52,7 @@ const configureSeedApp = (seedInfo, fetchSeedResult, params, dir, skipOptionalPr
52
52
  const persistedAnswers = (0, seed_meta_1.loadGenxModule)(fetchSeedResult.genxDir, seed_processing_1.PROMPT_DATA_FILE, false);
53
53
  // get prompt answers
54
54
  const data = yield (0, prompts_1.getData)(persistedAnswers, prompts, details, defaults, validate, params, dir, skipOptionalPrompts, fetchSeedResult);
55
- consola_1.consola.debug('Loaded seed data', data);
55
+ consola_1.default.debug('Loaded seed data', data);
56
56
  const utils = {
57
57
  writeFileWithData: handlebars_1.renderFile,
58
58
  registerPartial: handlebars_1.registerPartial,
@@ -63,7 +63,7 @@ const configureSeedApp = (seedInfo, fetchSeedResult, params, dir, skipOptionalPr
63
63
  changeCase,
64
64
  };
65
65
  // run seed configure script
66
- yield configure(data, utils).catch((e) => consola_1.consola.error(e));
66
+ yield configure(data, utils).catch((e) => consola_1.default.error(e));
67
67
  // process seed exclusions, render templates, rename files/folders
68
68
  (0, seed_processing_1.processOptions)(fetchSeedResult, fetchSeedResult.extractedSeedDir, data, isInit, persistedAnswers);
69
69
  // when adding seed, copy result from temp folder to the app root (omitting .genx folder of the seed)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/build-kit",
3
3
  "description": "Build utilities & types",
4
- "version": "15.6.2",
4
+ "version": "15.7.0-ts7.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  "unparse-args": "^1.2.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "15.6.2",
41
+ "@genesislcap/foundation-testing": "15.7.0-ts7.1",
42
42
  "@types/http-proxy": "^1.17.8",
43
43
  "@types/node": "^22.10.2",
44
44
  "tsx": "^4.7.0",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "a5781780cb56906755ddbfc4be75e221719ae4b4"
55
+ "gitHead": "cbdc6ec8914b5a75c30535e4bd15b11aff6c96fd"
56
56
  }