mirror of
https://github.com/hanzoai/husky.git
synced 2026-09-24 16:59:45 +00:00
refactor: rename files (#1378)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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 ''
|
||||
+2
-3
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user