You've already forked simple-icons
mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-10-30 23:07:47 +02:00
Drop package-lock.json (#6179)
* Drop `package-lock.json` * Drop lockfile related code * Drop lockfile maintenance configurations
This commit is contained in:
@@ -9,7 +9,6 @@ const path = require("path");
|
||||
|
||||
const rootDir = path.resolve(__dirname, "..", "..");
|
||||
const packageJsonFile = path.resolve(rootDir, "package.json");
|
||||
const packageLockFile = path.resolve(rootDir, "package-lock.json");
|
||||
|
||||
function readManifest(file) {
|
||||
const manifestRaw = fs.readFileSync(file).toString();
|
||||
@@ -25,13 +24,10 @@ function writeManifest(file, json) {
|
||||
function main(newVersion) {
|
||||
try {
|
||||
const manifest = readManifest(packageJsonFile);
|
||||
const manifestLock = readManifest(packageLockFile);
|
||||
|
||||
manifest.version = newVersion
|
||||
manifestLock.version = newVersion
|
||||
|
||||
writeManifest(packageJsonFile, manifest);
|
||||
writeManifest(packageLockFile, manifestLock);
|
||||
} catch (error) {
|
||||
console.error(`Failed to bump package version to ${newVersion}:`, error);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user