@atlaspack/core 2.14.1-dev.134 → 2.14.1-dev.138

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.
@@ -29,6 +29,9 @@ class PluginOptions {
29
29
  get parcelVersion() {
30
30
  return this.#options.parcelVersion;
31
31
  }
32
+ get isAtlaspackSuper() {
33
+ return Boolean(this.#options.isAtlaspackSuper);
34
+ }
32
35
  get hmrOptions() {
33
36
  return this.#options.hmrOptions;
34
37
  }
@@ -56,6 +56,7 @@ function _utils() {
56
56
  var _loadDotEnv = _interopRequireDefault(require("./loadDotEnv"));
57
57
  var _projectPath = require("./projectPath");
58
58
  var _AtlaspackConfigRequest = require("./requests/AtlaspackConfigRequest");
59
+ var _isSuperPackage = require("./isSuperPackage");
59
60
  var _constants = require("./constants");
60
61
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
61
62
  // Default cache directory name
@@ -238,7 +239,8 @@ async function resolveOptions(initialOptions) {
238
239
  ..._featureFlags().DEFAULT_FEATURE_FLAGS,
239
240
  ...(initialOptions === null || initialOptions === void 0 ? void 0 : initialOptions.featureFlags)
240
241
  },
241
- parcelVersion: _constants.ATLASPACK_VERSION
242
+ parcelVersion: _constants.ATLASPACK_VERSION,
243
+ isAtlaspackSuper: (0, _isSuperPackage.isSuperPackage)()
242
244
  };
243
245
  }
244
246
  function getRelativeConfigSpecifier(fs, projectRoot, specifier) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.14.1-dev.134+e072f4b10",
3
+ "version": "2.14.1-dev.138+7df3f2cee",
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.13.3-dev.134+e072f4b10",
24
- "@atlaspack/cache": "2.13.3-dev.134+e072f4b10",
25
- "@atlaspack/diagnostic": "2.14.1-dev.134+e072f4b10",
26
- "@atlaspack/events": "2.14.1-dev.134+e072f4b10",
27
- "@atlaspack/feature-flags": "2.14.1-dev.134+e072f4b10",
28
- "@atlaspack/fs": "2.14.1-dev.134+e072f4b10",
29
- "@atlaspack/graph": "3.4.1-dev.134+e072f4b10",
30
- "@atlaspack/logger": "2.14.1-dev.134+e072f4b10",
31
- "@atlaspack/package-manager": "2.14.1-dev.134+e072f4b10",
32
- "@atlaspack/plugin": "2.14.1-dev.134+e072f4b10",
33
- "@atlaspack/profiler": "2.14.1-dev.134+e072f4b10",
34
- "@atlaspack/rust": "3.0.1-dev.134+e072f4b10",
35
- "@atlaspack/types": "2.14.1-dev.134+e072f4b10",
36
- "@atlaspack/utils": "2.14.1-dev.134+e072f4b10",
37
- "@atlaspack/workers": "2.14.1-dev.134+e072f4b10",
23
+ "@atlaspack/build-cache": "2.13.3-dev.138+7df3f2cee",
24
+ "@atlaspack/cache": "2.13.3-dev.138+7df3f2cee",
25
+ "@atlaspack/diagnostic": "2.14.1-dev.138+7df3f2cee",
26
+ "@atlaspack/events": "2.14.1-dev.138+7df3f2cee",
27
+ "@atlaspack/feature-flags": "2.14.1-dev.138+7df3f2cee",
28
+ "@atlaspack/fs": "2.14.1-dev.138+7df3f2cee",
29
+ "@atlaspack/graph": "3.4.1-dev.138+7df3f2cee",
30
+ "@atlaspack/logger": "2.14.1-dev.138+7df3f2cee",
31
+ "@atlaspack/package-manager": "2.14.1-dev.138+7df3f2cee",
32
+ "@atlaspack/plugin": "2.14.1-dev.138+7df3f2cee",
33
+ "@atlaspack/profiler": "2.14.1-dev.138+7df3f2cee",
34
+ "@atlaspack/rust": "3.0.1-dev.138+7df3f2cee",
35
+ "@atlaspack/types": "2.14.1-dev.138+7df3f2cee",
36
+ "@atlaspack/utils": "2.14.1-dev.138+7df3f2cee",
37
+ "@atlaspack/workers": "2.14.1-dev.138+7df3f2cee",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -70,5 +70,5 @@
70
70
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
71
71
  },
72
72
  "type": "commonjs",
73
- "gitHead": "e072f4b100a13d97c544324004819ee51cdac4a8"
73
+ "gitHead": "7df3f2ceef899e67a62d99a53652584695291051"
74
74
  }
@@ -47,6 +47,10 @@ export default class PluginOptions implements IPluginOptions {
47
47
  return this.#options.parcelVersion;
48
48
  }
49
49
 
50
+ get isAtlaspackSuper(): boolean {
51
+ return Boolean(this.#options.isAtlaspackSuper);
52
+ }
53
+
50
54
  get hmrOptions(): ?HMROptions {
51
55
  return this.#options.hmrOptions;
52
56
  }
@@ -25,6 +25,7 @@ import {
25
25
  import loadDotEnv from './loadDotEnv';
26
26
  import {toProjectPath} from './projectPath';
27
27
  import {getResolveFrom} from './requests/AtlaspackConfigRequest';
28
+ import {isSuperPackage} from './isSuperPackage';
28
29
 
29
30
  import {DEFAULT_FEATURE_FLAGS} from '@atlaspack/feature-flags';
30
31
  import {ATLASPACK_VERSION} from './constants';
@@ -279,6 +280,7 @@ export default async function resolveOptions(
279
280
  // feature-flags
280
281
  featureFlags: {...DEFAULT_FEATURE_FLAGS, ...initialOptions?.featureFlags},
281
282
  parcelVersion: ATLASPACK_VERSION,
283
+ isAtlaspackSuper: isSuperPackage(),
282
284
  };
283
285
  }
284
286
 
package/src/types.js CHANGED
@@ -284,6 +284,7 @@ export type AtlaspackOptions = {|
284
284
  defaultConfig?: DependencySpecifier,
285
285
  env: EnvMap,
286
286
  parcelVersion: string,
287
+ isAtlaspackSuper?: boolean,
287
288
  targets: ?(Array<string> | {+[string]: TargetDescriptor, ...}),
288
289
  shouldDisableCache: boolean,
289
290
  cacheDir: FilePath,
@@ -108,7 +108,11 @@ describe('Environment', () => {
108
108
 
109
109
  describe('createEnvironment', function () {
110
110
  it('returns a stable hash', () => {
111
- initializeMonitoring();
111
+ try {
112
+ initializeMonitoring();
113
+ } catch (_err) {
114
+ /* ignore */
115
+ }
112
116
  const environment = createEnvironment({});
113
117
  expect(environment.id).toEqual('d821e85f6b50315e');
114
118
  });