@unisphere/nx 1.23.1 â 1.24.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-nvmrc.d.ts","sourceRoot":"","sources":["../../../src/migrations/1-23-2/update-nvmrc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAuB,MAAM,YAAY,CAAC;AAEvD,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA0B9D"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
async function update(tree) {
|
|
6
|
+
devkit_1.logger.info('đ Updating .nvmrc to Node 24...');
|
|
7
|
+
const nvmrcPath = '.nvmrc';
|
|
8
|
+
const targetNodeVersion = '24';
|
|
9
|
+
if (tree.exists(nvmrcPath)) {
|
|
10
|
+
const currentContent = tree.read(nvmrcPath, 'utf-8');
|
|
11
|
+
if (currentContent) {
|
|
12
|
+
const currentVersion = currentContent.trim();
|
|
13
|
+
if (currentVersion === targetNodeVersion) {
|
|
14
|
+
devkit_1.logger.info('âšī¸ .nvmrc already set to Node 24.');
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
tree.write(nvmrcPath, targetNodeVersion);
|
|
18
|
+
devkit_1.logger.info(`â
Updated .nvmrc from ${currentVersion} to ${targetNodeVersion}`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
tree.write(nvmrcPath, targetNodeVersion);
|
|
23
|
+
devkit_1.logger.info(`â
Created .nvmrc with Node ${targetNodeVersion}`);
|
|
24
|
+
}
|
|
25
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
26
|
+
}
|
package/migrations.json
CHANGED
|
@@ -85,6 +85,11 @@
|
|
|
85
85
|
"version": "1.23.0",
|
|
86
86
|
"description": "Delete rollup patch file",
|
|
87
87
|
"factory": "./dist/migrations/1-23-0/delete-rollup-patch.js"
|
|
88
|
+
},
|
|
89
|
+
"1-23-2-update-nvmrc": {
|
|
90
|
+
"version": "1.23.2",
|
|
91
|
+
"description": "Update .nvmrc to Node 24",
|
|
92
|
+
"factory": "./dist/migrations/1-23-2/update-nvmrc.js"
|
|
88
93
|
}
|
|
89
94
|
},
|
|
90
95
|
"packageJsonUpdates": {
|
|
@@ -128,6 +133,16 @@
|
|
|
128
133
|
"alwaysAddToPackageJson": true
|
|
129
134
|
}
|
|
130
135
|
}
|
|
136
|
+
},
|
|
137
|
+
"1.24.1": {
|
|
138
|
+
"version": "1.24.1",
|
|
139
|
+
"cli": "nx",
|
|
140
|
+
"packages": {
|
|
141
|
+
"@unisphere/cli": {
|
|
142
|
+
"version": "^1.58.9",
|
|
143
|
+
"alwaysAddToPackageJson": true
|
|
144
|
+
}
|
|
145
|
+
}
|
|
131
146
|
}
|
|
132
147
|
}
|
|
133
148
|
}
|