mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 06:15:03 +00:00
fix(ci): remove sync-version.js that depends on deleted VERSION file
This commit is contained in:
1 parent
86d41e5e4d
commit
18729c9983
2 files changed
-17
No files matched your search
@@ -75,8 +75,6 @@
|
|||||||
"ui:build": "cd ui && bun run build",
|
"ui:build": "cd ui && bun run build",
|
||||||
"ui:preview": "cd ui && bun run preview",
|
"ui:preview": "cd ui && bun run preview",
|
||||||
"ui:validate": "cd ui && bun run validate",
|
"ui:validate": "cd ui && bun run validate",
|
||||||
"prepublishOnly": "node scripts/sync-version.js",
|
|
||||||
"prepack": "node scripts/sync-version.js",
|
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
"postinstall": "node scripts/postinstall.js"
|
"postinstall": "node scripts/postinstall.js"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
const fs = require('fs');
|
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
// Read VERSION file
|
|
||||||
const versionFile = path.join(__dirname, '..', 'VERSION');
|
|
||||||
const version = fs.readFileSync(versionFile, 'utf8').trim();
|
|
||||||
|
|
||||||
// Update package.json
|
|
||||||
const pkgPath = path.join(__dirname, '..', 'package.json');
|
|
||||||
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
||||||
pkg.version = version;
|
|
||||||
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
||||||
|
|
||||||
console.log(`✓ Synced version ${version} to package.json`);
|
|
||||||
Reference in new issue
Block a user