fix(resolve-type): overwrite exports field for publish

This commit is contained in:
三咲智子 Kevin Deng 2024-01-22 23:08:52 +08:00
parent 4442cfa548
commit fab7958958
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -101,3 +101,4 @@ dist
.tern-port .tern-port
dist dist
.DS_Store

View File

@ -20,6 +20,15 @@
"type": "git", "type": "git",
"url": "git+https://github.com/vuejs/babel-plugin-jsx" "url": "git+https://github.com/vuejs/babel-plugin-jsx"
}, },
"publishConfig": {
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
}
},
"scripts": { "scripts": {
"build": "tsup", "build": "tsup",
"watch": "tsup --watch" "watch": "tsup --watch"