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:
revi 2024-06-25 16:06:14 +09:00
parent f0fb5d1812
commit ab283848b8
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
7 changed files with 36 additions and 50 deletions

6
.npmrc
View file

@ -1,8 +1,10 @@
# Moral attribution: Copyright 2024 GitHub
# SPDX-License-Identifier: MIT
# For 15-25% faster npm install
# https://www.peterbe.com/plog/benchmarking-npm-install-with-or-without-audit
# Also we have Dependabot alerts configured in the GitHub repo.
# Moral attribution: Copyright 2024 GitHub
# SPDX-License-Identifier: MIT
# See also D375
audit=false
fund=false
# Prefer deduplication
prefer-dedupe=true

View file

@ -11,7 +11,7 @@
"globals": "15.6.0"
},
"devDependencies": {
"@revi/prettier-config": "0.0.2",
"@revi/prettier-config": "../prettier-config",
"@types/eslint__js": "8.42.3",
"@types/eslint-config-prettier": "6.11.3",
"prettier": "3.3.2"

View file

@ -48,11 +48,15 @@ ## Config
},
{
files: [
'.devcontainer/devcontainer.json',
'**.hujson',
'.devcontainer.json',
'.devcontainer/*/devcontainer.json',
'.devcontainer/devcontainer.json',
'.vscode/*.json',
'**.hujson',
'**/jsconfig.json',
'**/jsconfig.*.json',
'**/tsconfig.json',
'**/tsconfig.*.json',
'jsconfig.json',
'jsconfig.*.json',
'tsconfig.json',

View file

@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@revi/prettier-config",
"version": "0.0.6",
"version": "0.0.7",
"author": {
"name": "revi",
"email": "revi@omglol.email",

View file

@ -48,11 +48,15 @@ const config = {
},
{
files: [
'.devcontainer/devcontainer.json',
'**.hujson',
'.devcontainer.json',
'.devcontainer/*/devcontainer.json',
'.devcontainer/devcontainer.json',
'.vscode/*.json',
'**.hujson',
'**/jsconfig.json',
'**/jsconfig.*.json',
'**/tsconfig.json',
'**/tsconfig.*.json',
'jsconfig.json',
'jsconfig.*.json',
'tsconfig.json',

56
package-lock.json generated
View file

@ -10,8 +10,8 @@
"npm/prettier-config"
],
"devDependencies": {
"@revi/eslint-config": "0.0.4",
"@revi/prettier-config": "0.0.5",
"@revi/eslint-config": "./npm/eslint-config",
"@revi/prettier-config": "./npm/prettier-config",
"csslint": "1.0.5",
"eslint": "9.5.0",
"eslint-config-wikimedia": "0.28.2",
@ -1235,8 +1235,8 @@
"version": "9.1.0",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
"dev": true,
"license": "MIT",
"peer": true,
"bin": {
"eslint-config-prettier": "bin/cli.js"
},
@ -1989,12 +1989,12 @@
}
},
"node_modules/espree": {
"version": "10.0.1",
"resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz",
"integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==",
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz",
"integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==",
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^8.11.3",
"acorn": "^8.12.0",
"acorn-jsx": "^5.3.2",
"eslint-visitor-keys": "^4.0.0"
},
@ -3826,10 +3826,9 @@
"version": "0.0.4",
"license": "Apache-2.0",
"devDependencies": {
"@revi/prettier-config": "0.0.2",
"@revi/prettier-config": "../prettier-config",
"@types/eslint__js": "8.42.3",
"@types/eslint-config-prettier": "6.11.3",
"eslint-config-prettier": "9.1.0",
"prettier": "3.3.2"
},
"funding": {
@ -3838,26 +3837,13 @@
"peerDependencies": {
"@eslint/js": "^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"
}
},
"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": {
"name": "@revi/prettier-config",
"version": "0.0.5",
"version": "0.0.7",
"license": "Apache-2.0",
"funding": {
"url": "https://github.com/sponsors/revi"
@ -4116,20 +4102,10 @@
"@revi/eslint-config": {
"version": "file:npm/eslint-config",
"requires": {
"@revi/prettier-config": "0.0.2",
"@revi/prettier-config": "../prettier-config",
"@types/eslint__js": "8.42.3",
"@types/eslint-config-prettier": "6.11.3",
"eslint-config-prettier": "9.1.0",
"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": {
@ -4709,7 +4685,7 @@
"version": "9.1.0",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
"dev": true,
"peer": true,
"requires": {}
},
"eslint-config-wikimedia": {
@ -5186,11 +5162,11 @@
"integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw=="
},
"espree": {
"version": "10.0.1",
"resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz",
"integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==",
"version": "10.1.0",
"resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz",
"integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==",
"requires": {
"acorn": "^8.11.3",
"acorn": "^8.12.0",
"acorn-jsx": "^5.3.2",
"eslint-visitor-keys": "^4.0.0"
}

View file

@ -3,8 +3,8 @@
"name": "@revi/scripts",
"private": true,
"devDependencies": {
"@revi/eslint-config": "0.0.4",
"@revi/prettier-config": "0.0.5",
"@revi/eslint-config": "./npm/eslint-config",
"@revi/prettier-config": "./npm/prettier-config",
"csslint": "1.0.5",
"eslint": "9.5.0",
"eslint-config-wikimedia": "0.28.2",