@atlaspack/package-manager 2.12.1-canary.3605 → 2.12.1-canary.3607
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/index.js +36 -2
- package/lib/index.js.map +1 -1
- package/package.json +10 -10
- package/src/NodePackageManager.js +2 -0
- package/src/nodejsConditions.js +35 -0
package/lib/index.js
CHANGED
@@ -18,6 +18,7 @@ var $dufqm$swccore = require("@swc/core");
|
|
18
18
|
var $dufqm$assert = require("assert");
|
19
19
|
var $dufqm$atlaspackworkers = require("@atlaspack/workers");
|
20
20
|
var $dufqm$string_decoder = require("string_decoder");
|
21
|
+
var $dufqm$process = require("process");
|
21
22
|
|
22
23
|
|
23
24
|
var $parcel$global = globalThis;
|
@@ -3487,6 +3488,8 @@ var $lMCVs = parcelRequire("lMCVs");
|
|
3487
3488
|
|
3488
3489
|
var $dmfaS = parcelRequire("dmfaS");
|
3489
3490
|
|
3491
|
+
var $2oNrA = parcelRequire("2oNrA");
|
3492
|
+
|
3490
3493
|
|
3491
3494
|
|
3492
3495
|
// Package.json fields. Must match package_json.rs.
|
@@ -3859,7 +3862,8 @@ class NodePackageManager {
|
|
3859
3862
|
let res = this.resolver.resolve({
|
3860
3863
|
filename: name,
|
3861
3864
|
specifierType: 'commonjs',
|
3862
|
-
parent: from
|
3865
|
+
parent: from,
|
3866
|
+
packageConditions: (0, $2oNrA.getConditionsFromEnv)()
|
3863
3867
|
});
|
3864
3868
|
// Invalidate whenever the .pnp.js file changes.
|
3865
3869
|
// TODO: only when we actually resolve a node_modules package?
|
@@ -4718,7 +4722,7 @@ function $770d99f4b6e8471f$export$2e2bcd8739ae039(childProcess) {
|
|
4718
4722
|
});
|
4719
4723
|
|
4720
4724
|
parcelRegister("dmfaS", function(module, exports) {
|
4721
|
-
module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.12.1-canary.
|
4725
|
+
module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.12.1-canary.3607+fc7589858\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"(MIT OR Apache-2.0)\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/index.js > lib/index.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\",\"test\":\"mocha test\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/fs\":false,\"@atlaspack/logger\":false,\"@atlaspack/node-resolver-core\":false,\"@atlaspack/types\":false,\"@atlaspack/utils\":false,\"@atlaspack/workers\":false,\"@swc/core\":false,\"semver\":false}}},\"dependencies\":{\"@atlaspack/build-cache\":\"2.12.1-canary.3607+fc7589858\",\"@atlaspack/diagnostic\":\"2.12.1-canary.3607+fc7589858\",\"@atlaspack/fs\":\"2.12.1-canary.3607+fc7589858\",\"@atlaspack/logger\":\"2.12.1-canary.3607+fc7589858\",\"@atlaspack/node-resolver-core\":\"3.3.1-canary.3607+fc7589858\",\"@atlaspack/types\":\"2.12.1-canary.3607+fc7589858\",\"@atlaspack/utils\":\"2.12.1-canary.3607+fc7589858\",\"@atlaspack/workers\":\"2.12.1-canary.3607+fc7589858\",\"@swc/core\":\"^1.10.0\",\"semver\":\"^7.5.2\"},\"devDependencies\":{\"command-exists\":\"^1.2.6\",\"cross-spawn\":\"^6.0.4\",\"nullthrows\":\"^1.1.1\",\"split2\":\"^3.1.1\"},\"browser\":{\"./src/NodePackageManager.js\":false,\"./src/Npm.js\":false,\"./src/Pnpm.js\":false,\"./src/Yarn.js\":false},\"gitHead\":\"fc7589858cb8a7330b6ce2c389eb89917a143237\"}");
|
4722
4726
|
|
4723
4727
|
});
|
4724
4728
|
|
@@ -5123,6 +5127,36 @@ function $23526eacad4055ec$export$2e2bcd8739ae039(moduleName) {
|
|
5123
5127
|
});
|
5124
5128
|
|
5125
5129
|
|
5130
|
+
parcelRegister("2oNrA", function(module, exports) {
|
5131
|
+
|
5132
|
+
$parcel$export(module.exports, "getConditionsFromEnv", () => $1bf42d3205c61150$export$160363c16ec11b55);
|
5133
|
+
|
5134
|
+
const $1bf42d3205c61150$export$6cc23822f002100b = Object.freeze([
|
5135
|
+
'node-addons',
|
5136
|
+
'node',
|
5137
|
+
// 'import',
|
5138
|
+
'require',
|
5139
|
+
'module-sync',
|
5140
|
+
'default'
|
5141
|
+
]);
|
5142
|
+
let $1bf42d3205c61150$var$envConditions = undefined;
|
5143
|
+
function $1bf42d3205c61150$export$160363c16ec11b55() {
|
5144
|
+
if (!$1bf42d3205c61150$var$envConditions) {
|
5145
|
+
const conditions = [];
|
5146
|
+
for (const arg of [
|
5147
|
+
...(0, ($parcel$interopDefault($dufqm$process))).execArgv,
|
5148
|
+
...((0, ($parcel$interopDefault($dufqm$process))).env.NODE_OPTIONS || '').split(' ')
|
5149
|
+
])if (arg.startsWith('--conditions=')) conditions.push(arg.substring(13));
|
5150
|
+
$1bf42d3205c61150$var$envConditions = Object.freeze([
|
5151
|
+
...conditions,
|
5152
|
+
...$1bf42d3205c61150$export$6cc23822f002100b
|
5153
|
+
]);
|
5154
|
+
}
|
5155
|
+
return $1bf42d3205c61150$var$envConditions;
|
5156
|
+
}
|
5157
|
+
|
5158
|
+
});
|
5159
|
+
|
5126
5160
|
|
5127
5161
|
|
5128
5162
|
$parcel$export(module.exports, "_addToInstallQueue", () => (parcelRequire("lMCVs"))._addToInstallQueue);
|