Skip to content

Commit d8377fe

Browse files
authored
refactor: rename files (#1378)
1 parent 211b80a commit d8377fe

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

bin.js renamed to bin.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
import f, { writeFileSync as w } from 'fs'
3-
import i from './index.js'
3+
import i from './index.mjs'
44

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

husky.sh renamed to husky

File renamed without changes.

index.js renamed to index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default (d = '.husky') => {
1616

1717
f.mkdirSync(_(), { recursive: true })
1818
w(_('.gitignore'), '*')
19-
f.copyFileSync(new URL('husky.sh', import.meta.url), _('h'))
19+
f.copyFileSync(new URL('husky', import.meta.url), _('h'))
2020
l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\${0%/*}/h"`, { mode: 0o755 }))
2121
w(_('husky.sh'), '')
2222
return ''

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
"funding": "https://github.com/sponsors/typicode",
1515
"license": "MIT",
1616
"author": "typicode",
17-
"type": "module",
1817
"bin": {
19-
"husky": "bin.js"
18+
"husky": "bin.mjs"
2019
},
21-
"exports": "./index.js",
20+
"exports": "./index.mjs",
2221
"engines": {
2322
"node": ">=18"
2423
}

0 commit comments

Comments
 (0)