@yarnpkg/plugin-pnp 4.0.2 → 4.0.4
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/jsInstallUtils.js +4 -5
- package/lib/pnpUtils.js +1 -2
- package/package.json +7 -7
package/lib/jsInstallUtils.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.checkManifestCompatibility = checkManifestCompatibility;
|
|
4
|
+
exports.extractBuildRequest = extractBuildRequest;
|
|
5
|
+
exports.getExtractHint = getExtractHint;
|
|
6
|
+
exports.hasBindingGyp = hasBindingGyp;
|
|
4
7
|
const core_1 = require("@yarnpkg/core");
|
|
5
8
|
const fslib_1 = require("@yarnpkg/fslib");
|
|
6
9
|
function checkManifestCompatibility(pkg) {
|
|
7
10
|
return core_1.structUtils.isPackageCompatible(pkg, core_1.nodeUtils.getArchitectureSet());
|
|
8
11
|
}
|
|
9
|
-
exports.checkManifestCompatibility = checkManifestCompatibility;
|
|
10
12
|
function extractBuildRequest(pkg, requirements, dependencyMeta, { configuration }) {
|
|
11
13
|
const directives = [];
|
|
12
14
|
for (const scriptName of [`preinstall`, `install`, `postinstall`])
|
|
@@ -27,7 +29,6 @@ function extractBuildRequest(pkg, requirements, dependencyMeta, { configuration
|
|
|
27
29
|
return { skipped: true, explain: report => report.reportWarningOnce(core_1.MessageName.INCOMPATIBLE_ARCHITECTURE, `${core_1.structUtils.prettyLocator(configuration, pkg)} The ${core_1.nodeUtils.getArchitectureName()} architecture is incompatible with this package, build skipped.`) };
|
|
28
30
|
return { skipped: false, directives };
|
|
29
31
|
}
|
|
30
|
-
exports.extractBuildRequest = extractBuildRequest;
|
|
31
32
|
const FORCED_EXTRACT_FILETYPES = new Set([
|
|
32
33
|
// Windows can't execute exe files inside zip archives
|
|
33
34
|
`.exe`,
|
|
@@ -43,9 +44,7 @@ const FORCED_EXTRACT_FILETYPES = new Set([
|
|
|
43
44
|
function getExtractHint(fetchResult) {
|
|
44
45
|
return fetchResult.packageFs.getExtractHint({ relevantExtensions: FORCED_EXTRACT_FILETYPES });
|
|
45
46
|
}
|
|
46
|
-
exports.getExtractHint = getExtractHint;
|
|
47
47
|
function hasBindingGyp(fetchResult) {
|
|
48
48
|
const bindingFilePath = fslib_1.ppath.join(fetchResult.prefixPath, `binding.gyp`);
|
|
49
49
|
return fetchResult.packageFs.existsSync(bindingFilePath);
|
|
50
50
|
}
|
|
51
|
-
exports.hasBindingGyp = hasBindingGyp;
|
package/lib/pnpUtils.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUnpluggedPath =
|
|
3
|
+
exports.getUnpluggedPath = getUnpluggedPath;
|
|
4
4
|
const core_1 = require("@yarnpkg/core");
|
|
5
5
|
const fslib_1 = require("@yarnpkg/fslib");
|
|
6
6
|
function getUnpluggedPath(locator, { configuration }) {
|
|
7
7
|
return fslib_1.ppath.resolve(configuration.get(`pnpUnpluggedFolder`), core_1.structUtils.slugifyLocator(locator));
|
|
8
8
|
}
|
|
9
|
-
exports.getUnpluggedPath = getUnpluggedPath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/plugin-pnp",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"license": "BSD-2-Clause",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
"./package.json": "./package.json"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@yarnpkg/fslib": "^3.0.
|
|
11
|
+
"@yarnpkg/fslib": "^3.0.2",
|
|
12
12
|
"@yarnpkg/plugin-stage": "^4.0.0",
|
|
13
|
-
"@yarnpkg/pnp": "^4.0.
|
|
13
|
+
"@yarnpkg/pnp": "^4.0.4",
|
|
14
14
|
"clipanion": "^4.0.0-rc.2",
|
|
15
15
|
"micromatch": "^4.0.2",
|
|
16
16
|
"tslib": "^2.4.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@yarnpkg/cli": "^4.
|
|
20
|
-
"@yarnpkg/core": "^4.0.
|
|
19
|
+
"@yarnpkg/cli": "^4.2.1",
|
|
20
|
+
"@yarnpkg/core": "^4.0.5"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/micromatch": "^4.0.1",
|
|
24
|
-
"@yarnpkg/cli": "^4.
|
|
25
|
-
"@yarnpkg/core": "^4.0.
|
|
24
|
+
"@yarnpkg/cli": "^4.2.1",
|
|
25
|
+
"@yarnpkg/core": "^4.0.5"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|