CI(npm): Refer local directory as file path
Summary: Avoid updating local pkgs. Also add `prefer-dedupe=true` on `.npmrc`. Signed-off-by: Yongmin Hong <revi@omglol.email> Test Plan: `npm ci`. Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D428
This commit is contained in:
parent
f0fb5d1812
commit
ab283848b8
7 changed files with 36 additions and 50 deletions
6
.npmrc
6
.npmrc
|
@ -1,8 +1,10 @@
|
||||||
|
# Moral attribution: Copyright 2024 GitHub
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
# For 15-25% faster npm install
|
# For 15-25% faster npm install
|
||||||
# https://www.peterbe.com/plog/benchmarking-npm-install-with-or-without-audit
|
# https://www.peterbe.com/plog/benchmarking-npm-install-with-or-without-audit
|
||||||
# Also we have Dependabot alerts configured in the GitHub repo.
|
# Also we have Dependabot alerts configured in the GitHub repo.
|
||||||
# Moral attribution: Copyright 2024 GitHub
|
|
||||||
# SPDX-License-Identifier: MIT
|
|
||||||
# See also D375
|
# See also D375
|
||||||
audit=false
|
audit=false
|
||||||
fund=false
|
fund=false
|
||||||
|
# Prefer deduplication
|
||||||
|
prefer-dedupe=true
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"globals": "15.6.0"
|
"globals": "15.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@revi/prettier-config": "0.0.2",
|
"@revi/prettier-config": "../prettier-config",
|
||||||
"@types/eslint__js": "8.42.3",
|
"@types/eslint__js": "8.42.3",
|
||||||
"@types/eslint-config-prettier": "6.11.3",
|
"@types/eslint-config-prettier": "6.11.3",
|
||||||
"prettier": "3.3.2"
|
"prettier": "3.3.2"
|
||||||
|
|
|
@ -48,11 +48,15 @@ ## Config
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
'.devcontainer/devcontainer.json',
|
'**.hujson',
|
||||||
'.devcontainer.json',
|
'.devcontainer.json',
|
||||||
'.devcontainer/*/devcontainer.json',
|
'.devcontainer/*/devcontainer.json',
|
||||||
|
'.devcontainer/devcontainer.json',
|
||||||
'.vscode/*.json',
|
'.vscode/*.json',
|
||||||
'**.hujson',
|
'**/jsconfig.json',
|
||||||
|
'**/jsconfig.*.json',
|
||||||
|
'**/tsconfig.json',
|
||||||
|
'**/tsconfig.*.json',
|
||||||
'jsconfig.json',
|
'jsconfig.json',
|
||||||
'jsconfig.*.json',
|
'jsconfig.*.json',
|
||||||
'tsconfig.json',
|
'tsconfig.json',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"name": "@revi/prettier-config",
|
"name": "@revi/prettier-config",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "revi",
|
"name": "revi",
|
||||||
"email": "revi@omglol.email",
|
"email": "revi@omglol.email",
|
||||||
|
|
|
@ -48,11 +48,15 @@ const config = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
'.devcontainer/devcontainer.json',
|
'**.hujson',
|
||||||
'.devcontainer.json',
|
'.devcontainer.json',
|
||||||
'.devcontainer/*/devcontainer.json',
|
'.devcontainer/*/devcontainer.json',
|
||||||
|
'.devcontainer/devcontainer.json',
|
||||||
'.vscode/*.json',
|
'.vscode/*.json',
|
||||||
'**.hujson',
|
'**/jsconfig.json',
|
||||||
|
'**/jsconfig.*.json',
|
||||||
|
'**/tsconfig.json',
|
||||||
|
'**/tsconfig.*.json',
|
||||||
'jsconfig.json',
|
'jsconfig.json',
|
||||||
'jsconfig.*.json',
|
'jsconfig.*.json',
|
||||||
'tsconfig.json',
|
'tsconfig.json',
|
||||||
|
|
56
package-lock.json
generated
56
package-lock.json
generated
|
@ -10,8 +10,8 @@
|
||||||
"npm/prettier-config"
|
"npm/prettier-config"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@revi/eslint-config": "0.0.4",
|
"@revi/eslint-config": "./npm/eslint-config",
|
||||||
"@revi/prettier-config": "0.0.5",
|
"@revi/prettier-config": "./npm/prettier-config",
|
||||||
"csslint": "1.0.5",
|
"csslint": "1.0.5",
|
||||||
"eslint": "9.5.0",
|
"eslint": "9.5.0",
|
||||||
"eslint-config-wikimedia": "0.28.2",
|
"eslint-config-wikimedia": "0.28.2",
|
||||||
|
@ -1235,8 +1235,8 @@
|
||||||
"version": "9.1.0",
|
"version": "9.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
|
||||||
"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
|
"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
|
||||||
"dev": true,
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"eslint-config-prettier": "bin/cli.js"
|
"eslint-config-prettier": "bin/cli.js"
|
||||||
},
|
},
|
||||||
|
@ -1989,12 +1989,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/espree": {
|
"node_modules/espree": {
|
||||||
"version": "10.0.1",
|
"version": "10.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz",
|
||||||
"integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==",
|
"integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"acorn": "^8.11.3",
|
"acorn": "^8.12.0",
|
||||||
"acorn-jsx": "^5.3.2",
|
"acorn-jsx": "^5.3.2",
|
||||||
"eslint-visitor-keys": "^4.0.0"
|
"eslint-visitor-keys": "^4.0.0"
|
||||||
},
|
},
|
||||||
|
@ -3826,10 +3826,9 @@
|
||||||
"version": "0.0.4",
|
"version": "0.0.4",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@revi/prettier-config": "0.0.2",
|
"@revi/prettier-config": "../prettier-config",
|
||||||
"@types/eslint__js": "8.42.3",
|
"@types/eslint__js": "8.42.3",
|
||||||
"@types/eslint-config-prettier": "6.11.3",
|
"@types/eslint-config-prettier": "6.11.3",
|
||||||
"eslint-config-prettier": "9.1.0",
|
|
||||||
"prettier": "3.3.2"
|
"prettier": "3.3.2"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
|
@ -3838,26 +3837,13 @@
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@eslint/js": "^8.0.0 || ^9.0.0",
|
"@eslint/js": "^8.0.0 || ^9.0.0",
|
||||||
"eslint": "^8.0.0 || ^9.0.0",
|
"eslint": "^8.0.0 || ^9.0.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"globals": "15.6.0"
|
"globals": "15.6.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npm/eslint-config/node_modules/@revi/prettier-config": {
|
|
||||||
"version": "0.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@revi/prettier-config/-/prettier-config-0.0.2.tgz",
|
|
||||||
"integrity": "sha512-uusTuawhAcxsIJrQ0skhm2MFQEN1xaH7PMkcQxns8ytD9KDdt5Ma9lfRCy7ahYdEKtev0v95vtq5nbkewRXstg==",
|
|
||||||
"dev": true,
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/revi"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"prettier": "^3.3.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"npm/prettier-config": {
|
"npm/prettier-config": {
|
||||||
"name": "@revi/prettier-config",
|
"name": "@revi/prettier-config",
|
||||||
"version": "0.0.5",
|
"version": "0.0.7",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/revi"
|
"url": "https://github.com/sponsors/revi"
|
||||||
|
@ -4116,20 +4102,10 @@
|
||||||
"@revi/eslint-config": {
|
"@revi/eslint-config": {
|
||||||
"version": "file:npm/eslint-config",
|
"version": "file:npm/eslint-config",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@revi/prettier-config": "0.0.2",
|
"@revi/prettier-config": "../prettier-config",
|
||||||
"@types/eslint__js": "8.42.3",
|
"@types/eslint__js": "8.42.3",
|
||||||
"@types/eslint-config-prettier": "6.11.3",
|
"@types/eslint-config-prettier": "6.11.3",
|
||||||
"eslint-config-prettier": "9.1.0",
|
|
||||||
"prettier": "3.3.2"
|
"prettier": "3.3.2"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@revi/prettier-config": {
|
|
||||||
"version": "0.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@revi/prettier-config/-/prettier-config-0.0.2.tgz",
|
|
||||||
"integrity": "sha512-uusTuawhAcxsIJrQ0skhm2MFQEN1xaH7PMkcQxns8ytD9KDdt5Ma9lfRCy7ahYdEKtev0v95vtq5nbkewRXstg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@revi/prettier-config": {
|
"@revi/prettier-config": {
|
||||||
|
@ -4709,7 +4685,7 @@
|
||||||
"version": "9.1.0",
|
"version": "9.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
|
||||||
"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
|
"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
|
||||||
"dev": true,
|
"peer": true,
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
"eslint-config-wikimedia": {
|
"eslint-config-wikimedia": {
|
||||||
|
@ -5186,11 +5162,11 @@
|
||||||
"integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw=="
|
"integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw=="
|
||||||
},
|
},
|
||||||
"espree": {
|
"espree": {
|
||||||
"version": "10.0.1",
|
"version": "10.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz",
|
||||||
"integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==",
|
"integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"acorn": "^8.11.3",
|
"acorn": "^8.12.0",
|
||||||
"acorn-jsx": "^5.3.2",
|
"acorn-jsx": "^5.3.2",
|
||||||
"eslint-visitor-keys": "^4.0.0"
|
"eslint-visitor-keys": "^4.0.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"name": "@revi/scripts",
|
"name": "@revi/scripts",
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@revi/eslint-config": "0.0.4",
|
"@revi/eslint-config": "./npm/eslint-config",
|
||||||
"@revi/prettier-config": "0.0.5",
|
"@revi/prettier-config": "./npm/prettier-config",
|
||||||
"csslint": "1.0.5",
|
"csslint": "1.0.5",
|
||||||
"eslint": "9.5.0",
|
"eslint": "9.5.0",
|
||||||
"eslint-config-wikimedia": "0.28.2",
|
"eslint-config-wikimedia": "0.28.2",
|
||||||
|
|
Loading…
Reference in a new issue