Skip to content

Commit

Permalink
优化包构建和发布的配置信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoranner committed May 14, 2024
1 parent bda6e75 commit 2dc4239
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion jestconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"transform": {
"^.+\\.ts$": "ts-jest"
"^.+\\.(t|j)s$": "ts-jest"
},
"testRegex": "src/.*\\.spec\\.ts$",
"moduleFileExtensions": [
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "duan-hub-sdk",
"version": "0.0.6",
"version": "0.0.7",
"description": "DuanHub SDK",
"author": "Zoranner",
"license": "MIT",
"exports": "./index.js",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"engines": {
"node": "^18.17.0 || >=20.5.0"
},
"type": "module",
"scripts": {
"format": "prettier --write --parser=typescript src/**/*.ts",
"build": "node es-build.js",
Expand All @@ -18,11 +20,10 @@
},
"keywords": [],
"files": [
"dist",
"dist/**/*",
"package.json",
"README.md"
],
"types": "./dist/index.d.ts",
"dependencies": {
"uuid": "^9.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES6",
"module": "commonjs",
"sourceMap": false,
"module": "ESNext",
"sourceMap": true,
"declaration": true,
"outDir": "./dist",
"moduleResolution": "Node",
Expand Down

0 comments on commit 2dc4239

Please sign in to comment.