Skip to content

Commit

Permalink
fix: override npm config
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarJaroudi committed Sep 23, 2024
1 parent f76576e commit a21dfa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
entry: cspell-cli
language: node
types: [text]
additional_dependencies: ["--globalconfig=\"./.npmrc\""]
args:
- --no-must-find-files
- --no-progress
Expand Down
1 change: 1 addition & 0 deletions hooks/cspell/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node

process.env.NPM_CONFIG_GLOBALCONFIG = "../../.npmrc";
import "cspell/bin";

0 comments on commit a21dfa2

Please sign in to comment.