diff --git a/package.json b/package.json index ad58a5d2..14a50cad 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ ], "scripts": { "setup": "yarn install && yarn allow-scripts", - "build": "tsc --project ./tsconfig.prod.json && tsc --project ./tsconfig.test.json", + "build": "tsc --project ./tsconfig.json && tsc --project ./tsconfig.test.json", "lint:eslint": "eslint . --cache --ext js,ts", "lint:json": "prettier '**/*.json' --ignore-path .gitignore", "lint": "yarn lint:eslint && yarn lint:json --check", diff --git a/tsconfig.json b/tsconfig.json index 43d62314..6dbd878e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,10 +2,15 @@ "compilerOptions": { "declaration": true, "esModuleInterop": true, + "inlineSources": true, + "lib": ["ES2020"], "module": "CommonJS", - "moduleResolution": "node", + "moduleResolution": "Node", + "outDir": "dist", + "rootDir": "src", "sourceMap": true, "target": "ES2017", "typeRoots": ["./node_modules/@types"] - } + }, + "include": ["./src/**/*.ts"] } diff --git a/tsconfig.prod.json b/tsconfig.prod.json deleted file mode 100644 index bbf00f68..00000000 --- a/tsconfig.prod.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "dist" - }, - "include": ["./src/*.ts"] -} diff --git a/tsconfig.test.json b/tsconfig.test.json index a90e7afb..4a93d68b 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -2,7 +2,10 @@ "extends": "./tsconfig.json", "compilerOptions": { "declaration": false, + "inlineSources": false, + "rootDir": "", + "outDir": "", "sourceMap": false }, - "files": ["./test/index.ts"] + "include": ["./test/index.ts"] }