Skip to content

Commit

Permalink
build: update build script and exports field
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Aug 1, 2023
1 parent 27a67a4 commit 52ea990
Show file tree
Hide file tree
Showing 5 changed files with 1,816 additions and 2,424 deletions.
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
shamefully-hoist=true
ignore-workspace-root-check=true
strict-peer-dependencies=false
46 changes: 21 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "unplugin-vue2-script-setup",
"version": "0.11.4",
"packageManager": "pnpm@8.6.10",
"packageManager": "pnpm@8.6.11",
"description": "Bring <script setup> to Vue 2",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
Expand All @@ -16,43 +16,37 @@
},
"exports": {
".": {
"types": "./index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./*": "./*",
"./esbuild": {
"types": "./esbuild.d.ts",
"require": "./dist/esbuild.js",
"import": "./dist/esbuild.mjs"
"import": "./dist/esbuild.mjs",
"require": "./dist/esbuild.js"
},
"./jest": "./jest.js",
"./nuxt": {
"types": "./nuxt.d.ts",
"require": "./dist/nuxt.js",
"import": "./dist/nuxt.mjs"
"import": "./dist/nuxt.mjs",
"require": "./dist/nuxt.js"
},
"./rollup": {
"types": "./rollup.d.ts",
"require": "./dist/rollup.js",
"import": "./dist/rollup.mjs"
"import": "./dist/rollup.mjs",
"require": "./dist/rollup.js"
},
"./types": {
"types": "./types.d.ts"
"import": "./dist/types.mjs",
"require": "./dist/types.js"
},
"./vite": {
"types": "./vite.d.ts",
"require": "./dist/vite.js",
"import": "./dist/vite.mjs"
"import": "./dist/vite.mjs",
"require": "./dist/vite.js"
},
"./webpack": {
"types": "./webpack.d.ts",
"require": "./dist/webpack.js",
"import": "./dist/webpack.mjs"
"import": "./dist/webpack.mjs",
"require": "./dist/webpack.js"
}
},
"main": "dist/index.js",
"types": "index.d.ts",
"files": [
"dist",
"jest.js",
Expand Down Expand Up @@ -97,7 +91,7 @@
"unplugin": "^1.4.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
"@antfu/eslint-config": "^0.40.0",
"@antfu/ni": "^0.21.5",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-commonjs": "^25.0.3",
Expand All @@ -111,17 +105,19 @@
"@vue/composition-api": "^1.7.1",
"@vue/runtime-dom": "^3.3.4",
"bumpp": "^9.1.1",
"esbuild": "^0.18.17",
"eslint": "^8.46.0",
"fast-glob": "^3.3.1",
"pug": "^3.0.2",
"rimraf": "^5.0.1",
"rollup": "^3.27.0",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-dts": "^5.3.1",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-typescript2": "^0.35.0",
"typescript": "^5.1.6",
"vite": "^4.4.7",
"vitest": "^0.33.0"
"vite": "^4.4.8",
"vitest": "^0.33.0",
"webpack": "^5.88.2"
},
"pnpm": {
"overrides": {
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"vue": "^2.6.14"
},
"devDependencies": {
"vite": "^4.4.7",
"vite-plugin-inspect": "^0.7.33",
"vite": "^4.4.8",
"vite-plugin-inspect": "^0.7.35",
"vite-plugin-vue2": "^2.0.3",
"vue-template-compiler": "~2.6.14"
}
Expand Down
Loading

0 comments on commit 52ea990

Please sign in to comment.