install via git for `language: node` · pre-commit/pre-commit@b1cc920 · GitHub
Skip to content

Commit b1cc920

Browse files
committed
install via git for language: node
this avoids trying to play catch-up with whatever preparation commands npm does when installing from `npm i git+...` (which differs from `npm i a/dir`) the latter does not run any preparation commands leading to broken installs the previous command we were using was suggested by the npm devs, however some of the options that it was using are no longer part of npm itself and npm 12.x errors on unknown options
1 parent ff8541f commit b1cc920

5 files changed

Lines changed: 27 additions & 27 deletions

File tree

‎pre_commit/languages/node.py‎

Lines changed: 13 additions & 20 deletions

‎pre_commit/resources/empty_template_.npmignore‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎pre_commit/resources/empty_template_package.json‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎pre_commit/store.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def _get_default_directory() -> str:
3737

3838

3939
_LOCAL_RESOURCES = (
40-
'Cargo.toml', 'main.go', 'go.mod', 'main.rs', '.npmignore',
41-
'package.json', 'pre-commit-package-dev-1.rockspec',
40+
'Cargo.toml', 'main.go', 'go.mod', 'main.rs',
41+
'pre-commit-package-dev-1.rockspec',
4242
'pre_commit_placeholder_package.gemspec', 'setup.py',
4343
'environment.yml', 'Makefile.PL', 'pubspec.yaml',
4444
'renv.lock', 'renv/activate.R', 'renv/LICENSE.renv',

‎tests/languages/node_test.py‎

Lines changed: 12 additions & 0 deletions

0 commit comments

Comments
 (0)