@atlaspack/core 2.24.1 → 2.24.2-dev-ts-project-refs-d30e9754f.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.
Files changed (86) hide show
  1. package/LICENSE +201 -0
  2. package/dist/AssetGraph.js +591 -0
  3. package/dist/Atlaspack.js +656 -0
  4. package/dist/AtlaspackConfig.js +324 -0
  5. package/dist/AtlaspackConfig.schema.js +108 -0
  6. package/dist/BundleGraph.js +1628 -0
  7. package/dist/CommittedAsset.js +142 -0
  8. package/dist/Dependency.js +125 -0
  9. package/dist/Environment.js +132 -0
  10. package/dist/EnvironmentManager.js +108 -0
  11. package/dist/IdentifierRegistry.js +38 -0
  12. package/dist/InternalConfig.js +37 -0
  13. package/dist/PackagerRunner.js +531 -0
  14. package/dist/ReporterRunner.js +151 -0
  15. package/dist/RequestTracker.js +1368 -0
  16. package/dist/SymbolPropagation.js +620 -0
  17. package/dist/TargetDescriptor.schema.js +143 -0
  18. package/dist/Transformation.js +487 -0
  19. package/dist/UncommittedAsset.js +315 -0
  20. package/dist/Validation.js +196 -0
  21. package/dist/applyRuntimes.js +305 -0
  22. package/dist/assetUtils.js +168 -0
  23. package/dist/atlaspack-v3/AtlaspackV3.js +70 -0
  24. package/dist/atlaspack-v3/NapiWorkerPool.js +57 -0
  25. package/dist/atlaspack-v3/fs.js +52 -0
  26. package/dist/atlaspack-v3/index.js +25 -0
  27. package/dist/atlaspack-v3/jsCallable.js +16 -0
  28. package/dist/atlaspack-v3/worker/compat/asset-symbols.js +190 -0
  29. package/dist/atlaspack-v3/worker/compat/bitflags.js +94 -0
  30. package/dist/atlaspack-v3/worker/compat/dependency.js +43 -0
  31. package/dist/atlaspack-v3/worker/compat/environment.js +57 -0
  32. package/dist/atlaspack-v3/worker/compat/index.js +25 -0
  33. package/dist/atlaspack-v3/worker/compat/mutable-asset.js +152 -0
  34. package/dist/atlaspack-v3/worker/compat/plugin-config.js +76 -0
  35. package/dist/atlaspack-v3/worker/compat/plugin-logger.js +26 -0
  36. package/dist/atlaspack-v3/worker/compat/plugin-options.js +122 -0
  37. package/dist/atlaspack-v3/worker/compat/plugin-tracer.js +10 -0
  38. package/dist/atlaspack-v3/worker/compat/target.js +14 -0
  39. package/dist/atlaspack-v3/worker/worker.js +292 -0
  40. package/dist/constants.js +17 -0
  41. package/dist/dumpGraphToGraphViz.js +281 -0
  42. package/dist/index.js +62 -0
  43. package/dist/loadAtlaspackPlugin.js +128 -0
  44. package/dist/loadDotEnv.js +41 -0
  45. package/dist/projectPath.js +83 -0
  46. package/dist/public/Asset.js +279 -0
  47. package/dist/public/Bundle.js +224 -0
  48. package/dist/public/BundleGraph.js +359 -0
  49. package/dist/public/BundleGroup.js +53 -0
  50. package/dist/public/Config.js +286 -0
  51. package/dist/public/Dependency.js +138 -0
  52. package/dist/public/Environment.js +278 -0
  53. package/dist/public/MutableBundleGraph.js +277 -0
  54. package/dist/public/PluginOptions.js +80 -0
  55. package/dist/public/Symbols.js +248 -0
  56. package/dist/public/Target.js +69 -0
  57. package/dist/registerCoreWithSerializer.js +38 -0
  58. package/dist/requests/AssetGraphRequest.js +429 -0
  59. package/dist/requests/AssetGraphRequestRust.js +246 -0
  60. package/dist/requests/AssetRequest.js +130 -0
  61. package/dist/requests/AtlaspackBuildRequest.js +60 -0
  62. package/dist/requests/AtlaspackConfigRequest.js +490 -0
  63. package/dist/requests/BundleGraphRequest.js +441 -0
  64. package/dist/requests/ConfigRequest.js +222 -0
  65. package/dist/requests/DevDepRequest.js +204 -0
  66. package/dist/requests/EntryRequest.js +314 -0
  67. package/dist/requests/PackageRequest.js +65 -0
  68. package/dist/requests/PathRequest.js +349 -0
  69. package/dist/requests/TargetRequest.js +1310 -0
  70. package/dist/requests/ValidationRequest.js +49 -0
  71. package/dist/requests/WriteBundleRequest.js +254 -0
  72. package/dist/requests/WriteBundlesRequest.js +165 -0
  73. package/dist/requests/asset-graph-diff.js +126 -0
  74. package/dist/requests/asset-graph-dot.js +131 -0
  75. package/dist/resolveOptions.js +268 -0
  76. package/dist/rustWorkerThreadDylibHack.js +19 -0
  77. package/dist/serializerCore.browser.js +43 -0
  78. package/dist/summarizeRequest.js +39 -0
  79. package/dist/types.js +31 -0
  80. package/dist/utils.js +172 -0
  81. package/dist/worker.js +130 -0
  82. package/lib/AssetGraph.js +1 -0
  83. package/package.json +22 -22
  84. package/src/AssetGraph.ts +1 -0
  85. package/tsconfig.json +55 -2
  86. package/tsconfig.tsbuildinfo +1 -0
