@atlaspack/core 2.12.1-canary.3576 → 2.12.1-canary.3577

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.
@@ -50,7 +50,11 @@ class AtlaspackV3 {
50
50
  workerIds.push(workerId);
51
51
  }
52
52
  });
53
- _WorkerPool.workerPool.releaseWorkers(workerIds);
53
+
54
+ // In the integration tests we keep the workers alive so they don't need to
55
+ // be re-initialized for the next test
56
+
57
+ _WorkerPool.workerPool.shutdown();
54
58
  if (error !== null) {
55
59
  throw new (_diagnostic().default)({
56
60
  diagnostic: error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.12.1-canary.3576+b62bf25eb",
3
+ "version": "2.12.1-canary.3577+088900269",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,21 +20,21 @@
20
20
  "check-ts": "tsc --noEmit index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/build-cache": "2.12.1-canary.3576+b62bf25eb",
24
- "@atlaspack/cache": "2.12.1-canary.3576+b62bf25eb",
25
- "@atlaspack/diagnostic": "2.12.1-canary.3576+b62bf25eb",
26
- "@atlaspack/events": "2.12.1-canary.3576+b62bf25eb",
27
- "@atlaspack/feature-flags": "2.12.1-canary.3576+b62bf25eb",
28
- "@atlaspack/fs": "2.12.1-canary.3576+b62bf25eb",
29
- "@atlaspack/graph": "3.2.1-canary.3576+b62bf25eb",
30
- "@atlaspack/logger": "2.12.1-canary.3576+b62bf25eb",
31
- "@atlaspack/package-manager": "2.12.1-canary.3576+b62bf25eb",
32
- "@atlaspack/plugin": "2.12.1-canary.3576+b62bf25eb",
33
- "@atlaspack/profiler": "2.12.1-canary.3576+b62bf25eb",
34
- "@atlaspack/rust": "2.12.1-canary.3576+b62bf25eb",
35
- "@atlaspack/types": "2.12.1-canary.3576+b62bf25eb",
36
- "@atlaspack/utils": "2.12.1-canary.3576+b62bf25eb",
37
- "@atlaspack/workers": "2.12.1-canary.3576+b62bf25eb",
23
+ "@atlaspack/build-cache": "2.12.1-canary.3577+088900269",
24
+ "@atlaspack/cache": "2.12.1-canary.3577+088900269",
25
+ "@atlaspack/diagnostic": "2.12.1-canary.3577+088900269",
26
+ "@atlaspack/events": "2.12.1-canary.3577+088900269",
27
+ "@atlaspack/feature-flags": "2.12.1-canary.3577+088900269",
28
+ "@atlaspack/fs": "2.12.1-canary.3577+088900269",
29
+ "@atlaspack/graph": "3.2.1-canary.3577+088900269",
30
+ "@atlaspack/logger": "2.12.1-canary.3577+088900269",
31
+ "@atlaspack/package-manager": "2.12.1-canary.3577+088900269",
32
+ "@atlaspack/plugin": "2.12.1-canary.3577+088900269",
33
+ "@atlaspack/profiler": "2.12.1-canary.3577+088900269",
34
+ "@atlaspack/rust": "2.12.1-canary.3577+088900269",
35
+ "@atlaspack/types": "2.12.1-canary.3577+088900269",
36
+ "@atlaspack/utils": "2.12.1-canary.3577+088900269",
37
+ "@atlaspack/workers": "2.12.1-canary.3577+088900269",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -66,5 +66,5 @@
66
66
  "browser": {
67
67
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
68
68
  },
69
- "gitHead": "b62bf25eb49634807a561f0978efc3f4d0642c71"
69
+ "gitHead": "088900269410a2d52aedd13e38fb480902df7545"
70
70
  }
@@ -60,7 +60,13 @@ export class AtlaspackV3 {
60
60
  },
61
61
  });
62
62
 
63
- workerPool.releaseWorkers(workerIds);
63
+ // In the integration tests we keep the workers alive so they don't need to
64
+ // be re-initialized for the next test
65
+ if (process.env.ATLASPACK_BUILD_ENV === 'test') {
66
+ workerPool.releaseWorkers(workerIds);
67
+ } else {
68
+ workerPool.shutdown();
69
+ }
64
70
 
65
71
  if (error !== null) {
66
72
  throw new ThrowableDiagnostic({