remove block limit and update packages

This commit is contained in:
Jiaxin Peng
2023-11-16 21:09:31 +00:00
parent 4433ea449d
commit 8201c706ea
15 changed files with 1125 additions and 413 deletions

View File

@@ -1,11 +1,10 @@
// update package.json version
import fs from 'fs';
import fs from "fs";
const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
const packageJson = JSON.parse(fs.readFileSync("./package.json", "utf8"));
console.log(packageJson.version);
// get node args
const args = process.argv.slice(2);
@@ -13,14 +12,13 @@ packageJson.version = args[0];
console.log(packageJson.version);
// write package.json
fs.writeFileSync('./package.json', JSON.stringify(packageJson, null, 2));
fs.writeFileSync("./package.json", JSON.stringify(packageJson, null, 2));
// read manifest.json
const manifestJson = JSON.parse(fs.readFileSync('./manifest.json', 'utf8'));
const manifestJson = JSON.parse(fs.readFileSync("./manifest.json", "utf8"));
manifestJson.version = args[0];
// write manifest.json
fs.writeFileSync('./manifest.json', JSON.stringify(manifestJson, null, 2));
fs.writeFileSync("./manifest.json", JSON.stringify(manifestJson, null, 2));