package/dist/utils.js ADDED
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BuildAbortError = void 0;
7
+ exports.getBundleGroupId = getBundleGroupId;
8
+ exports.assertSignalNotAborted = assertSignalNotAborted;
9
+ exports.getPublicId = getPublicId;
10
+ exports.optionsProxy = optionsProxy;
11
+ exports.hashFromOption = hashFromOption;
12
+ exports.invalidateOnFileCreateToInternal = invalidateOnFileCreateToInternal;
13
+ exports.createInvalidations = createInvalidations;
14
+ exports.fromInternalSourceLocation = fromInternalSourceLocation;
15
+ exports.toInternalSourceLocation = toInternalSourceLocation;
16
+ exports.toInternalSymbols = toInternalSymbols;
17
+ const assert_1 = __importDefault(require("assert"));
18
+ const base_x_1 = __importDefault(require("base-x"));
19
+ const utils_1 = require("@atlaspack/utils");
20
+ const projectPath_1 = require("./projectPath");
21
+ // /flow-to-ts helpers
22
+ const base62 = (0, base_x_1.default)('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
23
+ function getBundleGroupId(bundleGroup) {
24
+ return 'bundle_group:' + bundleGroup.target.name + bundleGroup.entryAssetId;
25
+ }
26
+ function assertSignalNotAborted(signal) {
27
+ if (signal && signal.aborted) {
28
+ throw new BuildAbortError();
29
+ }
30
+ }
31
+ class BuildAbortError extends Error {
32
+ constructor() {
33
+ super(...arguments);
34
+ this.name = 'BuildAbortError';
35
+ }
36
+ }
37
+ exports.BuildAbortError = BuildAbortError;
38
+ function getPublicId(id, alreadyExists) {
39
+ let encoded = base62.encode(Buffer.from(id, 'hex'));
40
+ for (let end = 5; end <= encoded.length; end++) {
41
+ let candidate = encoded.slice(0, end);
42
+ if (!alreadyExists(candidate)) {
43
+ return candidate;
44
+ }
45
+ }
46
+ throw new Error('Original id was not unique');
47
+ }
48
+ // These options don't affect compilation and should cause invalidations
49
+ const ignoreOptions = new Set([
50
+ 'env', // handled by separate invalidateOnEnvChange
51
+ 'inputFS',
52
+ 'outputFS',
53
+ 'workerFarm',
54
+ 'packageManager',
55
+ 'detailedReport',
56
+ 'shouldDisableCache',
57
+ 'cacheDir',
58
+ 'shouldAutoInstall',
59
+ 'logLevel',
60
+ 'shouldProfile',
61
+ 'shouldTrace',
62
+ 'shouldPatchConsole',
63
+ 'projectRoot',
64
+ 'additionalReporters',
65
+ ]);
66
+ function optionsProxy(options, invalidateOnOptionChange, addDevDependency) {
67
+ let packageManager = addDevDependency
68
+ ? proxyPackageManager(options.projectRoot, options.packageManager, addDevDependency)
69
+ : options.packageManager;
70
+ return new Proxy(options, {
71
+ get(target, prop) {
72
+ if (prop === 'packageManager') {
73
+ return packageManager;
74
+ }
75
+ if (!ignoreOptions.has(prop)) {
76
+ invalidateOnOptionChange(prop);
77
+ }
78
+ // @ts-expect-error TS7053
79
+ return target[prop];
80
+ },
81
+ });
82
+ }
83
+ function proxyPackageManager(projectRoot, packageManager, addDevDependency) {
84
+ let require = (id, from, opts) => {
85
+ addDevDependency({
86
+ specifier: id,
87
+ resolveFrom: (0, projectPath_1.toProjectPath)(projectRoot, from),
88
+ range: opts?.range,
89
+ });
90
+ return packageManager.require(id, from, opts);
91
+ };
92
+ return new Proxy(packageManager, {
93
+ get(target, prop) {
94
+ if (prop === 'require') {
95
+ return require;
96
+ }
97
+ // @ts-expect-error TS7053
98
+ return target[prop];
99
+ },
100
+ });
101
+ }
102
+ function hashFromOption(value) {
103
+ if (typeof value === 'object' && value != null) {
104
+ // @ts-expect-error TS2345
105
+ return (0, utils_1.hashObject)(value);
106
+ }
107
+ return String(value);
108
+ }
109
+ function invalidateOnFileCreateToInternal(projectRoot, invalidation) {
110
+ // @ts-expect-error TS2339
111
+ if (invalidation.glob != null) {
112
+ // @ts-expect-error TS2339
113
+ return { glob: (0, projectPath_1.toProjectPath)(projectRoot, invalidation.glob) };
114
+ // @ts-expect-error TS2339
115
+ }
116
+ else if (invalidation.filePath != null) {
117
+ return {
118
+ // @ts-expect-error TS2339
119
+ filePath: (0, projectPath_1.toProjectPath)(projectRoot, invalidation.filePath),
120
+ };
121
+ }
122
+ else {
123
+ (0, assert_1.default)(
124
+ // @ts-expect-error TS2339
125
+ invalidation.aboveFilePath != null && invalidation.fileName != null);
126
+ return {
127
+ // @ts-expect-error TS2339
128
+ fileName: invalidation.fileName,
129
+ // @ts-expect-error TS2339
130
+ aboveFilePath: (0, projectPath_1.toProjectPath)(projectRoot, invalidation.aboveFilePath),
131
+ };
132
+ }
133
+ }
134
+ function createInvalidations() {
135
+ return {
136
+ invalidateOnBuild: false,
137
+ invalidateOnStartup: false,
138
+ invalidateOnOptionChange: new Set(),
139
+ invalidateOnEnvChange: new Set(),
140
+ invalidateOnFileChange: new Set(),
141
+ invalidateOnFileCreate: [],
142
+ };
143
+ }
144
+ function fromInternalSourceLocation(projectRoot, loc) {
145
+ if (!loc)
146
+ return loc;
147
+ return {
148
+ filePath: (0, projectPath_1.fromProjectPath)(projectRoot, loc.filePath),
149
+ start: loc.start,
150
+ end: loc.end,
151
+ };
152
+ }
153
+ function toInternalSourceLocation(projectRoot, loc) {
154
+ if (!loc)
155
+ return loc;
156
+ return {
157
+ filePath: (0, projectPath_1.toProjectPath)(projectRoot, loc.filePath),
158
+ start: loc.start,
159
+ end: loc.end,
160
+ };
161
+ }
162
+ function toInternalSymbols(projectRoot, symbols) {
163
+ if (!symbols)
164
+ return symbols;
165
+ return new Map([...symbols].map(([k, { loc, ...v }]) => [
166
+ k,
167
+ {
168
+ ...v,
169
+ loc: toInternalSourceLocation(projectRoot, loc),
170
+ },
171
+ ]));
172
+ }
package/dist/worker.js ADDED
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.clearWorkerBuildCaches = clearWorkerBuildCaches;
7
+ exports.runTransform = runTransform;
8
+ exports.runValidate = runValidate;
9
+ exports.runPackage = runPackage;
10
+ exports.childInit = childInit;
11
+ exports.invalidateRequireCache = invalidateRequireCache;
12
+ exports.ping = ping;
13
+ const utils_1 = require("@atlaspack/utils");
14
+ const assert_1 = __importDefault(require("assert"));
15
+ const nullthrows_1 = __importDefault(require("nullthrows"));
16
+ const BundleGraph_1 = __importDefault(require("./BundleGraph"));
17
+ const Transformation_1 = __importDefault(require("./Transformation"));
18
+ const ReporterRunner_1 = require("./ReporterRunner");
19
+ const PackagerRunner_1 = __importDefault(require("./PackagerRunner"));
20
+ const Validation_1 = __importDefault(require("./Validation"));
21
+ const AtlaspackConfig_1 = require("./AtlaspackConfig");
22
+ const registerCoreWithSerializer_1 = require("./registerCoreWithSerializer");
23
+ const build_cache_1 = require("@atlaspack/build-cache");
24
+ const source_map_1 = require("@parcel/source-map");
25
+ // @ts-expect-error TS2305
26
+ const rust_1 = require("@atlaspack/rust");
27
+ const workers_1 = __importDefault(require("@atlaspack/workers"));
28
+ const feature_flags_1 = require("@atlaspack/feature-flags");
29
+ require("@atlaspack/cache"); // register with serializer
30
+ require("@atlaspack/package-manager");
31
+ require("@atlaspack/fs");
32
+ // /flow-to-ts helpers
33
+ // @ts-expect-error TS2339
34
+ if (process.env.ATLASPACK_BUILD_REPL && process.browser) {
35
+ /* eslint-disable import/no-extraneous-dependencies, monorepo/no-internal-import */
36
+ require('@atlaspack/repl/src/atlaspack/BrowserPackageManager.js');
37
+ require('@atlaspack/repl/src/atlaspack/ExtendedMemoryFS.js');
38
+ /* eslint-enable import/no-extraneous-dependencies, monorepo/no-internal-import */
39
+ }
40
+ (0, registerCoreWithSerializer_1.registerCoreWithSerializer)();
41
+ // TODO: this should eventually be replaced by an in memory cache layer
42
+ let atlaspackConfigCache = new Map();
43
+ function loadOptions(ref, workerApi) {
44
+ return (0, nullthrows_1.default)(workerApi.getSharedReference(ref));
45
+ }
46
+ async function loadConfig(cachePath, options) {
47
+ let config = atlaspackConfigCache.get(cachePath);
48
+ if (config && config.options === options) {
49
+ return config;
50
+ }
51
+ let processedConfig = (0, nullthrows_1.default)(await options.cache.get(cachePath));
52
+ config = new AtlaspackConfig_1.AtlaspackConfig(processedConfig, options);
53
+ atlaspackConfigCache.set(cachePath, config);
54
+ (0, feature_flags_1.setFeatureFlags)(options.featureFlags);
55
+ return config;
56
+ }
57
+ function clearWorkerBuildCaches() {
58
+ utils_1.loadConfig.clear();
59
+ (0, build_cache_1.clearBuildCaches)();
60
+ }
61
+ async function runTransform(workerApi, opts) {
62
+ let { optionsRef, configCachePath, ...rest } = opts;
63
+ let options = loadOptions(optionsRef, workerApi);
64
+ let config = await loadConfig(configCachePath, options);
65
+ return new Transformation_1.default({
66
+ workerApi,
67
+ options,
68
+ // @ts-expect-error TS2783
69
+ config,
70
+ ...rest,
71
+ }).run();
72
+ }
73
+ async function runValidate(workerApi, opts) {
74
+ let { optionsRef, configCachePath, ...rest } = opts;
75
+ let options = loadOptions(optionsRef, workerApi);
76
+ let config = await loadConfig(configCachePath, options);
77
+ return new Validation_1.default({
78
+ workerApi,
79
+ // @ts-expect-error TS2783
80
+ report: ReporterRunner_1.reportWorker.bind(null, workerApi),
81
+ options,
82
+ // @ts-expect-error TS2783
83
+ config,
84
+ ...rest,
85
+ }).run();
86
+ }
87
+ async function runPackage(workerApi, { bundle, bundleGraphReference, configCachePath, optionsRef, previousDevDeps, invalidDevDeps, previousInvalidations, }) {
88
+ let bundleGraph = workerApi.getSharedReference(bundleGraphReference);
89
+ (0, assert_1.default)(bundleGraph instanceof BundleGraph_1.default);
90
+ let options = loadOptions(optionsRef, workerApi);
91
+ let atlaspackConfig = await loadConfig(configCachePath, options);
92
+ let runner = new PackagerRunner_1.default({
93
+ config: atlaspackConfig,
94
+ options,
95
+ // @ts-expect-error TS2322
96
+ report: workers_1.default.isWorker() ? ReporterRunner_1.reportWorker.bind(null, workerApi) : ReporterRunner_1.report,
97
+ previousDevDeps,
98
+ previousInvalidations,
99
+ });
100
+ return runner.run(bundleGraph, bundle, invalidDevDeps);
101
+ }
102
+ async function childInit() {
103
+ await source_map_1.init;
104
+ await (0, rust_1.init)?.();
105
+ }
106
+ const PKG_RE = /node_modules[/\\]((?:@[^/\\]+[/\\][^/\\]+)|[^/\\]+)(?!.*[/\\]node_modules[/\\])/;
107
+ function invalidateRequireCache(workerApi, file) {
108
+ if (process.env.ATLASPACK_BUILD_ENV === 'test') {
109
+ // Delete this module and all children in the same node_modules folder
110
+ let module = require.cache[file];
111
+ if (module) {
112
+ delete require.cache[file];
113
+ let pkg = file.match(PKG_RE)?.[1];
114
+ for (let child of module.children) {
115
+ if (pkg === child.id.match(PKG_RE)?.[1]) {
116
+ invalidateRequireCache(workerApi, child.id);
117
+ }
118
+ }
119
+ }
120
+ atlaspackConfigCache.clear();
121
+ return;
122
+ }
123
+ throw new Error('invalidateRequireCache is only for tests');
124
+ }
125
+ /**
126
+ * This is used to wait until workers are responding to messages.
127
+ */
128
+ function ping() {
129
+ return true;
130
+ }
package/lib/AssetGraph.js CHANGED
@@ -129,6 +129,7 @@ class AssetGraph extends _graph().ContentGraph {
129
129
  disableIncrementalBundling,
130
130
  ...rest
131
131
  } = opts;
132
+ // @ts-expect-error TS2345
132
133
  super(rest);
133
134
  this.hash = hash;
134
135
  this.#bundlingVersion = bundlingVersion ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.24.1",
3
+ "version": "2.24.2-dev-ts-project-refs-d30e9754f.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "main": "./lib/index.js",
13
13
  "source": "./src/index.ts",
14
- "types": "./lib/types/index.d.ts",
14
+ "types": "./lib/types/src/index.d.ts",
15
15
  "engines": {
16
16
  "node": ">= 16.0.0"
17
17
  },
@@ -19,26 +19,25 @@
19
19
  "test": "mocha",
20
20
  "test-ci": "mocha",
21
21
  "generate-ts": "tsc --emitDeclarationOnly",
22
- "check-ts": "tsc --emitDeclarationOnly --rootDir src",
23
22
  "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
24
23
  },
