@nx/js 21.1.2 → 21.2.0-beta.2
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/README.md +4 -4
- package/migrations.json +13 -0
- package/package.json +3 -3
- package/src/plugins/typescript/plugin.js +16 -1
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<p style="text-align: center;">
|
|
2
2
|
<picture>
|
|
3
3
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
|
|
4
|
-
<img alt="Nx - Smart
|
|
4
|
+
<img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
|
|
5
5
|
</picture>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
|
|
21
21
|
<hr>
|
|
22
22
|
|
|
23
|
-
# Nx: Smart
|
|
23
|
+
# Nx: Smart Repos · Fast Builds
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
|
|
26
26
|
|
|
27
27
|
This package is a [JavaScript/TypeScript plugin for Nx](https://nx.dev/js/overview).
|
|
28
28
|
|
|
@@ -64,5 +64,5 @@ npx nx@latest init
|
|
|
64
64
|
- [Blog Posts About Nx](https://nx.dev/blog)
|
|
65
65
|
|
|
66
66
|
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
67
|
-
width="100%" alt="Nx - Smart
|
|
67
|
+
width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
|
|
68
68
|
|
package/migrations.json
CHANGED
|
@@ -83,6 +83,19 @@
|
|
|
83
83
|
"alwaysAddToPackageJson": false
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
},
|
|
87
|
+
"21.2.0": {
|
|
88
|
+
"version": "21.2.0-beta.0",
|
|
89
|
+
"x-prompt": "Do you want to update to TypeScript v5.8?",
|
|
90
|
+
"requires": {
|
|
91
|
+
"typescript": ">=5.7.0 <5.8.0"
|
|
92
|
+
},
|
|
93
|
+
"packages": {
|
|
94
|
+
"typescript": {
|
|
95
|
+
"version": "~5.8.2",
|
|
96
|
+
"alwaysAddToPackageJson": false
|
|
97
|
+
}
|
|
98
|
+
}
|
|
86
99
|
}
|
|
87
100
|
}
|
|
88
101
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.0-beta.2",
|
|
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.
|
|
43
|
-
"@nx/workspace": "21.
|
|
42
|
+
"@nx/devkit": "21.2.0-beta.2",
|
|
43
|
+
"@nx/workspace": "21.2.0-beta.2",
|
|
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",
|
|
@@ -36,7 +36,22 @@ function readTsConfigCacheData() {
|
|
|
36
36
|
return cache.data;
|
|
37
37
|
}
|
|
38
38
|
function writeToCache(cachePath, data) {
|
|
39
|
-
|
|
39
|
+
const maxAttempts = 5;
|
|
40
|
+
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
41
|
+
const unique = (Math.random().toString(16) + '00000000').slice(2, 10);
|
|
42
|
+
const tempPath = `${cachePath}.${process.pid}.${unique}.tmp`;
|
|
43
|
+
try {
|
|
44
|
+
(0, devkit_1.writeJsonFile)(tempPath, data, { spaces: 0 });
|
|
45
|
+
(0, node_fs_1.renameSync)(tempPath, cachePath);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
try {
|
|
50
|
+
(0, node_fs_1.unlinkSync)(tempPath);
|
|
51
|
+
}
|
|
52
|
+
catch { }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
40
55
|
}
|
|
41
56
|
function writeTsConfigCache(data) {
|
|
42
57
|
writeToCache(TS_CONFIG_CACHE_PATH, {
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const swcNodeVersion = "~1.9.1";
|
|
|
8
8
|
export declare const tsLibVersion = "^2.3.0";
|
|
9
9
|
export declare const typesNodeVersion = "18.16.9";
|
|
10
10
|
export declare const verdaccioVersion = "^6.0.5";
|
|
11
|
-
export declare const typescriptVersion = "~5.
|
|
11
|
+
export declare const typescriptVersion = "~5.8.2";
|
|
12
12
|
/**
|
|
13
13
|
* The minimum version is currently determined from the lowest version
|
|
14
14
|
* that's supported by the lowest Angular supported version, e.g.
|
package/src/utils/versions.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.tsLibVersion = '^2.3.0';
|
|
|
12
12
|
exports.typesNodeVersion = '18.16.9';
|
|
13
13
|
exports.verdaccioVersion = '^6.0.5';
|
|
14
14
|
// Typescript
|
|
15
|
-
exports.typescriptVersion = '~5.
|
|
15
|
+
exports.typescriptVersion = '~5.8.2';
|
|
16
16
|
/**
|
|
17
17
|
* The minimum version is currently determined from the lowest version
|
|
18
18
|
* that's supported by the lowest Angular supported version, e.g.
|