@nx/js 21.0.0 → 21.0.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/preset-env": "^7.23.2",
|
|
40
40
|
"@babel/preset-typescript": "^7.22.5",
|
|
41
41
|
"@babel/runtime": "^7.22.6",
|
|
42
|
-
"@nx/devkit": "21.0.
|
|
43
|
-
"@nx/workspace": "21.0.
|
|
42
|
+
"@nx/devkit": "21.0.1",
|
|
43
|
+
"@nx/workspace": "21.0.1",
|
|
44
44
|
"@zkochan/js-yaml": "0.0.7",
|
|
45
45
|
"babel-plugin-const-enum": "^1.0.1",
|
|
46
46
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -161,7 +161,7 @@ async function getConfigFileHash(configFilePath, workspaceRoot, projectRoot, opt
|
|
|
161
161
|
...(packageJson ? [(0, file_hasher_1.hashObject)(packageJson)] : []),
|
|
162
162
|
// change this to bust the cache when making changes that would yield
|
|
163
163
|
// different results for the same hash
|
|
164
|
-
(0, file_hasher_1.hashObject)({ bust:
|
|
164
|
+
(0, file_hasher_1.hashObject)({ bust: 3 }),
|
|
165
165
|
]);
|
|
166
166
|
}
|
|
167
167
|
function checkIfConfigFileShouldBeProject(configFilePath, projectRoot, context) {
|
|
@@ -338,11 +338,13 @@ function getInputs(namedInputs, configFilePath, tsConfig, internalProjectReferen
|
|
|
338
338
|
}
|
|
339
339
|
return [input];
|
|
340
340
|
};
|
|
341
|
+
const configDirTemplate = '${configDir}';
|
|
342
|
+
const substituteConfigDir = (p) => p.startsWith(configDirTemplate) ? p.replace(configDirTemplate, './') : p;
|
|
341
343
|
projectTsConfigFiles.forEach(([configPath, config]) => {
|
|
342
344
|
configFiles.add(configPath);
|
|
343
345
|
const offset = (0, node_path_1.relative)(absoluteProjectRoot, (0, node_path_1.dirname)(configPath));
|
|
344
346
|
(config.raw?.include ?? []).forEach((p) => {
|
|
345
|
-
const normalized = normalizeInput((0, node_path_1.join)(offset, p), config);
|
|
347
|
+
const normalized = normalizeInput((0, node_path_1.join)(offset, substituteConfigDir(p)), config);
|
|
346
348
|
normalized.forEach((input) => includePaths.add(input));
|
|
347
349
|
});
|
|
348
350
|
if (config.raw?.exclude) {
|
|
@@ -354,11 +356,12 @@ function getInputs(namedInputs, configFilePath, tsConfig, internalProjectReferen
|
|
|
354
356
|
const otherFilesInclude = [];
|
|
355
357
|
projectTsConfigFiles.forEach(([path, c]) => {
|
|
356
358
|
if (path !== configPath) {
|
|
357
|
-
otherFilesInclude.push(...(c.raw?.include ?? []));
|
|
359
|
+
otherFilesInclude.push(...(c.raw?.include ?? []).map(substituteConfigDir));
|
|
358
360
|
}
|
|
359
361
|
});
|
|
360
362
|
const normalize = (p) => (p.startsWith('./') ? p.slice(2) : p);
|
|
361
|
-
config.raw.exclude.forEach((
|
|
363
|
+
config.raw.exclude.forEach((e) => {
|
|
364
|
+
const excludePath = substituteConfigDir(e);
|
|
362
365
|
if (!otherFilesInclude.some((includePath) => picomatch(normalize(excludePath))(normalize(includePath)) ||
|
|
363
366
|
picomatch(normalize(includePath))(normalize(excludePath)))) {
|
|
364
367
|
excludePaths.add(excludePath);
|