Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: typicode/husky
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.0.8
Choose a base ref
...
head repository: typicode/husky
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.0.9
Choose a head ref
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on Feb 1, 2024

  1. Copy the full SHA
    d8377fe View commit details
  2. 9.0.9

    typicode committed Feb 1, 2024
    Copy the full SHA
    6219cac View commit details
Showing with 7 additions and 8 deletions.
  1. +1 −1 bin.js → bin.mjs
  2. 0 husky.sh → husky
  3. +1 −1 index.js → index.mjs
  4. +2 −2 package-lock.json
  5. +3 −4 package.json
2 changes: 1 addition & 1 deletion bin.js → bin.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import f, { writeFileSync as w } from 'fs'
import i from './index.js'
import i from './index.mjs'

let p, a, n, s, o, d

File renamed without changes.
2 changes: 1 addition & 1 deletion index.js → index.mjs
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ export default (d = '.husky') => {

f.mkdirSync(_(), { recursive: true })
w(_('.gitignore'), '*')
f.copyFileSync(new URL('husky.sh', import.meta.url), _('h'))
f.copyFileSync(new URL('husky', import.meta.url), _('h'))
l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\${0%/*}/h"`, { mode: 0o755 }))
w(_('husky.sh'), '')
return ''
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "husky",
"version": "9.0.8",
"version": "9.0.9",
"description": "Modern native Git hooks",
"keywords": [
"git",
@@ -14,11 +14,10 @@
"funding": "https://github.com/sponsors/typicode",
"license": "MIT",
"author": "typicode",
"type": "module",
"bin": {
"husky": "bin.js"
"husky": "bin.mjs"
},
"exports": "./index.js",
"exports": "./index.mjs",
"engines": {
"node": ">=18"
}