25
24
  "dependencies": {
25
+ "@atlaspack/build-cache": "2.13.7-dev-ts-project-refs-d30e9754f.0",
26
+ "@atlaspack/cache": "3.2.27-dev-ts-project-refs-d30e9754f.0",
27
+ "@atlaspack/diagnostic": "2.14.5-dev-ts-project-refs-d30e9754f.0",
28
+ "@atlaspack/events": "2.14.5-dev-ts-project-refs-d30e9754f.0",
29
+ "@atlaspack/feature-flags": "2.25.2-dev-ts-project-refs-d30e9754f.0",
30
+ "@atlaspack/fs": "2.15.27-dev-ts-project-refs-d30e9754f.0",
31
+ "@atlaspack/graph": "3.5.21-dev-ts-project-refs-d30e9754f.0",
32
+ "@atlaspack/logger": "2.14.24-dev-ts-project-refs-d30e9754f.0",
33
+ "@atlaspack/package-manager": "2.14.32-dev-ts-project-refs-d30e9754f.0",
34
+ "@atlaspack/plugin": "2.14.32-dev-ts-project-refs-d30e9754f.0",
35
+ "@atlaspack/profiler": "2.14.29-dev-ts-project-refs-d30e9754f.0",
36
+ "@atlaspack/rust": "3.8.2-dev-ts-project-refs-d30e9754f.0",
37
+ "@atlaspack/types": "2.15.22-dev-ts-project-refs-d30e9754f.0",
38
+ "@atlaspack/utils": "2.19.4-dev-ts-project-refs-d30e9754f.0",
39
+ "@atlaspack/workers": "2.14.32-dev-ts-project-refs-d30e9754f.0",
26
40
  "@mischnic/json-sourcemap": "^0.1.0",
27
- "@atlaspack/build-cache": "2.13.6",
28
- "@atlaspack/cache": "3.2.26",
29
- "@atlaspack/diagnostic": "2.14.4",
30
- "@atlaspack/events": "2.14.4",
31
- "@atlaspack/feature-flags": "2.25.1",
32
- "@atlaspack/fs": "2.15.26",
33
- "@atlaspack/graph": "3.5.20",
34
- "@atlaspack/logger": "2.14.23",
35
- "@atlaspack/package-manager": "2.14.31",
36
- "@atlaspack/plugin": "2.14.31",
37
- "@atlaspack/profiler": "2.14.28",
38
- "@atlaspack/rust": "3.8.1",
39
- "@atlaspack/types": "2.15.21",
40
- "@atlaspack/utils": "2.19.3",
41
- "@atlaspack/workers": "2.14.31",
42
41
  "@parcel/source-map": "^2.1.1",
43
42
  "base-x": "^3.0.8",
44
43
  "browserslist": "^4.6.6",
@@ -51,15 +50,16 @@
51
50
  "semver": "^7.5.2"
52
51
  },
