Skip to content

Commit fb90916

Browse files
committed
tsconfig changes
1 parent e1c8f43 commit fb90916

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "ts-http-status-utils",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "HTTP status code declarations, descriptions and utils",
55
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
67
"homepage": "https://github.com/thejfreitas/ts-http-status-utils",
78
"bugs": "https://github.com/thejfreitas/ts-http-status-utils/issues",
89
"repository": "[email protected]:thejfreitas/ts-http-status-utils.git",
@@ -19,7 +20,7 @@
1920
"http-error-message"
2021
],
2122
"scripts": {
22-
"build": "rm -rf dist && tsc",
23+
"build": "tsc",
2324
"test": "jest"
2425
},
2526
"devDependencies": {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export * from "./StatusDescription";
44
export * from "./StatusLabel";
55
export * from "./StatusPhrase";
66
export * from "./RequestMethod";
7-
export * from "./Interfaces/";
7+
export * from "./Interfaces";

tsconfig.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
22
"compilerOptions": {
3+
"module": "commonjs",
34
"target": "es5",
4-
"module": "es6",
5+
"lib": ["es2015", "dom"],
56
"strict": true,
67
"esModuleInterop": true,
78
"declaration": true,
89
"moduleResolution": "node",
910
"outDir": "dist",
1011
"rootDir": "src",
11-
"skipLibCheck": true
12+
"skipLibCheck": true,
13+
"allowSyntheticDefaultImports": true,
14+
"suppressImplicitAnyIndexErrors": true
1215
},
1316
"include": ["src/**/*"],
14-
"exclude": ["node_modules", "dist", "tests"]
17+
"exclude": ["node_modules", "tests"]
1518
}

0 commit comments

Comments
 (0)