mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
28 lines
865 B
JSON
28 lines
865 B
JSON
{
|
|
"name": "metabuilder-package-example",
|
|
"version": "1.0.0",
|
|
"description": "Example showing how to integrate package_validator in npm scripts",
|
|
"scripts": {
|
|
"validate": "lua packages/package_validator/seed/scripts/cli.lua",
|
|
"validate:audit-log": "lua packages/package_validator/seed/scripts/cli.lua audit_log",
|
|
"validate:all": "bash scripts/validate-all-packages.sh",
|
|
"precommit": "npm run validate:modified",
|
|
"validate:modified": "bash packages/package_validator/examples/pre-commit-hook.sh",
|
|
"test": "npm run validate:all && npm run test:unit"
|
|
},
|
|
"devDependencies": {
|
|
"husky": "^8.0.0",
|
|
"lint-staged": "^13.0.0"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "npm run precommit"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"packages/*/seed/**/*": [
|
|
"npm run validate:modified"
|
|
]
|
|
}
|
|
}
|