@comet/upgrade 1.110.0 → 1.111.0
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.
|
@@ -41,7 +41,7 @@ class PackageJson {
|
|
|
41
41
|
return !!(this.json.dependencies?.[name] || this.json.devDependencies?.[name]);
|
|
42
42
|
}
|
|
43
43
|
save() {
|
|
44
|
-
(0, fs_1.writeFileSync)(this.path, JSON.stringify(this.json, null, 4));
|
|
44
|
+
(0, fs_1.writeFileSync)(this.path, `${JSON.stringify(this.json, null, 4)}\n`);
|
|
45
45
|
}
|
|
46
46
|
addScript(name, script) {
|
|
47
47
|
this.json.scripts ??= {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stage = void 0;
|
|
4
|
+
exports.default = updateNextDependencies;
|
|
5
|
+
const fs_1 = require("fs");
|
|
6
|
+
const package_json_util_1 = require("../../../util/package-json.util");
|
|
7
|
+
exports.stage = "before-install";
|
|
8
|
+
async function updateNextDependencies() {
|
|
9
|
+
if (!(0, fs_1.existsSync)("site/package.json")) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const packageJson = new package_json_util_1.PackageJson("site/package.json");
|
|
13
|
+
packageJson.updateDependency("next", "^15.5.4");
|
|
14
|
+
packageJson.updateDependency("@next/bundle-analyzer", "^15.5.4");
|
|
15
|
+
packageJson.updateDependency("react", "^19.2.0");
|
|
16
|
+
packageJson.updateDependency("react-dom", "^19.2.0");
|
|
17
|
+
packageJson.updateDependency("@types/react", "^19.2.0");
|
|
18
|
+
packageJson.updateDependency("@types/react-dom", "^19.2.0");
|
|
19
|
+
packageJson.save();
|
|
20
|
+
}
|