File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 11import { defineBuildConfig } from "unbuild" ;
2+ import { rm } from "node:fs/promises" ;
23
34export default defineBuildConfig ( {
4- externals : [
5+ externals : [
56 "typescript"
6- ]
7+ ] ,
8+ hooks : {
9+ async "build:done" ( ) {
10+ await rm ( "dist/index.d.ts" ) ;
11+ } ,
12+ } ,
713} ) ;
Original file line number Diff line number Diff line change 33 "version" : " 1.3.1" ,
44 "description" : " Node.js utilities and TypeScript definitions for `package.json` and `tsconfig.json`" ,
55 "license" : " MIT" ,
6- "main" : " ./dist/index.cjs" ,
76 "sideEffects" : false ,
87 "exports" : {
9- "types" : " ./dist/index.d.ts" ,
10- "import" : " ./dist/index.mjs" ,
11- "require" : " ./dist/index.cjs"
8+ "types" : " ./dist/index.d.mts" ,
9+ "default" : " ./dist/index.mjs"
1210 },
13- "types" : " ./dist/index.d.ts " ,
11+ "types" : " ./dist/index.d.mts " ,
1412 "repository" : " unjs/pkg-types" ,
1513 "files" : [
1614 " dist"
You can’t perform that action at this time.
0 commit comments