Skip to content

Commit

Permalink
Add pre-commit hook, installed at npm i (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomura authored Feb 7, 2025
1 parent 2546eeb commit cd0e638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"compile": "npm run clean && npm run compile:react && npm run compile:extension",
"compile:extension": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production --config webpack.extension.prod.js",
"compile:react": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production --config webpack.react.prod.js",
"postinstall": "patch-package",
"postinstall": "cp ./scripts/githooks/pre-commit ./.git/hooks && patch-package",
"extension:clean": "rm -rf ./atlascode-*.vsix",
"extension:package:prerelease": "npm run extension:clean && vsce package --pre-release --baseContentUrl https://raw.githubusercontent.com/atlassian/atlascode/main/",
"extension:package": "npm run extension:clean && vsce package --baseContentUrl https://raw.githubusercontent.com/atlassian/atlascode/main/",
Expand Down
1 change: 1 addition & 0 deletions scripts/githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint

0 comments on commit cd0e638

Please sign in to comment.