@yarnpkg/plugin-pnp 3.1.2-rc.2 → 3.1.2-rc.3
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.d.ts +1 -0
- package/lib/jsInstallUtils.js +6 -2
- package/package.json +6 -6
package/lib/jsInstallUtils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BuildDirective, Configuration, DependencyMeta, FetchResult, Manifest, Package, Report } from '@yarnpkg/core';
|
|
2
|
+
export declare function checkManifestCompatibility(pkg: Package): boolean;
|
|
2
3
|
export declare function checkAndReportManifestCompatibility(pkg: Package, label: string, { configuration, report }: {
|
|
3
4
|
configuration: Configuration;
|
|
4
5
|
report?: Report | null;
|
package/lib/jsInstallUtils.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hasBindingGyp = exports.getExtractHint = exports.extractBuildScripts = exports.checkAndReportManifestCompatibility = void 0;
|
|
3
|
+
exports.hasBindingGyp = exports.getExtractHint = exports.extractBuildScripts = exports.checkAndReportManifestCompatibility = exports.checkManifestCompatibility = void 0;
|
|
4
4
|
const core_1 = require("@yarnpkg/core");
|
|
5
5
|
const fslib_1 = require("@yarnpkg/fslib");
|
|
6
|
+
function checkManifestCompatibility(pkg) {
|
|
7
|
+
return core_1.structUtils.isPackageCompatible(pkg, { os: [process.platform], cpu: [process.arch] });
|
|
8
|
+
}
|
|
9
|
+
exports.checkManifestCompatibility = checkManifestCompatibility;
|
|
6
10
|
function checkAndReportManifestCompatibility(pkg, label, { configuration, report }) {
|
|
7
|
-
if (!
|
|
11
|
+
if (!checkManifestCompatibility(pkg)) {
|
|
8
12
|
report === null || report === void 0 ? void 0 : report.reportWarningOnce(core_1.MessageName.INCOMPATIBLE_ARCHITECTURE, `${core_1.structUtils.prettyLocator(configuration, pkg)} The ${process.platform}-${process.arch} architecture is incompatible with this module, ${label} skipped.`);
|
|
9
13
|
return false;
|
|
10
14
|
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/plugin-pnp",
|
|
3
|
-
"version": "3.1.2-rc.
|
|
3
|
+
"version": "3.1.2-rc.3",
|
|
4
4
|
"license": "BSD-2-Clause",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@types/semver": "^7.1.0",
|
|
8
8
|
"@yarnpkg/fslib": "^2.6.0",
|
|
9
9
|
"@yarnpkg/plugin-stage": "^3.1.1",
|
|
10
|
-
"@yarnpkg/pnp": "^3.1.1-rc.
|
|
10
|
+
"@yarnpkg/pnp": "^3.1.1-rc.3",
|
|
11
11
|
"clipanion": "^3.0.1",
|
|
12
12
|
"micromatch": "^4.0.2",
|
|
13
13
|
"semver": "^7.1.2",
|
|
14
14
|
"tslib": "^1.13.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@yarnpkg/cli": "^3.2.0-rc.
|
|
18
|
-
"@yarnpkg/core": "^3.2.0-rc.
|
|
17
|
+
"@yarnpkg/cli": "^3.2.0-rc.3",
|
|
18
|
+
"@yarnpkg/core": "^3.2.0-rc.3"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/micromatch": "^4.0.1",
|
|
22
|
-
"@yarnpkg/cli": "^3.2.0-rc.
|
|
23
|
-
"@yarnpkg/core": "^3.2.0-rc.
|
|
22
|
+
"@yarnpkg/cli": "^3.2.0-rc.3",
|
|
23
|
+
"@yarnpkg/core": "^3.2.0-rc.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|