@pnpm/core 900.0.2 → 1001.0.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.
- package/lib/api.d.ts +0 -1
- package/lib/api.js +0 -1
- package/lib/api.js.map +1 -1
- package/lib/getPeerDependencyIssues.js +1 -1
- package/lib/getPeerDependencyIssues.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +4 -3
- package/lib/index.js.map +1 -1
- package/lib/install/checkCompatibility/BreakingChangeError.d.ts +12 -0
- package/lib/install/checkCompatibility/BreakingChangeError.js +14 -0
- package/lib/install/checkCompatibility/BreakingChangeError.js.map +1 -0
- package/lib/install/checkCompatibility/ErrorRelatedSources.d.ts +5 -0
- package/lib/install/checkCompatibility/ErrorRelatedSources.js +3 -0
- package/lib/install/checkCompatibility/ErrorRelatedSources.js.map +1 -0
- package/lib/install/checkCompatibility/ModulesBreakingChangeError.d.ts +9 -0
- package/lib/install/checkCompatibility/ModulesBreakingChangeError.js +18 -0
- package/lib/install/checkCompatibility/ModulesBreakingChangeError.js.map +1 -0
- package/lib/install/checkCompatibility/UnexpectedStoreError.d.ts +11 -0
- package/lib/install/checkCompatibility/UnexpectedStoreError.js +14 -0
- package/lib/install/checkCompatibility/UnexpectedStoreError.js.map +1 -0
- package/lib/install/checkCompatibility/UnexpectedVirtualStoreDirError.d.ts +11 -0
- package/lib/install/checkCompatibility/UnexpectedVirtualStoreDirError.js +14 -0
- package/lib/install/checkCompatibility/UnexpectedVirtualStoreDirError.js.map +1 -0
- package/lib/install/checkCompatibility/index.d.ts +6 -0
- package/lib/install/checkCompatibility/index.js +38 -0
- package/lib/install/checkCompatibility/index.js.map +1 -0
- package/lib/install/extendInstallOptions.d.ts +4 -3
- package/lib/install/extendInstallOptions.js.map +1 -1
- package/lib/install/index.d.ts +2 -9
- package/lib/install/index.js +37 -108
- package/lib/install/index.js.map +1 -1
- package/lib/install/link.d.ts +4 -4
- package/lib/install/link.js.map +1 -1
- package/lib/install/validateModules.d.ts +26 -0
- package/lib/install/validateModules.js +138 -0
- package/lib/install/validateModules.js.map +1 -0
- package/lib/parseWantedDependencies.d.ts +2 -0
- package/lib/parseWantedDependencies.js +5 -0
- package/lib/parseWantedDependencies.js.map +1 -1
- package/package.json +67 -67
- package/lib/install/index.test.d.ts +0 -1
- package/lib/install/index.test.js +0 -57
- package/lib/install/index.test.js.map +0 -1
- package/lib/link/index.d.ts +0 -11
- package/lib/link/index.js +0 -144
- package/lib/link/index.js.map +0 -1
- package/lib/link/options.d.ts +0 -32
- package/lib/link/options.js +0 -38
- package/lib/link/options.js.map +0 -1
package/lib/link/options.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.extendOptions = extendOptions;
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const normalize_registries_1 = require("@pnpm/normalize-registries");
|
|
9
|
-
async function extendOptions(opts) {
|
|
10
|
-
if (opts) {
|
|
11
|
-
for (const key in opts) {
|
|
12
|
-
if (opts[key] === undefined) {
|
|
13
|
-
delete opts[key];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
const defaultOpts = await defaults(opts);
|
|
18
|
-
const extendedOpts = { ...defaultOpts, ...opts, storeDir: defaultOpts.storeDir };
|
|
19
|
-
extendedOpts.registries = (0, normalize_registries_1.normalizeRegistries)(extendedOpts.registries);
|
|
20
|
-
return extendedOpts;
|
|
21
|
-
}
|
|
22
|
-
async function defaults(opts) {
|
|
23
|
-
const dir = opts.dir ?? process.cwd();
|
|
24
|
-
return {
|
|
25
|
-
binsDir: path_1.default.join(dir, 'node_modules', '.bin'),
|
|
26
|
-
dir,
|
|
27
|
-
force: false,
|
|
28
|
-
hoistPattern: undefined,
|
|
29
|
-
lockfileDir: opts.lockfileDir ?? dir,
|
|
30
|
-
nodeLinker: 'isolated',
|
|
31
|
-
registries: normalize_registries_1.DEFAULT_REGISTRIES,
|
|
32
|
-
storeController: opts.storeController,
|
|
33
|
-
storeDir: opts.storeDir,
|
|
34
|
-
useLockfile: true,
|
|
35
|
-
virtualStoreDirMaxLength: 120,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=options.js.map
|
package/lib/link/options.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/link/options.ts"],"names":[],"mappings":";;;;;AA4CA,sCAYC;AAxDD,gDAAuB;AACvB,qEAAoF;AA2C7E,KAAK,UAAU,aAAa,CAAE,IAAiB;IACpD,IAAI,IAAI,EAAE,CAAC;QACT,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,IAAI,CAAC,GAAwB,CAAC,KAAK,SAAS,EAAE,CAAC;gBACjD,OAAO,IAAI,CAAC,GAAwB,CAAC,CAAA;YACvC,CAAC;QACH,CAAC;IACH,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,CAAA;IACxC,MAAM,YAAY,GAAG,EAAE,GAAG,WAAW,EAAE,GAAG,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAA;IAChF,YAAY,CAAC,UAAU,GAAG,IAAA,0CAAmB,EAAC,YAAY,CAAC,UAAU,CAAC,CAAA;IACtE,OAAO,YAAY,CAAA;AACrB,CAAC;AAED,KAAK,UAAU,QAAQ,CAAE,IAAiB;IACxC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAA;IACrC,OAAO;QACL,OAAO,EAAE,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,EAAE,MAAM,CAAC;QAC/C,GAAG;QACH,KAAK,EAAE,KAAK;QACZ,YAAY,EAAE,SAAS;QACvB,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,GAAG;QACpC,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,yCAAkB;QAC9B,eAAe,EAAE,IAAI,CAAC,eAAe;QACrC,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,WAAW,EAAE,IAAI;QACjB,wBAAwB,EAAE,GAAG;KACT,CAAA;AACxB,CAAC"}
|