@atlaspack/package-manager 2.14.17 → 2.14.18-unified-f92fba5b6.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/LICENSE +201 -0
- package/lib/index.js +11 -4
- package/lib/index.js.map +1 -1
- package/package.json +11 -10
- package/src/NodePackageManager.js +19 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaspack/package-manager",
|
3
|
-
"version": "2.14.
|
3
|
+
"version": "2.14.18-unified-f92fba5b6.0",
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
6
6
|
"publishConfig": {
|
@@ -39,14 +39,14 @@
|
|
39
39
|
}
|
40
40
|
},
|
41
41
|
"dependencies": {
|
42
|
-
"@atlaspack/build-cache": "2.13.
|
43
|
-
"@atlaspack/diagnostic": "2.14.
|
44
|
-
"@atlaspack/fs": "2.15.
|
45
|
-
"@atlaspack/logger": "2.14.
|
46
|
-
"@atlaspack/node-resolver-core": "3.5.
|
47
|
-
"@atlaspack/types": "2.15.
|
48
|
-
"@atlaspack/utils": "2.16.
|
49
|
-
"@atlaspack/workers": "2.14.
|
42
|
+
"@atlaspack/build-cache": "2.13.4-unified-f92fba5b6.0",
|
43
|
+
"@atlaspack/diagnostic": "2.14.2-unified-f92fba5b6.0",
|
44
|
+
"@atlaspack/fs": "2.15.13-unified-f92fba5b6.0",
|
45
|
+
"@atlaspack/logger": "2.14.13-unified-f92fba5b6.0",
|
46
|
+
"@atlaspack/node-resolver-core": "3.5.18-unified-f92fba5b6.0",
|
47
|
+
"@atlaspack/types": "2.15.8-unified-f92fba5b6.0",
|
48
|
+
"@atlaspack/utils": "2.16.2-unified-f92fba5b6.0",
|
49
|
+
"@atlaspack/workers": "2.14.18-unified-f92fba5b6.0",
|
50
50
|
"@swc/core": "^1.10.0",
|
51
51
|
"semver": "^7.5.2"
|
52
52
|
},
|
@@ -62,5 +62,6 @@
|
|
62
62
|
"./src/Pnpm.js": false,
|
63
63
|
"./src/Yarn.js": false
|
64
64
|
},
|
65
|
-
"type": "commonjs"
|
65
|
+
"type": "commonjs",
|
66
|
+
"gitHead": "f92fba5b6216e1d94cbd23f3a5d61f7188d49199"
|
66
67
|
}
|
@@ -42,11 +42,13 @@ import {transformSync} from '@swc/core';
|
|
42
42
|
const MAIN = 1 << 0;
|
43
43
|
const SOURCE = 1 << 2;
|
44
44
|
const ENTRIES =
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
45
|
+
process.env.ATLASPACK_REGISTER_USE_LIB === 'true'
|
46
|
+
? MAIN
|
47
|
+
: MAIN |
|
48
|
+
(process.env.ATLASPACK_BUILD_ENV !== 'production' ||
|
49
|
+
process.env.ATLASPACK_SELF_BUILD
|
50
|
+
? SOURCE
|
51
|
+
: 0);
|
50
52
|
|
51
53
|
const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
|
52
54
|
|
@@ -555,6 +557,18 @@ export class NodePackageManager implements PackageManager {
|
|
555
557
|
return;
|
556
558
|
}
|
557
559
|
|
560
|
+
// During testing don't invalidate Atlaspack modules because
|
561
|
+
// this causes failures due to multiple instances of the same module
|
562
|
+
// existing simultaniously. This is fine when using babe;-register because
|
563
|
+
// it has an internal module cache that NodePacakageManager does not invalidate
|
564
|
+
// but fails when using compiled Atlaspack packages in integration tests
|
565
|
+
if (
|
566
|
+
process.env.ATLASPACK_BUILD_ENV === 'test' &&
|
567
|
+
name.startsWith('@atlaspack/')
|
568
|
+
) {
|
569
|
+
return;
|
570
|
+
}
|
571
|
+
|
558
572
|
invalidationsCache.delete(resolved.resolved);
|
559
573
|
|
560
574
|
// $FlowFixMe
|