refactor: rename files (#1378)

This commit is contained in:
typicode
2024-02-01 15:39:13 +01:00
committed by GitHub
parent a5d15f5c89
commit da134433da
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -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
View File
+1 -1
View File
@@ -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
View File
@@ -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"
}