Преглед изворни кода

chore: adjust package.json

Evan You пре 6 година
родитељ
комит
bdbfead1e0

+ 1 - 1
packages/compiler-core/package.json

@@ -4,11 +4,11 @@
   "description": "@vue/compiler-core",
   "main": "index.js",
   "module": "dist/compiler-core.esm-bundler.js",
+  "types": "dist/compiler-core.d.ts",
   "files": [
     "index.js",
     "dist"
   ],
-  "types": "dist/compiler-core.d.ts",
   "buildOptions": {
     "name": "VueCompilerCore",
     "formats": [

+ 2 - 2
packages/compiler-dom/package.json

@@ -4,12 +4,12 @@
   "description": "@vue/compiler-dom",
   "main": "index.js",
   "module": "dist/compiler-dom.esm-bundler.js",
+  "types": "dist/compiler-dom.d.ts",
+  "unpkg": "dist/compiler-dom/global.js",
   "files": [
     "index.js",
     "dist"
   ],
-  "types": "dist/compiler-dom.d.ts",
-  "unpkg": "dist/compiler-dom/global.js",
   "sideEffects": false,
   "buildOptions": {
     "name": "VueCompilerDOM",

+ 1 - 1
packages/compiler-sfc/package.json

@@ -3,10 +3,10 @@
   "version": "3.0.0-alpha.0",
   "description": "@vue/compiler-sfc",
   "main": "dist/compiler-sfc.cjs.js",
+  "types": "dist/compiler-sfc.d.ts",
   "files": [
     "dist"
   ],
-  "types": "dist/compiler-sfc.d.ts",
   "buildOptions": {
     "prod": false,
     "formats": [

+ 2 - 2
packages/reactivity/package.json

@@ -4,12 +4,12 @@
   "description": "@vue/reactivity",
   "main": "index.js",
   "module": "dist/reactivity.esm-bundler.js",
+  "types": "dist/reactivity.d.ts",
+  "unpkg": "dist/reactivity.global.js",
   "files": [
     "index.js",
     "dist"
   ],
-  "types": "dist/reactivity.d.ts",
-  "unpkg": "dist/reactivity.global.js",
   "sideEffects": false,
   "repository": {
     "type": "git",

+ 1 - 1
packages/runtime-core/package.json

@@ -4,11 +4,11 @@
   "description": "@vue/runtime-core",
   "main": "index.js",
   "module": "dist/runtime-core.esm-bundler.js",
+  "types": "dist/runtime-core.d.ts",
   "files": [
     "index.js",
     "dist"
   ],
-  "types": "dist/runtime-core.d.ts",
   "buildOptions": {
     "name": "VueRuntimeCore",
     "formats": [

+ 2 - 2
packages/runtime-dom/package.json

@@ -4,12 +4,12 @@
   "description": "@vue/runtime-dom",
   "main": "index.js",
   "module": "dist/runtime-dom.esm-bundler.js",
+  "types": "dist/runtime-dom.d.ts",
+  "unpkg": "dist/runtime-dom.global.js",
   "files": [
     "index.js",
     "dist"
   ],
-  "types": "dist/runtime-dom.d.ts",
-  "unpkg": "dist/runtime-dom.global.js",
   "sideEffects": false,
   "buildOptions": {
     "name": "VueRuntimeDOM",

+ 1 - 1
packages/runtime-test/package.json

@@ -5,11 +5,11 @@
   "private": true,
   "main": "index.js",
   "module": "dist/runtime-test.esm-bundler.js",
+  "types": "dist/runtime-test.d.ts",
   "files": [
     "index.js",
     "dist"
   ],
-  "types": "dist/runtime-test.d.ts",
   "repository": {
     "type": "git",
     "url": "git+https://github.com/vuejs/vue.git"

+ 1 - 1
packages/server-renderer/package.json

@@ -3,11 +3,11 @@
   "version": "3.0.0-alpha.0",
   "description": "@vue/server-renderer",
   "main": "index.js",
+  "types": "dist/server-renderer.d.ts",
   "files": [
     "index.js",
     "dist"
   ],
-  "types": "dist/server-renderer.d.ts",
   "buildOptions": {
     "formats": [
       "cjs"

+ 2 - 2
packages/vue/package.json

@@ -4,12 +4,12 @@
   "description": "vue",
   "main": "index.js",
   "module": "dist/vue.runtime.esm-bundler.js",
+  "types": "dist/vue.d.ts",
+  "unpkg": "dist/vue.global.js",
   "files": [
     "index.js",
     "dist"
   ],
-  "types": "dist/vue.d.ts",
-  "unpkg": "dist/vue.global.js",
   "buildOptions": {
     "name": "Vue",
     "formats": [