@yarnpkg/plugin-pnp 3.2.0-rc.1 → 3.2.0-rc.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/lib/PnpLinker.js +2 -2
- package/lib/commands/unplug.js +2 -2
- package/lib/index.js +4 -4
- package/lib/jsInstallUtils.js +2 -2
- package/package.json +7 -7
package/lib/PnpLinker.js
CHANGED
|
@@ -8,8 +8,8 @@ const fslib_1 = require("@yarnpkg/fslib");
|
|
|
8
8
|
const pnp_1 = require("@yarnpkg/pnp");
|
|
9
9
|
const clipanion_1 = require("clipanion");
|
|
10
10
|
const index_1 = require("./index");
|
|
11
|
-
const jsInstallUtils =
|
|
12
|
-
const pnpUtils =
|
|
11
|
+
const jsInstallUtils = tslib_1.__importStar(require("./jsInstallUtils"));
|
|
12
|
+
const pnpUtils = tslib_1.__importStar(require("./pnpUtils"));
|
|
13
13
|
const FORCED_UNPLUG_PACKAGES = new Set([
|
|
14
14
|
// Some packages do weird stuff and MUST be unplugged. I don't like them.
|
|
15
15
|
core_1.structUtils.makeIdent(null, `nan`).identHash,
|
package/lib/commands/unplug.js
CHANGED
|
@@ -5,8 +5,8 @@ const cli_1 = require("@yarnpkg/cli");
|
|
|
5
5
|
const core_1 = require("@yarnpkg/core");
|
|
6
6
|
const core_2 = require("@yarnpkg/core");
|
|
7
7
|
const clipanion_1 = require("clipanion");
|
|
8
|
-
const micromatch_1 =
|
|
9
|
-
const pnpUtils =
|
|
8
|
+
const micromatch_1 = tslib_1.__importDefault(require("micromatch"));
|
|
9
|
+
const pnpUtils = tslib_1.__importStar(require("../pnpUtils"));
|
|
10
10
|
// eslint-disable-next-line arca/no-default-export
|
|
11
11
|
class UnplugCommand extends cli_1.BaseCommand {
|
|
12
12
|
constructor() {
|
package/lib/index.js
CHANGED
|
@@ -4,13 +4,13 @@ exports.PnpLinker = exports.PnpInstaller = exports.quotePathIfNeeded = exports.g
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@yarnpkg/core");
|
|
6
6
|
const fslib_1 = require("@yarnpkg/fslib");
|
|
7
|
-
const semver_1 =
|
|
7
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
8
8
|
const url_1 = require("url");
|
|
9
9
|
const PnpLinker_1 = require("./PnpLinker");
|
|
10
|
-
const unplug_1 =
|
|
11
|
-
const jsInstallUtils =
|
|
10
|
+
const unplug_1 = tslib_1.__importDefault(require("./commands/unplug"));
|
|
11
|
+
const jsInstallUtils = tslib_1.__importStar(require("./jsInstallUtils"));
|
|
12
12
|
exports.jsInstallUtils = jsInstallUtils;
|
|
13
|
-
const pnpUtils =
|
|
13
|
+
const pnpUtils = tslib_1.__importStar(require("./pnpUtils"));
|
|
14
14
|
exports.pnpUtils = pnpUtils;
|
|
15
15
|
const getPnpPath = (project) => {
|
|
16
16
|
return {
|
package/lib/jsInstallUtils.js
CHANGED
|
@@ -4,12 +4,12 @@ exports.hasBindingGyp = exports.getExtractHint = exports.extractBuildScripts = e
|
|
|
4
4
|
const core_1 = require("@yarnpkg/core");
|
|
5
5
|
const fslib_1 = require("@yarnpkg/fslib");
|
|
6
6
|
function checkManifestCompatibility(pkg) {
|
|
7
|
-
return core_1.structUtils.isPackageCompatible(pkg,
|
|
7
|
+
return core_1.structUtils.isPackageCompatible(pkg, core_1.nodeUtils.getArchitectureSet());
|
|
8
8
|
}
|
|
9
9
|
exports.checkManifestCompatibility = checkManifestCompatibility;
|
|
10
10
|
function checkAndReportManifestCompatibility(pkg, label, { configuration, report }) {
|
|
11
11
|
if (!checkManifestCompatibility(pkg)) {
|
|
12
|
-
report === null || report === void 0 ? void 0 : report.reportWarningOnce(core_1.MessageName.INCOMPATIBLE_ARCHITECTURE, `${core_1.structUtils.prettyLocator(configuration, pkg)} The ${
|
|
12
|
+
report === null || report === void 0 ? void 0 : report.reportWarningOnce(core_1.MessageName.INCOMPATIBLE_ARCHITECTURE, `${core_1.structUtils.prettyLocator(configuration, pkg)} The ${core_1.nodeUtils.getArchitectureName()} architecture is incompatible with this package, ${label} skipped.`);
|
|
13
13
|
return false;
|
|
14
14
|
}
|
|
15
15
|
return true;
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/plugin-pnp",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.2",
|
|
4
4
|
"license": "BSD-2-Clause",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@types/semver": "^7.1.0",
|
|
8
|
-
"@yarnpkg/fslib": "^2.6.1-rc.
|
|
8
|
+
"@yarnpkg/fslib": "^2.6.1-rc.7",
|
|
9
9
|
"@yarnpkg/plugin-stage": "^3.1.1",
|
|
10
|
-
"@yarnpkg/pnp": "^3.1.1-rc.
|
|
10
|
+
"@yarnpkg/pnp": "^3.1.1-rc.12",
|
|
11
11
|
"clipanion": "^3.2.0-rc.4",
|
|
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.12",
|
|
18
|
+
"@yarnpkg/core": "^3.2.0-rc.12"
|
|
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.12",
|
|
23
|
+
"@yarnpkg/core": "^3.2.0-rc.12"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|