|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
const fs = require("fs");
|
|
|
|
|
const glob = require("fast-glob");
|
|
|
|
|
const { execSync } = require("child_process");
|
|
|
|
|
|
|
|
|
|
const version = process.argv[2];
|
|
|
|
|
|
|
|
|
@ -8,6 +9,8 @@ if (!version || version === "") {
|
|
|
|
|
process.exit(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let solidJsVersion = execSync("npm view solid-js version").toString().trim();
|
|
|
|
|
|
|
|
|
|
glob("packages/*/package.json").then(packages => {
|
|
|
|
|
packages.forEach(packagePath => {
|
|
|
|
|
const packageJson = JSON.parse(fs.readFileSync(packagePath));
|
|
|
|
@ -15,3 +18,18 @@ glob("packages/*/package.json").then(packages => {
|
|
|
|
|
fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2) + "\n");
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
glob("examples/*/package.json").then(packages => {
|
|
|
|
|
packages.forEach(packagePath => {
|
|
|
|
|
const packageJson = JSON.parse(fs.readFileSync(packagePath));
|
|
|
|
|
if (packageJson.dependencies?.["solid-start"]) {
|
|
|
|
|
packageJson.dependencies =
|
|
|
|
|
{
|
|
|
|
|
...packageJson.dependencies,
|
|
|
|
|
"solid-js": "^" + solidJsVersion,
|
|
|
|
|
"solid-start": "^" + version
|
|
|
|
|
};
|
|
|
|
|
fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2) + "\n");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|