fix npm install

This commit is contained in:
2025-10-08 10:31:48 +03:00
parent 7e4f2b4ecf
commit 5ca83fce0f

View File

@@ -1,13 +1,13 @@
const fs = require("fs"); import fs from 'fs';
const version = process.argv[2]; const version = process.argv[2];
if (!version) { if (!version) {
console.error("❌ No version passed"); console.log(' No version passed, skipping manifest update');
process.exit(1); process.exit(0);
} }
const manifest = JSON.parse(fs.readFileSync("manifest.json", "utf-8")); const manifest = JSON.parse(fs.readFileSync('manifest.json', 'utf-8'));
manifest.version = version; manifest.version = version;
fs.writeFileSync("manifest.json", JSON.stringify(manifest, null, 2)); fs.writeFileSync('manifest.json', JSON.stringify(manifest, null, 2));
console.log(`✅ Updated manifest.json to version ${version}`); console.log(`✅ Updated manifest.json to version ${version}`);