@genesislcap/build-kit 14.353.1 → 14.353.2
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.
- package/dist/utils/npm.d.ts +1 -1
- package/dist/utils/npm.d.ts.map +1 -1
- package/dist/utils/npm.js +4 -2
- package/package.json +4 -5
package/dist/utils/npm.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PackageJson } from 'pkg-types';
|
|
2
2
|
import type { BuildContext } from '../types';
|
|
3
3
|
export declare const tryRequire: (id: any, rootDir?: string) => any;
|
|
4
|
-
export declare const resolveBin: (bin: string, module?: string) => Promise<string>;
|
|
4
|
+
export declare const resolveBin: (bin: string, module?: string, from?: string) => Promise<string>;
|
|
5
5
|
export declare const loadPackageJSON: (dir?: string) => Promise<PackageJson>;
|
|
6
6
|
export declare const loadPackageJSONFiles: (packages?: any[]) => Promise<PackageJson[]>;
|
|
7
7
|
export declare const getLatestVersion: (name: any, range?: string, verbose?: boolean) => any;
|
package/dist/utils/npm.d.ts.map
CHANGED
|
@@ -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;AAC7C,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,EAAE,SAAQ,MAAY,
|
|
1
|
+
{"version":3,"file":"npm.d.ts","sourceRoot":"","sources":["../../src/utils/npm.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,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,EAAE,SAAQ,MAAY,EAAE,OAAO,MAAM,oBAWhF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,WAAW,CAUvE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,gBAAa,KAAG,OAAO,CAAC,WAAW,EAAE,CAM7E,CAAC;AAeJ,eAAO,MAAM,gBAAgB,GAAI,SAAI,EAAE,cAAgB,EAAE,iBAAc,QAqBtE,CAAC;AAGF,eAAO,MAAM,iBAAiB,GAAI,YAAO,QAGxC,CAAC;AAGF,eAAO,MAAM,SAAS,GAAI,KAAK,YAAY;;;;;;;;WAqCjC,CAAL;aACK,CAAN;;;;;;iBAqB2P,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAu/M,CAAC;WAA+G,CAAC;cAA2H,CAAC;uBAA+d,CAAC;iBAA0Z,CAAC;qBAAkQ,CAAC;;;CAxDjmQ,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,KAAK,WAAW,kBAOvD,CAAC;AAoCF,eAAO,MAAM,cAAc,GACzB,KAAK,WAAW,EAChB,YAAY,MAAM,EAClB,SAAS,MAAM,EAAE,EACjB,UAAS,MAAM,EAAqB;UAjC3B,MAAM;QAAM,MAAM;UAAQ,MAAM;GAuC1C,CAAC"}
|
package/dist/utils/npm.js
CHANGED
|
@@ -22,8 +22,10 @@ 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) {
|
|
26
|
-
const modulePath =
|
|
25
|
+
const resolveBin = (bin_1, ...args_1) => tslib_1.__awaiter(void 0, [bin_1, ...args_1], void 0, function* (bin, module = bin, from) {
|
|
26
|
+
const modulePath = from
|
|
27
|
+
? require.resolve(module, { paths: [from] })
|
|
28
|
+
: require.resolve(module);
|
|
27
29
|
const dir = (0, node_path_1.dirname)(yield (0, pkg_types_1.resolvePackageJSON)(modulePath));
|
|
28
30
|
const json = yield (0, pkg_types_1.readPackageJSON)(modulePath);
|
|
29
31
|
const path = typeof json.bin === 'string' ? json.bin : json.bin[bin];
|
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.353.
|
|
4
|
+
"version": "14.353.2",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"copyfiles": "copyfiles --verbose cert/*.* ./dist",
|
|
14
14
|
"clean": "rimraf dist temp tsconfig.tsbuildinfo",
|
|
15
15
|
"dev": "tsc -b ./tsconfig.json -w",
|
|
16
|
-
"test": "uvu -r
|
|
16
|
+
"test": "uvu -r tsx/cjs -r ../uvu-playwright-builder/config/jsdom.setup.ts . 'test.ts' --i dist --i coverage"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"chalk": "^4.1.2",
|
|
@@ -36,10 +36,9 @@
|
|
|
36
36
|
"unparse-args": "^1.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@genesislcap/foundation-testing": "14.353.
|
|
39
|
+
"@genesislcap/foundation-testing": "14.353.2",
|
|
40
40
|
"@types/http-proxy": "^1.17.8",
|
|
41
41
|
"@types/node": "^22.10.2",
|
|
42
|
-
"tsm": "^2.2.1",
|
|
43
42
|
"tsx": "^4.7.0",
|
|
44
43
|
"uvu": "0.5.4"
|
|
45
44
|
},
|
|
@@ -51,5 +50,5 @@
|
|
|
51
50
|
"publishConfig": {
|
|
52
51
|
"access": "public"
|
|
53
52
|
},
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7576474e932416a5af4096e63504681eb01e0c8c"
|
|
55
54
|
}
|