@atlaspack/core 2.12.1-canary.3462 → 2.12.1-canary.3464

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/Atlaspack.js CHANGED
@@ -604,6 +604,6 @@ function createWorkerFarm(options = {}) {
604
604
  return new (_workers().default)({
605
605
  ...options,
606
606
  // $FlowFixMe
607
- workerPath: process.browser ? '@atlaspack/core/src/worker.js' : require.resolve('./worker')
607
+ workerPath: process.browser ? '@atlaspack/core/worker' : require.resolve('./worker')
608
608
  });
609
609
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.12.1-canary.3462+3c4d00e02",
3
+ "version": "2.12.1-canary.3464+b66723585",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,20 +20,20 @@
20
20
  "check-ts": "tsc --noEmit index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/cache": "2.12.1-canary.3462+3c4d00e02",
24
- "@atlaspack/diagnostic": "2.12.1-canary.3462+3c4d00e02",
25
- "@atlaspack/events": "2.12.1-canary.3462+3c4d00e02",
26
- "@atlaspack/feature-flags": "2.12.1-canary.3462+3c4d00e02",
27
- "@atlaspack/fs": "2.12.1-canary.3462+3c4d00e02",
28
- "@atlaspack/graph": "3.2.1-canary.3462+3c4d00e02",
29
- "@atlaspack/logger": "2.12.1-canary.3462+3c4d00e02",
30
- "@atlaspack/package-manager": "2.12.1-canary.3462+3c4d00e02",
31
- "@atlaspack/plugin": "2.12.1-canary.3462+3c4d00e02",
32
- "@atlaspack/profiler": "2.12.1-canary.3462+3c4d00e02",
33
- "@atlaspack/rust": "2.12.1-canary.3462+3c4d00e02",
34
- "@atlaspack/types": "2.12.1-canary.3462+3c4d00e02",
35
- "@atlaspack/utils": "2.12.1-canary.3462+3c4d00e02",
36
- "@atlaspack/workers": "2.12.1-canary.3462+3c4d00e02",
23
+ "@atlaspack/cache": "2.12.1-canary.3464+b66723585",
24
+ "@atlaspack/diagnostic": "2.12.1-canary.3464+b66723585",
25
+ "@atlaspack/events": "2.12.1-canary.3464+b66723585",
26
+ "@atlaspack/feature-flags": "2.12.1-canary.3464+b66723585",
27
+ "@atlaspack/fs": "2.12.1-canary.3464+b66723585",
28
+ "@atlaspack/graph": "3.2.1-canary.3464+b66723585",
29
+ "@atlaspack/logger": "2.12.1-canary.3464+b66723585",
30
+ "@atlaspack/package-manager": "2.12.1-canary.3464+b66723585",
31
+ "@atlaspack/plugin": "2.12.1-canary.3464+b66723585",
32
+ "@atlaspack/profiler": "2.12.1-canary.3464+b66723585",
33
+ "@atlaspack/rust": "2.12.1-canary.3464+b66723585",
34
+ "@atlaspack/types": "2.12.1-canary.3464+b66723585",
35
+ "@atlaspack/utils": "2.12.1-canary.3464+b66723585",
36
+ "@atlaspack/workers": "2.12.1-canary.3464+b66723585",
37
37
  "@mischnic/json-sourcemap": "^0.1.0",
38
38
  "@parcel/source-map": "^2.1.1",
39
39
  "base-x": "^3.0.8",
@@ -54,8 +54,15 @@
54
54
  "rfdc": "1",
55
55
  "tempy": "^0.2.1"
56
56
  },
57
+ "exports": {
58
+ ".": "./lib/index.js",
59
+ "./worker": {
60
+ "development": "./src/worker.js",
61
+ "default": "./lib/worker.js"
62
+ }
63
+ },
57
64
  "browser": {
58
65
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
59
66
  },
60
- "gitHead": "3c4d00e027b4bd79399440961d13c2c37bac3005"
67
+ "gitHead": "b667235859922e485011908e0d4069ab95598be5"
61
68
  }
package/src/Atlaspack.js CHANGED
@@ -647,7 +647,7 @@ export function createWorkerFarm(
647
647
  ...options,
648
648
  // $FlowFixMe
649
649
  workerPath: process.browser
650
- ? '@atlaspack/core/src/worker.js'
650
+ ? '@atlaspack/core/worker'
651
651
  : require.resolve('./worker'),
652
652
  });
653
653
  }
@@ -15,7 +15,7 @@ import {toProjectPath} from '../src/projectPath';
15
15
  import {DEFAULT_FEATURE_FLAGS, setFeatureFlags} from '../../feature-flags/src';
16
16
 
17
17
  const options = DEFAULT_OPTIONS;
18
- const farm = new WorkerFarm({workerPath: require.resolve('../src/worker.js')});
18
+ const farm = new WorkerFarm({workerPath: require.resolve('../src/worker')});
19
19
 
20
20
  describe('RequestTracker', () => {
21
21
  it('should not run requests that have not been invalidated', async () => {
@@ -21,7 +21,7 @@ const mockCast = (f: any): any => f;
21
21
  describe('ConfigRequest tests', () => {
22
22
  const projectRoot = 'project_root';
23
23
  const farm = new WorkerFarm({
24
- workerPath: require.resolve('../../src/worker.js'),
24
+ workerPath: require.resolve('../../src/worker'),
25
25
  maxConcurrentWorkers: 1,
26
26
  });
27
27
  let fs = new MemoryFS(farm);