@atlaspack/package-manager 2.14.17 → 2.14.18-typescript-d6e6d169c.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/test/NodePackageManager.test.js +4 -0
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-typescript-d6e6d169c.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-typescript-d6e6d169c.0",
|
43
|
+
"@atlaspack/diagnostic": "2.14.2-typescript-d6e6d169c.0",
|
44
|
+
"@atlaspack/fs": "2.15.13-typescript-d6e6d169c.0",
|
45
|
+
"@atlaspack/logger": "2.14.13-typescript-d6e6d169c.0",
|
46
|
+
"@atlaspack/node-resolver-core": "3.5.18-typescript-d6e6d169c.0",
|
47
|
+
"@atlaspack/types": "2.15.8-typescript-d6e6d169c.0",
|
48
|
+
"@atlaspack/utils": "2.16.2-typescript-d6e6d169c.0",
|
49
|
+
"@atlaspack/workers": "2.14.18-typescript-d6e6d169c.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": "d6e6d169cb16a0bbc98d7743646a7097b82c7fe2"
|
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
|
@@ -12,6 +12,7 @@ import {WORKER_PATH} from '@atlaspack/core';
|
|
12
12
|
import {MockPackageInstaller, NodePackageManager} from '../src';
|
13
13
|
|
14
14
|
const FIXTURES_DIR = path.join(__dirname, 'fixtures');
|
15
|
+
const ROOT_DIR = path.normalize(path.join(__dirname, '..', '..', '..', '..'));
|
15
16
|
|
16
17
|
function normalize(res) {
|
17
18
|
return {
|
@@ -76,6 +77,7 @@ describe('NodePackageManager', function () {
|
|
76
77
|
type: 1,
|
77
78
|
invalidateOnFileChange: new Set([
|
78
79
|
path.join(FIXTURES_DIR, 'has-foo/node_modules/foo/package.json'),
|
80
|
+
path.join(ROOT_DIR, 'tsconfig.json'),
|
79
81
|
]),
|
80
82
|
invalidateOnFileCreate: [
|
81
83
|
{
|
@@ -130,6 +132,7 @@ describe('NodePackageManager', function () {
|
|
130
132
|
type: 1,
|
131
133
|
invalidateOnFileChange: new Set([
|
132
134
|
path.join(FIXTURES_DIR, 'has-foo/node_modules/a/package.json'),
|
135
|
+
path.join(ROOT_DIR, 'tsconfig.json'),
|
133
136
|
]),
|
134
137
|
invalidateOnFileCreate: [
|
135
138
|
{
|
@@ -302,6 +305,7 @@ describe('NodePackageManager', function () {
|
|
302
305
|
FIXTURES_DIR,
|
303
306
|
'has-foo/subpackage/node_modules/foo/package.json',
|
304
307
|
),
|
308
|
+
path.join(ROOT_DIR, 'tsconfig.json'),
|
305
309
|
]),
|
306
310
|
invalidateOnFileCreate: [
|
307
311
|
{
|