Skip to content

Commit

Permalink
chore: 打包配置
Browse files Browse the repository at this point in the history
  • Loading branch information
wang.kangning committed Sep 4, 2023
1 parent 5fe4168 commit d48d32b
Show file tree
Hide file tree
Showing 3 changed files with 304 additions and 554 deletions.
6 changes: 6 additions & 0 deletions packages/vite-plugin-react-convention-routes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @orca-fe/vite-plugin-react-convention-routes

## 0.0.4

### Patch Changes

- chore: 打包配置

## 0.0.3

### Patch Changes
Expand Down
12 changes: 7 additions & 5 deletions packages/vite-plugin-react-convention-routes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/vite-plugin-react-convention-routes",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"description": "A vite plugin for react convention routes",
"keywords": [
Expand All @@ -9,8 +9,8 @@
],
"author": "NicoKam",
"license": "MIT",
"types": "es/index.d.ts",
"main": "es/index.js",
"types": "lib/index.d.ts",
"main": "lib/index.js",
"files": [
"dist",
"typing.d.ts",
Expand All @@ -25,15 +25,17 @@
"type": "git"
},
"scripts": {
"build": "father build",
"build": "npm run clear && npm run build-esbuild && npm run build-tsc",
"build-tsc": "tsc --emitDeclarationOnly --declaration --declarationMap --outDir lib src/index.ts",
"build-esbuild": "esbuild --bundle --platform=node --target=node12 --external:react --external:react-router-dom --external:vite --external:fast-glob --external:chokidar --external:tslib --format=esm --outdir=lib src/index.ts",
"prepublishOnly": "npm run build",
"test": "jest --passWithNoTests",
"clear": "rimraf lib es"
},
"dependencies": {
"chokidar": "^3.5.3",
"esbuild": "^0.19.2",
"fast-glob": "^3.3.1",
"slash": "^5.1.0",
"tslib": "^2.5.2"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit d48d32b

Please sign in to comment.