53
52
  "devDependencies": {
54
- "@atlaspack/babel-register": "2.14.4",
53
+ "@atlaspack/babel-register": "2.14.5-dev-ts-project-refs-d30e9754f.0",
55
54
  "@types/node": ">= 18",
56
- "rfdc": "1",
57
- "jest-diff": "*",
58
55
  "graphviz": "^0.0.9",
56
+ "jest-diff": "*",
57
+ "rfdc": "1",
59
58
  "tempy": "^0.2.1"
60
59
  },
61
60
  "browser": {
62
61
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
63
62
  },
64
- "type": "commonjs"
63
+ "type": "commonjs",
64
+ "gitHead": "d30e9754f8d423d53261ec54ec87e6fa1299578a"
65
65
  }
package/src/AssetGraph.ts CHANGED
@@ -140,6 +140,7 @@ export default class AssetGraph extends ContentGraph<AssetGraphNode> {
140
140
  constructor(opts?: AssetGraphOpts | null) {
141
141
  if (opts) {
142
142
  let {hash, bundlingVersion, disableIncrementalBundling, ...rest} = opts;
143
+ // @ts-expect-error TS2345
143
144
  super(rest);
144
145
  this.hash = hash;
145
146
  this.#bundlingVersion = bundlingVersion ?? 0;
package/tsconfig.json CHANGED
@@ -1,4 +1,57 @@
1
1
  {
2
- "extends": "../../../tsconfig.json",
3
- "include": ["src"]
2
+ "extends": "../../../tsconfig.base.json",
3
+ "include": ["./src/", "./package.json"],
4
+ "compilerOptions": {
5
+ "composite": true
6
+ },
7
+ "references": [
8
+ {
9
+ "path": "../../dev/babel-register/tsconfig.json"
10
+ },
11
+ {
12
+ "path": "../../utils/events/tsconfig.json"
13
+ },
14
+ {
15
+ "path": "../build-cache/tsconfig.json"
16
+ },
17
+ {
18
+ "path": "../cache/tsconfig.json"
19
+ },
20
+ {
21
+ "path": "../diagnostic/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../feature-flags/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../fs/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../graph/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../logger/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../package-manager/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../plugin/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../profiler/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../rust/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../types/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../utils/tsconfig.json"
52
+ },
53
+ {
54
+ "path": "../workers/tsconfig.json"
55
+ }
56
+ ]
4
57
  }