File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
import f , { writeFileSync as w } from 'fs'
3
- import i from './index.js '
3
+ import i from './index.mjs '
4
4
5
5
let p , a , n , s , o , d
6
6
File renamed without changes.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export default (d = '.husky') => {
16
16
17
17
f . mkdirSync ( _ ( ) , { recursive : true } )
18
18
w ( _ ( '.gitignore' ) , '*' )
19
- f . copyFileSync ( new URL ( 'husky.sh ' , import . meta. url ) , _ ( 'h' ) )
19
+ f . copyFileSync ( new URL ( 'husky' , import . meta. url ) , _ ( 'h' ) )
20
20
l . forEach ( h => w ( _ ( h ) , `#!/usr/bin/env sh\n. "\${0%/*}/h"` , { mode : 0o755 } ) )
21
21
w ( _ ( 'husky.sh' ) , '' )
22
22
return ''
Original file line number Diff line number Diff line change 14
14
"funding" : " https://github.com/sponsors/typicode" ,
15
15
"license" : " MIT" ,
16
16
"author" : " typicode" ,
17
- "type" : " module" ,
18
17
"bin" : {
19
- "husky" : " bin.js "
18
+ "husky" : " bin.mjs "
20
19
},
21
- "exports" : " ./index.js " ,
20
+ "exports" : " ./index.mjs " ,
22
21
"engines" : {
23
22
"node" : " >=18"
24
23
}
You can’t perform that action at this time.
0 commit comments