From e084a893a799b94f623bc2538dccf927b0e95829 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 16 Jul 2021 16:45:43 +0800 Subject: [PATCH] chore: update package.json --- package.json | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 71e0dc25..a302c32f 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,23 @@ "description": "Provide logic composition capabilities for Vue.", "keywords": [ "vue", - "composition-api", - "function-api" + "composition-api" ], "repository": { "type": "git", "url": "git+https://github.com/vuejs/composition-api.git" }, - "main": "index.js", - "module": "dist/vue-composition-api.esm.js", - "unpkg": "dist/vue-composition-api.prod.js", - "jsdelivr": "dist/vue-composition-api.prod.js", - "typings": "dist/index.d.ts", + "main": "./index.js", + "module": "./dist/vue-composition-api.esm.js", + "unpkg": "./dist/vue-composition-api.prod.js", + "jsdelivr": "./dist/vue-composition-api.prod.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "import": "./dist/vue-composition-api.esm.js", + "require": "./index.js" + } + }, "author": { "name": "liximomo", "email": "liximomo@gmail.com" @@ -43,6 +48,12 @@ "url": "https://github.com/vuejs/composition-api/issues" }, "homepage": "https://github.com/vuejs/composition-api#readme", + "peerDependencies": { + "vue": ">= 2.5 < 3" + }, + "dependencies": { + "tslib": "^2.3.0" + }, "devDependencies": { "@rollup/plugin-node-resolve": "^13.0.0", "@rollup/plugin-replace": "^2.4.2", @@ -67,12 +78,6 @@ "vue-router": "^3.5.2", "vue-server-renderer": "^2.6.14" }, - "peerDependencies": { - "vue": ">= 2.5 < 3" - }, - "dependencies": { - "tslib": "^2.3.0" - }, "husky": { "hooks": { "pre-commit": "lint-staged"