Skip to content

Commit

Permalink
fix: 替换为 vite 编译
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Jun 18, 2024
1 parent ad22785 commit aef8def
Show file tree
Hide file tree
Showing 3 changed files with 375 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"default": "./dist/index.cjs"
}
}
},
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
Expand All @@ -41,7 +41,7 @@
"bootstrap": "pnpm install",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"build": "tsup",
"build": "vite build",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"preinstall": "npx only-allow pnpm",
Expand All @@ -67,6 +67,8 @@
"semantic-release": "^24.0.0",
"tsup": "^8.1.0",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1",
"vitest": "^1.6.0"
},
"lint-staged": {
Expand Down
Loading

0 comments on commit aef8def

Please sign in to comment.