@nx/js 19.0.0-beta.7 → 19.0.0-beta.8
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": "19.0.0-beta.
|
|
3
|
+
"version": "19.0.0-beta.8",
|
|
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": {
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"semver": "^7.5.3",
|
|
58
58
|
"source-map-support": "0.5.19",
|
|
59
59
|
"tslib": "^2.3.0",
|
|
60
|
-
"@nx/devkit": "19.0.0-beta.
|
|
61
|
-
"@nx/workspace": "19.0.0-beta.
|
|
62
|
-
"@nrwl/js": "19.0.0-beta.
|
|
60
|
+
"@nx/devkit": "19.0.0-beta.8",
|
|
61
|
+
"@nx/workspace": "19.0.0-beta.8",
|
|
62
|
+
"@nrwl/js": "19.0.0-beta.8"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"verdaccio": "^5.0.4"
|
|
@@ -297,7 +297,7 @@ function getFileToRun(context, project, buildOptions, buildTargetExecutor) {
|
|
|
297
297
|
function fileToRunCorrectPath(fileToRun) {
|
|
298
298
|
if ((0, fileutils_1.fileExists)(fileToRun))
|
|
299
299
|
return fileToRun;
|
|
300
|
-
const extensionsToTry = ['.cjs', '.mjs', 'cjs.js', '.esm.js'];
|
|
300
|
+
const extensionsToTry = ['.cjs', '.mjs', '.cjs.js', '.esm.js'];
|
|
301
301
|
for (const ext of extensionsToTry) {
|
|
302
302
|
const file = fileToRun.replace(/\.js$/, ext);
|
|
303
303
|
if ((0, fileutils_1.fileExists)(file))
|
|
@@ -43,11 +43,13 @@ exports.createNodes = [
|
|
|
43
43
|
!siblingFiles.includes('tsconfig.json')) {
|
|
44
44
|
return {};
|
|
45
45
|
}
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
const nodeHash = (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, pluginOptions, context, [(0, lock_file_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
47
|
+
// The hash is calculated at the node/project level, so we add the config file path to avoid conflicts when caching
|
|
48
|
+
const cacheKey = `${nodeHash}_${configFilePath}`;
|
|
49
|
+
const targets = targetsCache[cacheKey]
|
|
50
|
+
? targetsCache[cacheKey]
|
|
49
51
|
: buildTscTargets(fullConfigPath, projectRoot, pluginOptions, context);
|
|
50
|
-
calculatedTargets[
|
|
52
|
+
calculatedTargets[cacheKey] = targets;
|
|
51
53
|
return {
|
|
52
54
|
projects: {
|
|
53
55
|
[projectRoot]: {
|