Skip to content

Commit

Permalink
chore: emit and publish types to npm (#29)
Browse files Browse the repository at this point in the history
* chore: emit and publish type to npm

* fix: typings folder nesting
  • Loading branch information
johannschopplich committed Sep 14, 2021
1 parent 974cfc6 commit efdb5b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -15,9 +15,10 @@
"require": "./dist/petite-vue.umd.js"
}
},
"types": "./dist/types/index.d.ts",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "vite build && tsc --emitDeclarationOnly && mv dist/src dist/types",
"prepublishOnly": "tsc --noEmit && yarn build"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"declaration": true,
"sourceMap": false,
"target": "esnext",
"module": "esnext",
Expand Down

0 comments on commit efdb5b3

Please sign in to comment.