1
0
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:
LitoMore
2021-08-24 01:21:03 +08:00
committed by GitHub
parent 20f2a1ef4e
commit 8283daf05a
6 changed files with 15 additions and 32 deletions

View File

@@ -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);