Skip to content

Commit 51345ae

Browse files
committed
chore: update packages
1 parent dc4da52 commit 51345ae

File tree

4 files changed

+14
-46
lines changed

4 files changed

+14
-46
lines changed

examples/@vue-demi/use-mouse/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"vue-demi": "latest"
1010
},
1111
"devDependencies": {
12-
"@vue/composition-api": "^1.0.0-beta.1",
13-
"typescript": "^3.9.5",
14-
"vue": "^2.6.11"
12+
"@vue/composition-api": "^1.0.0-beta.10",
13+
"typescript": "^3.9.7",
14+
"vue": "^2.6.12"
1515
},
1616
"scripts": {
1717
"build": "npx rimraf dist && npm run build:esm && npm run build:cjs",

examples/demo-vue-2-cli/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
},
99
"dependencies": {
1010
"@vue-demi/use-mouse": "^0.0.1",
11-
"@vue/composition-api": "^1.0.0-beta.1",
12-
"vue": "^2.6.11"
11+
"@vue/composition-api": "^1.0.0-beta.10",
12+
"vue": "^2.6.12"
1313
},
1414
"devDependencies": {
15-
"@vue/cli-plugin-typescript": "~4.4.0",
16-
"@vue/cli-service": "~4.4.0",
17-
"typescript": "~3.9.3",
18-
"vue-template-compiler": "^2.6.11"
15+
"@vue/cli-plugin-typescript": "~4.4.6",
16+
"@vue/cli-service": "~4.4.6",
17+
"typescript": "~3.9.7",
18+
"vue-template-compiler": "^2.6.12"
1919
},
2020
"browserslist": [
2121
"> 1%",

scripts/postinstall.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path')
33

44
const dir = path.resolve(__dirname, '..')
55

6-
function loadModule (name) {
6+
function loadModule(name) {
77
try {
88
return require(name)
99
} catch (e) {
@@ -12,9 +12,9 @@ function loadModule (name) {
1212
}
1313

1414
function switchVersion(version) {
15-
fs.writeFileSync(path.join(dir,'lib', 'index.cjs.js'), `module.exports = require('./v${version}/index.cjs')\n`, 'utf-8')
16-
fs.writeFileSync(path.join(dir,'lib', 'index.esm.js'), `export * from './v${version}/index.esm'\n`, 'utf-8')
17-
fs.writeFileSync(path.join(dir,'lib', 'index.d.ts'), `export * from './v${version}/index'\n`, 'utf-8')
15+
fs.writeFileSync(path.join(dir, 'lib', 'index.cjs.js'), `module.exports = require('./v${version}/index.cjs')\n`, 'utf-8')
16+
fs.writeFileSync(path.join(dir, 'lib', 'index.esm.js'), `export * from './v${version}/index.esm'\n`, 'utf-8')
17+
fs.writeFileSync(path.join(dir, 'lib', 'index.d.ts'), `export * from './v${version}/index'\n`, 'utf-8')
1818
}
1919

2020
const Vue = loadModule('vue')
@@ -30,4 +30,4 @@ else if (Vue.version.startsWith('3.')) {
3030
}
3131
else {
3232
console.warn(`[vue-demi] Vue version v${Vue.version} is not suppported.`)
33-
}
33+
}

yarn.lock

-32
This file was deleted.

0 commit comments

Comments
 (0)