@atlaspack/package-manager 2.14.16-typescript-8a6ec6c8b.0 → 2.14.16

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaspack/package-manager
2
2
 
3
+ ## 2.14.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
8
+ - @atlaspack/utils@2.16.0
9
+ - @atlaspack/fs@2.15.11
10
+ - @atlaspack/node-resolver-core@3.5.16
11
+ - @atlaspack/workers@2.14.16
12
+ - @atlaspack/types@2.15.6
13
+
3
14
  ## 2.14.15
4
15
 
5
16
  ### Patch Changes
package/lib/index.js CHANGED
@@ -3495,7 +3495,7 @@ var $2oNrA = parcelRequire("2oNrA");
3495
3495
  // Package.json fields. Must match package_json.rs.
3496
3496
  const MAIN = 1;
3497
3497
  const SOURCE = 4;
3498
- const ENTRIES = process.env.ATLASPACK_REGISTER_USE_LIB === 'true' ? MAIN : MAIN | (process.env.ATLASPACK_BUILD_ENV !== 'production' || process.env.ATLASPACK_SELF_BUILD ? SOURCE : 0);
3498
+ const ENTRIES = MAIN | ((0, process.env.ATLASPACK_SELF_BUILD) ? SOURCE : 0);
3499
3499
  const NODE_MODULES = `${(0, ($parcel$interopDefault($dufqm$path))).sep}node_modules${(0, ($parcel$interopDefault($dufqm$path))).sep}`;
3500
3500
  // There can be more than one instance of NodePackageManager, but node has only a single module cache.
3501
3501
  // Therefore, the resolution cache and the map of parent to child modules should also be global.
@@ -3790,8 +3790,7 @@ class NodePackageManager {
3790
3790
  }
3791
3791
  getInvalidations(name, from) {
3792
3792
  let basedir = (0, ($parcel$interopDefault($dufqm$path))).dirname(from);
3793
- let cacheKey = basedir + ':' + name;
3794
- let resolved = cache.get(cacheKey);
3793
+ let resolved = cache.get(basedir + ':' + name);
3795
3794
  if (resolved && (0, ($parcel$interopDefault($dufqm$path))).isAbsolute(resolved.resolved)) {
3796
3795
  let cached = invalidationsCache.get(resolved.resolved);
3797
3796
  if (cached != null) return cached;
@@ -3845,12 +3844,6 @@ class NodePackageManager {
3845
3844
  seen.add(key);
3846
3845
  let resolved = cache.get(key);
3847
3846
  if (!resolved || !(0, ($parcel$interopDefault($dufqm$path))).isAbsolute(resolved.resolved)) return;
3848
- // During testing don't invalidate Atlaspack modules because
3849
- // this causes failures due to multiple instances of the same module
3850
- // existing simultaniously. This is fine when using babe;-register because
3851
- // it has an internal module cache that NodePacakageManager does not invalidate
3852
- // but fails when using compiled Atlaspack packages in integration tests
3853
- if (process.env.ATLASPACK_BUILD_ENV === 'test' && name.startsWith('@atlaspack/')) return;
3854
3847
  invalidationsCache.delete(resolved.resolved);
3855
3848
  // $FlowFixMe
3856
3849
  let module1 = (0, ($parcel$interopDefault($dufqm$module)))._cache[resolved.resolved];
@@ -4023,9 +4016,9 @@ var $5cGUP = parcelRequire("5cGUP");
4023
4016
 
4024
4017
  var $3217T = parcelRequire("3217T");
4025
4018
 
4026
- var $fdbc4680a0f2f397$var$$parcel$__filename = $dufqm$path.resolve(__dirname, "../src", "installPackage.js");
4027
-
4028
4019
  var $fdbc4680a0f2f397$var$$parcel$__dirname = $dufqm$path.resolve(__dirname, "../src");
4020
+
4021
+ var $fdbc4680a0f2f397$var$$parcel$__filename = $dufqm$path.resolve(__dirname, "../src", "installPackage.js");
4029
4022
  async function $fdbc4680a0f2f397$var$install(fs, packageManager, modules, from, projectRoot, options = {}) {
4030
4023
  let { installPeers: installPeers = true, saveDev: saveDev = true, packageInstaller: packageInstaller } = options;
4031
4024
  let moduleNames = modules.map((m)=>m.name).join(', ');
@@ -4135,7 +4128,7 @@ function $fdbc4680a0f2f397$export$9c0565d18deefc7f(fs, packageManager, modules,
4135
4128
  if ((0, ($parcel$interopDefault($dufqm$atlaspackworkers))).isWorker()) {
4136
4129
  let workerApi = (0, ($parcel$interopDefault($dufqm$atlaspackworkers))).getWorkerApi();
4137
4130
  // TODO this should really be `__filename` but without the rewriting.
4138
- let bundlePath = process.env.ATLASPACK_BUILD_ENV === 'production' && !process.env.ATLASPACK_SELF_BUILD ? (0, ($parcel$interopDefault($dufqm$path))).join($fdbc4680a0f2f397$var$$parcel$__dirname, '..', 'lib/index.js') : $fdbc4680a0f2f397$var$$parcel$__filename;
4131
+ let bundlePath = !process.env.ATLASPACK_SELF_BUILD ? (0, ($parcel$interopDefault($dufqm$path))).join($fdbc4680a0f2f397$var$$parcel$__dirname, '..', 'lib/index.js') : $fdbc4680a0f2f397$var$$parcel$__filename;
4139
4132
  return workerApi.callMaster({
4140
4133
  location: bundlePath,
4141
4134
  args: [
@@ -4729,7 +4722,7 @@ function $770d99f4b6e8471f$export$2e2bcd8739ae039(childProcess) {
4729
4722
  });
4730
4723
 
4731
4724
  parcelRegister("dmfaS", function(module, exports) {
4732
- module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.14.16-typescript-8a6ec6c8b.0\",\"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.4-typescript-8a6ec6c8b.0\",\"@atlaspack/diagnostic\":\"2.14.2-typescript-8a6ec6c8b.0\",\"@atlaspack/fs\":\"2.15.11-typescript-8a6ec6c8b.0\",\"@atlaspack/logger\":\"2.14.12-typescript-8a6ec6c8b.0\",\"@atlaspack/node-resolver-core\":\"3.5.16-typescript-8a6ec6c8b.0\",\"@atlaspack/types\":\"2.15.6-typescript-8a6ec6c8b.0\",\"@atlaspack/utils\":\"2.15.4-typescript-8a6ec6c8b.0\",\"@atlaspack/workers\":\"2.14.16-typescript-8a6ec6c8b.0\",\"@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},\"type\":\"commonjs\",\"gitHead\":\"8a6ec6c8bed0bbf5461f5b0f899577a576906051\"}");
4725
+ module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.14.16\",\"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.3\",\"@atlaspack/diagnostic\":\"2.14.1\",\"@atlaspack/fs\":\"2.15.11\",\"@atlaspack/logger\":\"2.14.11\",\"@atlaspack/node-resolver-core\":\"3.5.16\",\"@atlaspack/types\":\"2.15.6\",\"@atlaspack/utils\":\"2.16.0\",\"@atlaspack/workers\":\"2.14.16\",\"@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},\"type\":\"commonjs\"}");
4733
4726
 
4734
4727
  });
4735
4728