mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
Enable prettier caching (--cache) across all package prettier scripts and the main format script, and optimize the custom license header checker to read only the first 1000 bytes of each file. Performance Data: - Repo-wide formatting (yarn format --all): - Before caching: ~35-40s (uncached formatting + full license check) - After caching: ~5.8s (cached formatting + header-only license check) - Speedup: ~6x speedup
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"name": "firebase-repo-scripts-prune-dts",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"description": "A script to prune non-exported types from a d.ts.",
|
|
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
|
|
"scripts": {
|
|
"prettier": "prettier --cache --write '**/*.ts'",
|
|
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register --timeout 5000 *.test.ts"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"eslint": "8.57.1",
|
|
"eslint-plugin-unused-imports": "3.2.0",
|
|
"prettier": "2.8.8"
|
|
},
|
|
"repository": {
|
|
"directory": "repo-scripts/prune-dts",
|
|
"type": "git",
|
|
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/firebase/firebase-js-sdk/issues"
|
|
},
|
|
"nyc": {
|
|
"extension": [
|
|
".ts"
|
|
],
|
|
"reportDir": "./coverage/node"
|
|
},
|
|
"devDependencies": {
|
|
"@types/eslint": "7.29.0",
|
|
"@types/prettier": "2.7.3",
|
|
"mocha": "9.2.2"
|
|
}
|
|
}
|