Move overrides to top level

See documentation:
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#overrides

GitOrigin-RevId: 13f7a475335e9ef54419f18fab14f31da32ef250
This commit is contained in:
andrew rumble 2024-09-04 15:56:00 +01:00 committed by Copybot
parent 7677174670
commit bdc907ecc6
3 changed files with 5 additions and 10 deletions

View file

@ -19,11 +19,6 @@
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:check": "tsc --noEmit" "types:check": "tsc --noEmit"
}, },
"overrides": {
"google-gax": {
"protobufjs": "^7.2.5"
}
},
"dependencies": { "dependencies": {
"@google-cloud/logging-bunyan": "^5.1.0", "@google-cloud/logging-bunyan": "^5.1.0",
"@overleaf/fetch-utils": "*", "@overleaf/fetch-utils": "*",

View file

@ -6,11 +6,6 @@
"type": "git", "type": "git",
"url": "https://github.com/overleaf/metrics-module.git" "url": "https://github.com/overleaf/metrics-module.git"
}, },
"overrides": {
"google-gax": {
"protobufjs": "^7.2.5"
}
},
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@google-cloud/opentelemetry-cloud-trace-exporter": "^2.1.0", "@google-cloud/opentelemetry-cloud-trace-exporter": "^2.1.0",

View file

@ -22,6 +22,11 @@
"prettier": "3.3.3", "prettier": "3.3.3",
"typescript": "^5.5.4" "typescript": "^5.5.4"
}, },
"overrides": {
"google-gax": {
"protobufjs": "^7.2.5"
}
},
"scripts": { "scripts": {
"format": "prettier --list-different $PWD/'**/*.js'", "format": "prettier --list-different $PWD/'**/*.js'",
"format:fix": "prettier --write $PWD/'**/*.js'", "format:fix": "prettier --write $PWD/'**/*.js'",