@genesislcap/build-kit 14.226.0 → 14.226.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.
@@ -6,7 +6,7 @@ var ENV;
6
6
  ENV["PROD"] = "production";
7
7
  ENV["DEV"] = "development";
8
8
  ENV["TEST"] = "test";
9
- })(ENV || (exports.ENV = ENV = {}));
9
+ })(ENV = exports.ENV || (exports.ENV = {}));
10
10
  var COMMAND;
11
11
  (function (COMMAND) {
12
12
  COMMAND["BUILD"] = "build";
@@ -18,4 +18,4 @@ var COMMAND;
18
18
  COMMAND["LINT"] = "lint";
19
19
  COMMAND["INIT"] = "init";
20
20
  COMMAND["ADD"] = "add";
21
- })(COMMAND || (exports.COMMAND = COMMAND = {}));
21
+ })(COMMAND = exports.COMMAND || (exports.COMMAND = {}));
@@ -6,7 +6,7 @@ const node_fs_1 = require("node:fs");
6
6
  const consola_1 = tslib_1.__importDefault(require("consola"));
7
7
  const download_tarball_1 = tslib_1.__importDefault(require("download-tarball"));
8
8
  const tmp_1 = tslib_1.__importDefault(require("tmp"));
9
- const downloadTarball = (url_1, destination_1, ...args_1) => tslib_1.__awaiter(void 0, [url_1, destination_1, ...args_1], void 0, function* (url, destination, subPath = '') {
9
+ const downloadTarball = (url, destination, subPath = '') => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
10
10
  const tmpDir = tmp_1.default.dirSync();
11
11
  consola_1.default.debug({
12
12
  tmp: tmpDir.name,
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  export interface RunOptions {
4
2
  exitOnError?: boolean;
5
3
  prefixCommandWithNode?: boolean;
@@ -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,qCAA2B,UAAU,qDAwBpD,CAAC;AASF,eAAO,MAAM,QAAQ,qCAAiC,UAAU,KAAQ,QAAQ,KAAK,GAAG,IAAI,CAwC3F,CAAC;AAcF,eAAO,MAAM,UAAU,QAAS,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,qDAwBpD,CAAC;AASF,eAAO,MAAM,QAAQ,qCAAiC,UAAU,KAAQ,QAAQ,KAAK,GAAG,IAAI,CAwC3F,CAAC;AAcF,eAAO,MAAM,UAAU,QAAS,MAAM,SAerC,CAAC"}
@@ -28,7 +28,7 @@ const normaliseNPMCLI = (cli) => {
28
28
  }
29
29
  return cli;
30
30
  };
31
- const runAsync = (cwd_1, command_1, ...args_1) => tslib_1.__awaiter(void 0, [cwd_1, command_1, ...args_1], void 0, function* (cwd, command, options = {}) {
31
+ const runAsync = (cwd, command, options = {}) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
32
32
  const { exitOnError = true, prefixCommandWithNode = true, env = Object.assign({}, process.env), nodeArgs = '', verbose = true, } = options;
33
33
  return new Promise((resolve, reject) => {
34
34
  const chunks = command.trim().split(' ');
@@ -7,7 +7,7 @@ const npm_1 = require("./npm");
7
7
  const getFederatedPkgName = (pkgName = '') => (0, change_case_1.camelCase)(pkgName.split('/').pop());
8
8
  exports.getFederatedPkgName = getFederatedPkgName;
9
9
  const getRemoteEntry = (name, port, host = 'localhost') => `${name}@http://${host}:${port}/remoteEntry.js`;
10
- const resolveFederatedRemotes = (...args_1) => tslib_1.__awaiter(void 0, [...args_1], void 0, function* (packages = []) {
10
+ const resolveFederatedRemotes = (packages = []) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
11
11
  const packageJSONFiles = yield (0, npm_1.loadPackageJSONFiles)(packages);
12
12
  return (yield Promise.all(packageJSONFiles)).reduce((acc, packageJSON) => {
13
13
  var _a;
@@ -24,7 +24,7 @@ const resolveSharedRemotes = (packages = [], packageJSON) => packages.reduce((ac
24
24
  };
25
25
  return acc;
26
26
  }, {});
27
- const resolveFederationConfig = (...args_2) => tslib_1.__awaiter(void 0, [...args_2], void 0, function* (federation = { remotes: [], shared: [] }, packageJSON) {
27
+ const resolveFederationConfig = (federation = { remotes: [], shared: [] }, packageJSON) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
28
28
  const remotes = yield resolveFederatedRemotes(federation.remotes);
29
29
  const shared = resolveSharedRemotes(federation.shared, packageJSON);
30
30
  return Object.assign(Object.assign({}, federation), { remotes,
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { PathOrFileDescriptor } from 'node:fs';
3
2
  export declare const render: (template: any, data: any) => string;
4
3
  export declare const renderFile: (file: PathOrFileDescriptor, data: object, templateFile?: PathOrFileDescriptor) => void;
@@ -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,sCAAyD,CAAC;AAE7E,eAAO,MAAM,UAAU,SACf,oBAAoB,QACpB,MAAM,iBACG,oBAAoB,SAKpC,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,4BAG3C,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"}
package/dist/utils/npm.js CHANGED
@@ -22,7 +22,7 @@ const tryRequire = (id, rootDir = process.cwd()) => {
22
22
  }
23
23
  };
24
24
  exports.tryRequire = tryRequire;
25
- const resolveBin = (bin_1, ...args_1) => tslib_1.__awaiter(void 0, [bin_1, ...args_1], void 0, function* (bin, module = bin) {
25
+ const resolveBin = (bin, module = bin) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
26
26
  const modulePath = require.resolve(module);
27
27
  const dir = (0, node_path_1.dirname)(yield (0, pkg_types_1.resolvePackageJSON)(modulePath));
28
28
  const json = yield (0, pkg_types_1.readPackageJSON)(modulePath);
@@ -45,7 +45,7 @@ const loadPackageJSON = (dir) => tslib_1.__awaiter(void 0, void 0, void 0, funct
45
45
  return pkg;
46
46
  });
47
47
  exports.loadPackageJSON = loadPackageJSON;
48
- const loadPackageJSONFiles = (...args_2) => tslib_1.__awaiter(void 0, [...args_2], void 0, function* (packages = []) {
48
+ const loadPackageJSONFiles = (packages = []) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
49
49
  return Promise.all(packages.map((p) => {
50
50
  const dir = (0, node_path_1.dirname)(require.resolve(p));
51
51
  return (0, exports.loadPackageJSON)(dir);
@@ -6,7 +6,7 @@ const node_path_1 = require("node:path");
6
6
  const consola_1 = tslib_1.__importDefault(require("consola"));
7
7
  const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
8
8
  const console_1 = require("./console");
9
- const runPrompts = (prompts_1, ...args_1) => tslib_1.__awaiter(void 0, [prompts_1, ...args_1], void 0, function* (prompts, prevAns = {}) { return prompts(inquirer_1.default, prevAns); });
9
+ const runPrompts = (prompts, prevAns = {}) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prompts(inquirer_1.default, prevAns); });
10
10
  exports.runPrompts = runPrompts;
11
11
  const validateSeedData = (data, validators, defaults) => {
12
12
  const errors = [];
@@ -11,7 +11,7 @@ const console_1 = require("./console");
11
11
  const seed_fetching_1 = require("./seed.fetching");
12
12
  const seed_meta_1 = require("./seed.meta");
13
13
  const seed_setup_1 = require("./seed.setup");
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) {
14
+ const runSeedCommand = (dirpath, options, command = types_1.COMMAND.INIT) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
15
15
  const dir = (0, node_path_1.resolve)(process.cwd(), dirpath);
16
16
  const start = Date.now();
17
17
  consola_1.consola.debug('CLI options', { dir, options, command });
@@ -113,7 +113,7 @@ const fetchGitSeed = (seed, ref, dirs, start) => tslib_1.__awaiter(void 0, void
113
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...`);
114
114
  try {
115
115
  yield (0, giget_1.downloadTemplate)(data.id, {
116
- dir: dirs.extractedSeedDir, // destination directory to clone to
116
+ dir: dirs.extractedSeedDir,
117
117
  // auth?: string; // custom Authorization token to use for downloading template
118
118
  registry: false, // disable built-in Giget registry
119
119
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="inquirer" />
2
1
  export declare const loadSeed: (dir: any) => Promise<{
3
2
  prompts: any;
4
3
  configure: any;
@@ -1 +1 @@
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"}
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"}
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.226.0",
4
+ "version": "14.226.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@esbuild-kit/cjs-loader": "2.4.2",
40
- "@genesislcap/foundation-testing": "14.226.0",
40
+ "@genesislcap/foundation-testing": "14.226.1",
41
41
  "@types/http-proxy": "^1.17.8",
42
42
  "@types/node": "^20.8.7",
43
43
  "tsm": "^2.2.1",
44
- "typescript": "5.4.2",
44
+ "typescript": "^4.9.5",
45
45
  "uvu": "0.5.4"
46
46
  },
47
47
  "repository": {
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "92b4d205bf702945dbed4e9c998c4fd000d99e4b"
55
+ "gitHead": "e691c1741d135edca5271f338f62df8154efb99c"
56
56
  }