build: adjust types build script
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"description": "@vue/compiler",
|
||||
"main": "index.js",
|
||||
"module": "dist/compiler.esm-bundler.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
"sideEffects": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "@vue/core",
|
||||
"main": "index.js",
|
||||
"module": "dist/core.esm-bundler.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
"sideEffects": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "@vue/observer",
|
||||
"main": "index.js",
|
||||
"module": "dist/observer.esm-bundler.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
"unpkg": "dist/observer.global.js",
|
||||
"sideEffects": false,
|
||||
"repository": {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "@vue/renderer-dom",
|
||||
"main": "index.js",
|
||||
"module": "dist/renderer-dom.esm-bundler.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
"unpkg": "dist/renderer-dom.global.js",
|
||||
"sideEffects": false,
|
||||
"buildOptions": {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"version": "3.0.0-alpha.1",
|
||||
"description": "@vue/renderer-server",
|
||||
"main": "index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
"buildOptions": {
|
||||
"formats": ["cjs"]
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "@vue/renderer-test",
|
||||
"main": "index.js",
|
||||
"module": "dist/renderer-test.esm-bundler.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/vue.git"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "@vue/scheduler",
|
||||
"main": "index.js",
|
||||
"module": "dist/scheduler.esm-bundler.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
"sideEffects": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
"description": "vue",
|
||||
"main": "index.js",
|
||||
"module": "dist/vue.esm-bundler.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"unpkg": "dist/vue.global.js",
|
||||
"sideEffects": false,
|
||||
"buildOptions": {
|
||||
|
||||
@@ -6,12 +6,13 @@ import {
|
||||
createComponentClassFromOptions
|
||||
} from '@vue/renderer-dom'
|
||||
|
||||
class Vue {
|
||||
static h = h
|
||||
static render = render
|
||||
static nextTick = nextTick
|
||||
// Note: typing for this is intentionally loose, as it will be using 2.x types.
|
||||
|
||||
class Vue {
|
||||
static h: any = h
|
||||
static render: any = render
|
||||
static nextTick: any = nextTick
|
||||
|
||||
// Note: typing for this is intentionally loose, as it will be using 2.x types.
|
||||
constructor(options: any) {
|
||||
// convert it to a class
|
||||
const Component = createComponentClassFromOptions(options || {})
|
||||
|
||||
Reference in New Issue
Block a user