|
132 | 132 | "node": ">=16" |
133 | 133 | }, |
134 | 134 | "scripts": { |
135 | | - "test": "dts test", |
136 | | - "cover": "dts test --coverage", |
137 | | - "lint": "dts lint src test", |
138 | | - "format": "dts lint src test --fix", |
139 | | - "prepare": "dts build --target node", |
| 135 | + "test": "npx jest", |
| 136 | + "cover": "npx jest --coverage", |
| 137 | + "lint": "npx eslint src test snippets", |
| 138 | + "format": "npx eslint src test snippets --fix", |
| 139 | + "prepare": "npx tsup", |
140 | 140 | "check-updates": "ncu -u --enginesNode" |
141 | 141 | }, |
142 | 142 | "prettier": { |
|
146 | 146 | "trailingComma": "es5", |
147 | 147 | "tabWidth": 4 |
148 | 148 | }, |
| 149 | + "tsup": { |
| 150 | + "entry": ["src/index.ts"], |
| 151 | + "format": ["cjs", "esm"], |
| 152 | + "dts": true, |
| 153 | + "splitting": false, |
| 154 | + "sourcemap": true, |
| 155 | + "clean": true, |
| 156 | + "minify": true |
| 157 | + }, |
149 | 158 | "devDependencies": { |
| 159 | + "@types/jest": "^29.5.14", |
150 | 160 | "@types/uuid": "^10.0.0", |
151 | | - "dts-cli": "^2.0.5", |
152 | | - "eslint-config-prettier": "^10.0.1", |
| 161 | + "@typescript-eslint/eslint-plugin": "^8.26.1", |
| 162 | + "@typescript-eslint/parser": "^8.26.1", |
| 163 | + "eslint": "^9.22.0", |
| 164 | + "eslint-config-prettier": "^10.1.1", |
153 | 165 | "eslint-plugin-prettier": "^5.2.3", |
154 | | - "npm-check-updates": "^16.14.20", |
155 | | - "prettier": "^3.4.2", |
156 | | - "ts-jest": "^29.1.3", |
| 166 | + "npm-check-updates": "^17.1.15", |
| 167 | + "prettier": "^3.5.3", |
| 168 | + "ts-jest": "^29.2.6", |
157 | 169 | "tslib": "^2.8.1", |
158 | | - "uuid": "^11.0.5" |
| 170 | + "tsup": "^8.4.0", |
| 171 | + "uuid": "^11.1.0" |
159 | 172 | }, |
160 | 173 | "bugs": { |
161 | 174 | "url": "https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-node/issues" |
|
0 commit comments