Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #146 remove postinstall #147

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'build', 'ci', 'chore']
],
'scope-case': [0, 'always'],
'scope-empty': [0, 'always']
}
};
19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.12.2",
"description": "SQL languages for the Monaco Editor, based on monaco-languages.",
"scripts": {
"postinstall": "git config core.hooksPath .git/hooks/ && simple-git-hooks",
"prepublishOnly": "npm run build",
"build": "rm -rf ./esm && tsc -p ./tsconfig.esm.json",
"build-amd": "rm -rf ./out && tsc -p ./tsconfig.amd.json",
Expand Down Expand Up @@ -45,8 +44,12 @@
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/cz-commitlint": "^17.7.2",
"@types/mocha": "^9.1.0",
"@types/node": "^20.4.0",
"commitizen": "^4.3.0",
"fast-glob": "^3.3.2",
"gh-pages": "^3.2.3",
"inquirer": "^8.2.2",
Expand All @@ -61,7 +64,7 @@
"typescript": "^5.0.4"
},
"simple-git-hooks": {
"pre-commit": "pretty-quick --staged --bail"
"pre-commit": "npx pretty-quick --staged"
},
"dependencies": {
"dt-sql-parser": "4.0.2"
Expand All @@ -72,5 +75,15 @@
"engines": {
"node": ">=18"
},
"packageManager": "pnpm@9.7.0"
"packageManager": "pnpm@9.7.0",
"config": {
"commitizen": {
"path": "./node_modules/@commitlint/cz-commitlint"
}
},
"lint-staged": {
"*": [
"prettier --write --ignore-unknown"
]
}
}
Loading