Skip to content

Commit

Permalink
fix(build): fix ESM export
Browse files Browse the repository at this point in the history
  • Loading branch information
dm4t2 committed Oct 30, 2022
1 parent 18d33c4 commit 04b512c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions package.json
Expand Up @@ -3,17 +3,17 @@
"description": "Easy input of currency formatted numbers for Vue.js.",
"version": "3.0.1",
"license": "MIT",
"module": "./dist/index.esm.js",
"main": "./dist/index.cjs.js",
"module": "./dist/index.mjs",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"dist/*.js",
"dist/index.d.ts"
"dist"
],
"exports": {
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"sideeffects": false,
Expand All @@ -25,8 +25,6 @@
"homepage": "https://dm4t2.github.io/vue-currency-input",
"keywords": [
"vue",
"composition api",
"composable",
"input mask",
"currency input",
"money input",
Expand All @@ -40,7 +38,7 @@
"coverage": "vitest run --coverage",
"lint": "eslint --no-fix --max-warnings 0 {**/*,*}.{js,ts,vue}",
"prebuild": "rimraf dist",
"build": "tsc --emitDeclarationOnly --declaration --outDir dist/types && rollup -c rollup.config.js"
"build": "tsc --emitDeclarationOnly --declaration --outDir temp/types && rollup -c rollup.config.js"
},
"peerDependencies": {
"vue": "^2.7 || ^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -41,7 +41,7 @@ export default [
external: ['vue']
},
{
input: './dist/types/src/index.d.ts',
input: './temp/types/src/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'es' }],
plugins: [dts()]
}
Expand Down

0 comments on commit 04b512c

Please sign in to comment.