File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 88 "exports" : {
99 "." : {
1010 "import" : {
11- "types" : " ./lib/typescript/index.d.ts" ,
11+ "types" : " ./lib/typescript/module/ index.d.ts" ,
1212 "default" : " ./lib/module/index.js"
1313 },
1414 "require" : {
15- "types" : " ./lib/typescript/index.d.ts" ,
15+ "types" : " ./lib/typescript/commonjs/ index.d.ts" ,
1616 "default" : " ./lib/commonjs/index.js"
1717 }
1818 }
3737 "typescript" : " tsc --noEmit" ,
3838 "lint" : " eslint \" **/*.{js,ts,tsx}\" --fix" ,
3939 "lint-ci" : " eslint \" **/*.{js,ts,tsx}\" -f @jamesacarr/github-actions" ,
40- "prepare" : " rm -rf lib && bun typescript && bob build" ,
40+ "prepare" : " bun typescript && bob build" ,
4141 "test" : " jest" ,
4242 "release" : " release-it"
4343 },
100100 "source" : " src" ,
101101 "output" : " lib" ,
102102 "targets" : [
103- " commonjs" ,
104- " module" ,
103+ [
104+ " commonjs" ,
105+ {
106+ "esm" : true
107+ }
108+ ],
109+ [
110+ " module" ,
111+ {
112+ "esm" : true
113+ }
114+ ],
105115 [
106116 " typescript" ,
107117 {
108118 "tsc" : " ../node_modules/.bin/tsc" ,
109- "project" : " tsconfig.build.json"
119+ "project" : " tsconfig.build.json" ,
120+ "esm" : true
110121 }
111122 ]
112123 ]
You can’t perform that action at this time.
0 commit comments