Run 'gitleaks protect --staged' before prettier in the pre-commit hook. The gitleaks binary comes from the @nogoo9/gitleaks devDependency, which ships official binaries as platform optionalDependencies - no postinstall scripts, so it installs under ignore-scripts=true. Falls back to a system gitleaks, and soft-skips with a hint to run 'npm i' on a fresh clone rather than blocking the commit.
38 lines
1.3 KiB
JSON
38 lines
1.3 KiB
JSON
{
|
|
"name": "dcfrontend",
|
|
"version": "7.14.0",
|
|
"description": "Data Controller",
|
|
"devDependencies": {
|
|
"@nogoo9/gitleaks": "8.30.1-post.2",
|
|
"@saithodev/semantic-release-gitea": "^2.1.0",
|
|
"@semantic-release/changelog": "^6.0.3",
|
|
"@semantic-release/commit-analyzer": "13.0.1",
|
|
"@semantic-release/git": "^10.0.1",
|
|
"@semantic-release/npm": "13.1.5",
|
|
"@semantic-release/release-notes-generator": "14.1.0"
|
|
},
|
|
"overrides": {
|
|
"got": "11.8.6"
|
|
},
|
|
"scripts": {
|
|
"install": "cd client && npm i && cd ../sas && npm i",
|
|
"build-frontend": "cd client && npm run build",
|
|
"lint": "cd client && npm run lint",
|
|
"lint:fix": "cd client && npm run lint:fix",
|
|
"lint:fix:silent": "cd client && npm run lint:fix:silent",
|
|
"lint:check": "cd client && npm run lint:check",
|
|
"lint:check:silent": "cd client && npm run lint:check:silent",
|
|
"jo": "echo",
|
|
"prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks && git config core.autocrlf false || true"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.datacontroller.io/dc/dc.git"
|
|
},
|
|
"private": true,
|
|
"//": [
|
|
"Readme",
|
|
"We must set private: true so that semantic-release/npm plugin will update the package.json version but not try to release it as NPM package"
|
|
]
|
|
}
|