Skip to content

Commit

Permalink
fix: fix types output path
Browse files Browse the repository at this point in the history
  • Loading branch information
sinchang committed Mar 23, 2023
1 parent 79c6ddd commit 189da38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"unpkg": "./dist/qrcodeParser.umd.js",
"jsdelivr": "./dist/qrcodeParser.umd.js",
"module": "./dist/qrcodeParser.es.js",
"types": "./dist/src/index.d.ts",
"types": "./dist/types/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"types": "./dist/types/index.d.ts",
"default": "./dist/qrcodeParser.modern.js"
}
},
Expand All @@ -27,6 +27,7 @@
"lint": "eslint \"{src,test,example}/**/*.ts\"",
"example": "vite dev --host --port 8000",
"build:example": "vite build",
"build:types": "tsc --allowJs -d --emitDeclarationOnly --declarationDir ./dist/types --removeComments ./src/index.ts",
"build": "microbundle && npm run build:umd",
"build:umd": "microbundle -f umd --external none",
"test": "playwright test"
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
},
"include": [
"./src",
"./test/**/*.ts"
]
}
}

0 comments on commit 189da38

Please sign in to comment.