Skip to content

Commit

Permalink
feat: support miniprogram build
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubelrti committed Dec 27, 2023
1 parent 3ca2e41 commit bb4dddc
Show file tree
Hide file tree
Showing 6 changed files with 420 additions and 245 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ node_modules
npm-debug.log
package-lock.json
dist/
miniprogram_dist/
coverage/
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ benchmark
.babelrc
.eslintrc.js
pnpm-lock.yaml
*.config.ts
*.config.js
tsconfig.json
src
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
"description": "sm-crypto-v2",
"main": "dist/index.js",
"module": "dist/index.mjs",
"miniprogram": "miniprogram_dist",
"types": "dist/index.d.ts",
"scripts": {
"prepublish": "npm run build",
"lint": "eslint \"src/**/*.js\" --fix",
"build": "vitest run && tsup",
"prerelease": "vitest run && npm run build && npm run build-mp",
"build": "tsup",
"build-mp": "tsup --config=tsup.config.miniprogram.ts",
"watch": "tsup --watch",
"test": "vitest",
"release": "npm run build && standard-version && git push --follow-tags origin master",
Expand Down Expand Up @@ -44,12 +47,13 @@
"@vitest/runner": "^0.33.0",
"@vitest/ui": "^0.31.0",
"conventional-changelog-cli": "^2.2.2",
"esbuild": "^0.19.10",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.6.2",
"standard-version": "^9.5.0",
"tsup": "^5.12.7",
"tsup": "^8.0.1",
"typescript": "^4.7.2",
"vite": "^4.3.9",
"vitest": "^0.31.0"
Expand Down
Loading

0 comments on commit bb4dddc

Please sign in to comment.