Skip to content

Commit

Permalink
fix: revert #61, fix #63
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 6, 2021
1 parent 8d13084 commit 0689015
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"main": "lib/index.cjs.js",
"jsdelivr": "lib/index.iife.js",
"unpkg": "lib/index.iife.js",
"module": "lib/index.esm.mjs",
"module": "lib/index.esm.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"import": "./lib/index.esm.mjs",
"import": "./lib/index.esm.js",
"require": "./lib/index.cjs.js"
},
"./": "./"
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function updateVue2API() {

const exports = Object.keys(VCA).filter(i => !ignoreList.includes(i))

const esmPath = path.join(dir, 'index.esm.mjs')
const esmPath = path.join(dir, 'index.esm.js')
let content = fs.readFileSync(esmPath, 'utf-8')

content = content.replace(
Expand All @@ -46,7 +46,7 @@ export { ${exports.join(', ')} } from '@vue/composition-api'

function switchVersion(version, vue) {
copy('index.cjs.js', version, vue)
copy('index.esm.mjs', version, vue)
copy('index.esm.js', version, vue)
copy('index.d.ts', version, vue)

if (version === 2)
Expand Down

0 comments on commit 0689015

Please sign in to comment.