@nx/js 24.1.0-beta.0 → 24.1.0-canary.20261111-edd9940
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.
|
@@ -25,6 +25,7 @@ async function syncGenerator(tree) {
|
|
|
25
25
|
composite: new Map(),
|
|
26
26
|
content: new Map(),
|
|
27
27
|
exists: new Map(),
|
|
28
|
+
extendedConfigs: new Map(),
|
|
28
29
|
};
|
|
29
30
|
// Root tsconfig containing project references for the whole workspace
|
|
30
31
|
const rootTsconfigPath = 'tsconfig.json';
|
|
@@ -148,7 +149,7 @@ async function syncGenerator(tree) {
|
|
|
148
149
|
// duplicate the project references in the tsconfig.json file
|
|
149
150
|
let keepReferencesInTsconfigJson = true;
|
|
150
151
|
if (foundRuntimeTsConfig) {
|
|
151
|
-
const sourceProjectTsconfig = parseTsconfig(sourceProjectTsconfigPath, tsSysFromTree);
|
|
152
|
+
const sourceProjectTsconfig = parseTsconfig(sourceProjectTsconfigPath, tsSysFromTree, tsconfigInfoCaches);
|
|
152
153
|
keepReferencesInTsconfigJson = sourceProjectTsconfig.fileNames.length > 0;
|
|
153
154
|
}
|
|
154
155
|
updateTsConfigReferences(tree, tsSysFromTree, tsconfigInfoCaches, sourceProjectTsconfigPath, keepReferencesInTsconfigJson ? dependencies : [], sourceProjectNode.data.root, projectRoots, changedFiles);
|
|
@@ -185,8 +186,8 @@ function readRawTsconfigContents(tree, tsconfigInfoCaches, tsconfigPath) {
|
|
|
185
186
|
}
|
|
186
187
|
return tsconfigInfoCaches.content.get(tsconfigPath);
|
|
187
188
|
}
|
|
188
|
-
function parseTsconfig(tsconfigPath, sys) {
|
|
189
|
-
return ts.parseJsonConfigFileContent(ts.readConfigFile(tsconfigPath, sys.readFile).config, sys, (0, posix_1.dirname)(tsconfigPath));
|
|
189
|
+
function parseTsconfig(tsconfigPath, sys, tsconfigInfoCaches) {
|
|
190
|
+
return ts.parseJsonConfigFileContent(ts.readConfigFile(tsconfigPath, sys.readFile).config, sys, (0, posix_1.dirname)(tsconfigPath), undefined, undefined, undefined, undefined, tsconfigInfoCaches.extendedConfigs);
|
|
190
191
|
}
|
|
191
192
|
/**
|
|
192
193
|
* Within the context of a sync generator, performance is a key concern,
|
|
@@ -412,10 +413,7 @@ function patchTsconfigJsonReferences(tree, tsconfigInfoCaches, tsconfigPath, upd
|
|
|
412
413
|
}
|
|
413
414
|
function hasCompositeEnabled(tsSysFromTree, tsconfigInfoCaches, tsconfigPath) {
|
|
414
415
|
if (!tsconfigInfoCaches.composite.has(tsconfigPath)) {
|
|
415
|
-
const parsed = parseTsconfig(tsconfigPath, {
|
|
416
|
-
...tsSysFromTree,
|
|
417
|
-
readDirectory: () => [],
|
|
418
|
-
});
|
|
416
|
+
const parsed = parseTsconfig(tsconfigPath, { ...tsSysFromTree, readDirectory: () => [] }, tsconfigInfoCaches);
|
|
419
417
|
tsconfigInfoCaches.composite.set(tsconfigPath, parsed.options.composite === true);
|
|
420
418
|
}
|
|
421
419
|
return tsconfigInfoCaches.composite.get(tsconfigPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "24.1.0-
|
|
3
|
+
"version": "24.1.0-canary.20261111-edd9940",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
"@babel/preset-env": "^7.23.2",
|
|
163
163
|
"@babel/preset-typescript": "^7.22.5",
|
|
164
164
|
"@babel/runtime": "^7.22.6",
|
|
165
|
-
"@nx/devkit": "24.1.0-
|
|
166
|
-
"@nx/workspace": "24.1.0-
|
|
165
|
+
"@nx/devkit": "24.1.0-canary.20261111-edd9940",
|
|
166
|
+
"@nx/workspace": "24.1.0-canary.20261111-edd9940",
|
|
167
167
|
"@zkochan/js-yaml": "0.0.7",
|
|
168
168
|
"babel-plugin-const-enum": "^1.0.1",
|
|
169
169
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -183,14 +183,14 @@
|
|
|
183
183
|
"tslib": "^2.3.0"
|
|
184
184
|
},
|
|
185
185
|
"devDependencies": {
|
|
186
|
-
"@nx/esbuild": "24.1.0-
|
|
187
|
-
"@nx/eslint": "24.1.0-
|
|
188
|
-
"@nx/jest": "24.1.0-
|
|
189
|
-
"@nx/oxlint": "24.1.0-
|
|
190
|
-
"@nx/rollup": "24.1.0-
|
|
191
|
-
"@nx/vite": "24.1.0-
|
|
192
|
-
"@nx/vitest": "24.1.0-
|
|
193
|
-
"nx": "24.1.0-
|
|
186
|
+
"@nx/esbuild": "24.1.0-canary.20261111-edd9940",
|
|
187
|
+
"@nx/eslint": "24.1.0-canary.20261111-edd9940",
|
|
188
|
+
"@nx/jest": "24.1.0-canary.20261111-edd9940",
|
|
189
|
+
"@nx/oxlint": "24.1.0-canary.20261111-edd9940",
|
|
190
|
+
"@nx/rollup": "24.1.0-canary.20261111-edd9940",
|
|
191
|
+
"@nx/vite": "24.1.0-canary.20261111-edd9940",
|
|
192
|
+
"@nx/vitest": "24.1.0-canary.20261111-edd9940",
|
|
193
|
+
"nx": "24.1.0-canary.20261111-edd9940"
|
|
194
194
|
},
|
|
195
195
|
"peerDependencies": {
|
|
196
196
|
"@swc/cli": ">=0.6.0 <0.9.0",
|