@atlaspack/package-manager 2.14.15-alshintegrationtestslib.0 → 2.14.15-dev.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/lib/index.js +4 -12
- package/lib/index.js.map +1 -1
- package/package.json +10 -10
- package/src/NodePackageManager.js +5 -20
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 =
|
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
|
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,13 +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
|
-
// Skip invalidation of Atlaspack modules during testing to prevent
|
3849
|
-
// module cache conflicts. When using babel-register, this works fine
|
3850
|
-
// because it maintains its own internal module cache that we don't
|
3851
|
-
// invalidate. However, with compiled Atlaspack packages in integration
|
3852
|
-
// tests, invalidation causes multiple module instances to exist
|
3853
|
-
// simultaneously, leading to test failures.
|
3854
|
-
if (process.env.ATLASPACK_BUILD_ENV === 'test' && name.startsWith('@atlaspack/')) return;
|
3855
3847
|
invalidationsCache.delete(resolved.resolved);
|
3856
3848
|
// $FlowFixMe
|
3857
3849
|
let module1 = (0, ($parcel$interopDefault($dufqm$module)))._cache[resolved.resolved];
|
@@ -4136,7 +4128,7 @@ function $fdbc4680a0f2f397$export$9c0565d18deefc7f(fs, packageManager, modules,
|
|
4136
4128
|
if ((0, ($parcel$interopDefault($dufqm$atlaspackworkers))).isWorker()) {
|
4137
4129
|
let workerApi = (0, ($parcel$interopDefault($dufqm$atlaspackworkers))).getWorkerApi();
|
4138
4130
|
// TODO this should really be `__filename` but without the rewriting.
|
4139
|
-
let bundlePath =
|
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;
|
4140
4132
|
return workerApi.callMaster({
|
4141
4133
|
location: bundlePath,
|
4142
4134
|
args: [
|
@@ -4730,7 +4722,7 @@ function $770d99f4b6e8471f$export$2e2bcd8739ae039(childProcess) {
|
|
4730
4722
|
});
|
4731
4723
|
|
4732
4724
|
parcelRegister("dmfaS", function(module, exports) {
|
4733
|
-
module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.14.15-
|
4725
|
+
module.exports = JSON.parse("{\"name\":\"@atlaspack/package-manager\",\"version\":\"2.14.15-dev.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-dev.0\",\"@atlaspack/diagnostic\":\"2.14.2-dev.0\",\"@atlaspack/fs\":\"2.15.10-dev.0\",\"@atlaspack/logger\":\"2.14.12-dev.0\",\"@atlaspack/node-resolver-core\":\"3.5.15-dev.0\",\"@atlaspack/types\":\"2.15.5-dev.0\",\"@atlaspack/utils\":\"2.15.3-dev.0\",\"@atlaspack/workers\":\"2.14.15-dev.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\":\"6ce3565fe038caf52c09fad4e48175829b174571\"}");
|
4734
4726
|
|
4735
4727
|
});
|
4736
4728
|
|