Skip to content

Commit

Permalink
update package.json config
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalDes committed Aug 3, 2023
1 parent 483dd1a commit bf0854e
Show file tree
Hide file tree
Showing 6 changed files with 1,614 additions and 1,741 deletions.
29 changes: 19 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
{
"name": "short-zh-number",
"version": "1.0.13",
"type": "module",
"version": "1.0.15",
"main": "dist/index.js",
"repository": "git@github.com:FinalDes/short-zh-number.git",
"author": "Alex Alonso <alex4551@gmail.com>",
"license": "MIT",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"scripts": {
"build": "del-cli dist && tsc -p tsconfig.json",
"lint": "eslint -c .eslintrc --ext .ts src",
Expand All @@ -17,19 +26,19 @@
"test:coveralls": "yarn test:coverage && cat ./coverage/lcov.info | coveralls"
},
"devDependencies": {
"@types/jest": "^27.0.2",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"coveralls": "^3.0.11",
"del-cli": "^4.0.1",
"del-cli": "^5.0.0",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.3.1",
"prettier": "^2.4.1",
"ts-jest": "^27.0.7",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.1",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.4.0",
"typescript": "^4.4.4"
"typescript": "^5.1.6"
},
"jest": {
"verbose": true,
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist/cjs",
"module": "commonjs"
}
}
7 changes: 7 additions & 0 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist/esm",
"module": "esnext"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "commonjs",
"declaration": true,
"sourceMap": true,
"outDir": "./dist",
"outDir": "./dist/",
"removeComments": true,
"strict": true,
"incremental": true,
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist/types",
"declaration": true,
"emitDeclarationOnly": true
}
}

0 comments on commit bf0854e

Please sign in to comment.