build: update npm install command to use --legacy-peer-deps
This change modifies the build scripts to use --legacy-peer-deps flag when installing npm dependencies to resolve potential peer dependency conflicts during the build process. The change is applied to both bash (build.sh) and batch (build.bat) build scripts.
This commit is contained in:
+12
-14
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "flat-cache",
|
||||
"version": "4.0.1",
|
||||
"version": "3.2.0",
|
||||
"description": "A stupidly simple key/value storage using files to persist some data",
|
||||
"repository": "jaredwray/flat-cache",
|
||||
"license": "MIT",
|
||||
@@ -15,7 +15,7 @@
|
||||
"src/utils.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
"node": "^10.12.0 || >=12.0.0"
|
||||
},
|
||||
"precommit": [
|
||||
"npm run verify --silent"
|
||||
@@ -25,15 +25,13 @@
|
||||
],
|
||||
"scripts": {
|
||||
"eslint": "eslint --cache --cache-location=node_modules/.cache/ ./src/**/*.js ./test/**/*.js",
|
||||
"clean": "rimraf ./node_modules ./package-lock.json ./yarn.lock ./coverage",
|
||||
"eslint-fix": "npm run eslint -- --fix",
|
||||
"autofix": "npm run eslint-fix",
|
||||
"check": "npm run eslint",
|
||||
"verify": "npm run eslint && npm run test:cache",
|
||||
"test:cache": "c8 mocha -R spec test/specs",
|
||||
"test:ci:cache": "c8 --reporter=lcov mocha -R spec test/specs",
|
||||
"test": "npm run verify --silent",
|
||||
"format": "prettier --write ."
|
||||
"test": "npm run verify --silent"
|
||||
},
|
||||
"keywords": [
|
||||
"json cache",
|
||||
@@ -44,20 +42,20 @@
|
||||
"cache"
|
||||
],
|
||||
"devDependencies": {
|
||||
"c8": "^9.1.0",
|
||||
"c8": "^7.14.0",
|
||||
"chai": "^4.3.10",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-mocha": "^10.2.0",
|
||||
"eslint": "^7.13.0",
|
||||
"eslint-config-prettier": "^6.15.0",
|
||||
"eslint-plugin-mocha": "^8.0.0",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"glob-expand": "^0.2.1",
|
||||
"mocha": "^10.3.0",
|
||||
"prettier": "^3.2.4",
|
||||
"rimraf": "^5.0.5",
|
||||
"sinon": "^17.0.1",
|
||||
"mocha": "^8.4.0",
|
||||
"prettier": "^2.1.2",
|
||||
"write": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"flatted": "^3.2.9",
|
||||
"keyv": "^4.5.4"
|
||||
"keyv": "^4.5.3",
|
||||
"rimraf": "^3.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user