File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed
Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1010 {
1111 "@semantic-release/npm": {
1212 "npmPublish": true,
13- "pkgRoot": "dist"
13+ "pkgRoot": "dist",
14+ "version": "1.2.1"
1415 }
1516 }
1617 ]
Original file line number Diff line number Diff line change @@ -148,6 +148,14 @@ cd axios-error-handler
148148npm install
149149```
150150
151+ ### Running Tests
152+
153+ The project uses Jest for testing. To run the tests, use the following command:
154+
155+ ``` bash
156+ npm test
157+ ```
158+
151159### Building
152160
153161To compile the TypeScript code into JavaScript, run:
@@ -156,7 +164,7 @@ To compile the TypeScript code into JavaScript, run:
156164npm run build
157165```
158166
159- This will generate the compiled code in the ` dist ` directory.
167+ This will generate the compiled code in the ` dist ` directory. The compiled files are then published to npm instead of the TypeScript source files.
160168
161169## License
162170
Original file line number Diff line number Diff line change 22 "name" : " axios-error-handler-ts" ,
33 "version" : " 1.2.1" ,
44 "description" : " A simple helper to handle errors in Axios requests with customizable messages." ,
5- "main" : " src /errorHandler.ts " ,
6- "types" : " src /errorHandler.ts" ,
5+ "main" : " dist /errorHandler.js " ,
6+ "types" : " dist /errorHandler.d .ts" ,
77 "repository" : {
88 "type" : " git" ,
99 "url" : " git+https://github.com/Jszigeti/axios-error-handler.git"
4242 "bugs" : {
4343 "url" : " https://github.com/Jszigeti/axios-error-handler/issues"
4444 },
45- "homepage" : " https://github.com/Jszigeti/axios-error-handler#readme"
45+ "homepage" : " https://github.com/Jszigeti/axios-error-handler#readme" ,
46+ "files" : [
47+ " dist/**/*" ,
48+ " README.md" ,
49+ " LICENSE"
50+ ]
4651}
You can’t perform that action at this time.
0 commit comments