@atlaspack/package-manager 2.12.1-dev.3567 → 2.13.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/CHANGELOG.md +19 -0
- package/lib/index.js +44 -10
- package/lib/index.js.map +1 -1
- package/package.json +11 -12
- package/src/NodePackageManager.js +2 -0
- package/src/nodejsConditions.js +35 -0
- package/LICENSE +0 -201
package/CHANGELOG.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# @atlaspack/package-manager
|
2
|
+
|
3
|
+
## 2.13.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#335](https://github.com/atlassian-labs/atlaspack/pull/335) [`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf) Thanks [@yamadapc](https://github.com/yamadapc)! - Initial changeset release
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- Updated dependencies [[`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf)]:
|
12
|
+
- @atlaspack/fs@2.13.0
|
13
|
+
- @atlaspack/build-cache@2.13.0
|
14
|
+
- @atlaspack/diagnostic@2.13.0
|
15
|
+
- @atlaspack/logger@2.13.0
|
16
|
+
- @atlaspack/types@2.13.0
|
17
|
+
- @atlaspack/utils@2.13.0
|
18
|
+
- @atlaspack/workers@2.13.0
|
19
|
+
- @atlaspack/node-resolver-core@3.4.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?
|
@@ -4012,9 +4016,9 @@ var $5cGUP = parcelRequire("5cGUP");
|
|
4012
4016
|
|
4013
4017
|
var $3217T = parcelRequire("3217T");
|
4014
4018
|
|
4015
|
-
var $fdbc4680a0f2f397$var$$parcel$__dirname = $dufqm$path.resolve(__dirname, "../src");
|
4016
|
-
|
4017
4019
|
var $fdbc4680a0f2f397$var$$parcel$__filename = $dufqm$path.resolve(__dirname, "../src", "installPackage.js");
|
4020
|
+
|
4021
|
+
var $fdbc4680a0f2f397$var$$parcel$__dirname = $dufqm$path.resolve(__dirname, "../src");
|
4018
4022
|
async function $fdbc4680a0f2f397$var$install(fs, packageManager, modules, from, projectRoot, options = {}) {
|
4019
4023
|
let { installPeers: installPeers = true, saveDev: saveDev = true, packageInstaller: packageInstaller } = options;
|
4020
4024
|
let moduleNames = modules.map((m)=>m.name).join(', ');
|
@@ -4608,7 +4612,7 @@ parcelRegister("jLc2d", function(module, exports) {
|
|
4608
4612
|
'use strict';
|
4609
4613
|
|
4610
4614
|
|
4611
|
-
var $
|
4615
|
+
var $6hw8f = parcelRequire("6hw8f");
|
4612
4616
|
function $e62bbdf2b5044be7$var$readShebang(command) {
|
4613
4617
|
// Read the first 150 bytes from the file
|
4614
4618
|
const size = 150;
|
@@ -4627,17 +4631,17 @@ function $e62bbdf2b5044be7$var$readShebang(command) {
|
|
4627
4631
|
$dufqm$fs.closeSync(fd);
|
4628
4632
|
} catch (e) {}
|
4629
4633
|
// Attempt to extract shebang (null is returned if not a shebang)
|
4630
|
-
return $
|
4634
|
+
return $6hw8f(buffer.toString());
|
4631
4635
|
}
|
4632
4636
|
module.exports = $e62bbdf2b5044be7$var$readShebang;
|
4633
4637
|
|
4634
4638
|
});
|
4635
|
-
parcelRegister("
|
4639
|
+
parcelRegister("6hw8f", function(module, exports) {
|
4636
4640
|
'use strict';
|
4637
4641
|
|
4638
|
-
var $
|
4642
|
+
var $eGLA2 = parcelRequire("eGLA2");
|
4639
4643
|
module.exports = function(str) {
|
4640
|
-
var match = str.match($
|
4644
|
+
var match = str.match($eGLA2);
|
4641
4645
|
if (!match) return null;
|
4642
4646
|
var arr = match[0].replace(/#! ?/, '').split(' ');
|
4643
4647
|
var bin = arr[0].split('/').pop();
|
@@ -4646,7 +4650,7 @@ module.exports = function(str) {
|
|
4646
4650
|
};
|
4647
4651
|
|
4648
4652
|
});
|
4649
|
-
parcelRegister("
|
4653
|
+
parcelRegister("eGLA2", function(module, exports) {
|
4650
4654
|
'use strict';
|
4651
4655
|
module.exports = /^#!.*/;
|
4652
4656
|
|
@@ -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.
|
4725
|
+
module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.13.1-canary.3630+10a6f37ef\",\"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.13.1-canary.3630+10a6f37ef\",\"@atlaspack/diagnostic\":\"2.13.1-canary.3630+10a6f37ef\",\"@atlaspack/fs\":\"2.13.1-canary.3630+10a6f37ef\",\"@atlaspack/logger\":\"2.13.1-canary.3630+10a6f37ef\",\"@atlaspack/node-resolver-core\":\"3.4.1-canary.3630+10a6f37ef\",\"@atlaspack/types\":\"2.13.1-canary.3630+10a6f37ef\",\"@atlaspack/utils\":\"2.13.1-canary.3630+10a6f37ef\",\"@atlaspack/workers\":\"2.13.1-canary.3630+10a6f37ef\",\"@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\":\"10a6f37ef063d0227ebb26310383e899dbd9b1e6\"}");
|
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);
|