File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ import { $ } from "bun"
77
88await $ `bun tsc`
99
10- const pkg = await import ( "../package.json" )
10+ const pkg = await import ( "../package.json" ) . then ( ( m ) => m . default )
11+ // @ts -expect-error
12+ delete pkg . devDependencies
1113for ( const [ key , value ] of Object . entries ( pkg . exports ) ) {
1214 const file = value . replace ( "./src/" , "./" ) . replace ( ".ts" , "" )
13- // @ts -expect-error
1415 pkg . exports [ key ] = {
1516 import : file + ".js" ,
1617 types : file + ".d.ts" ,
Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ import { $ } from "bun"
77
88await import ( "./build" )
99
10- const pkg = await import ( "../package.json" )
10+ const pkg = await import ( "../package.json" ) . then ( ( m ) => m . default )
11+ // @ts -expect-error
12+ delete pkg [ "devDependencies" ]
1113for ( const [ key , value ] of Object . entries ( pkg . exports ) ) {
1214 const file = value . replace ( "./src/" , "./" ) . replace ( ".ts" , "" )
13- // @ts -expect-error
1415 pkg . exports [ key ] = {
1516 import : file + ".js" ,
1617 types : file + ".d.ts" ,
You can’t perform that action at this time.
0 commit comments