mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Support hooks with custom node version.
This commit is contained in:
parent
4b98b39cea
commit
511de4fe32
8 changed files with 61 additions and 31 deletions
4
testing/resources/node_0_11_8_hooks_repo/bin/main.js
Normal file
4
testing/resources/node_0_11_8_hooks_repo/bin/main.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
console.log(process.version);
|
||||
console.log('Hello World');
|
||||
5
testing/resources/node_0_11_8_hooks_repo/hooks.yaml
Normal file
5
testing/resources/node_0_11_8_hooks_repo/hooks.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
- id: node-11-8-hook
|
||||
name: Node 0.11.8 hook
|
||||
entry: node-11-8-hook
|
||||
language: node
|
||||
language_version: 0.11.8
|
||||
5
testing/resources/node_0_11_8_hooks_repo/package.json
Normal file
5
testing/resources/node_0_11_8_hooks_repo/package.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "node-11-8-hook",
|
||||
"version": "0.0.1",
|
||||
"bin": {"node-11-8-hook": "./bin/main.js"}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue