Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
build: set tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
darioblanco committed May 23, 2022
1 parent 72d676e commit d182034
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module.exports = {
extends: ['@parcellab/eslint-config/typescript', '@parcellab/eslint-config/jest'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
project: './tsconfig.eslint.json',
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"main": "dist/index.js",
"types": "types/index.d.ts",
"scripts": {
"build": "tsc",
"build": "tsc -b tsconfig.build.json",
"lint": "eslint ./src/**/*.ts",
"prepare": "yes | husky install",
"upgrade": "yarn upgrade-interactive",
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": "./src",
"outDir": "dist"
},
"include": ["src/**/*.ts", "src/**/*.tsx"]
}
9 changes: 9 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"allowJs": true,
"noEmit": true,
"rootDir": "."
},
"include": ["**/*.ts", "**/*.tsx", ".eslintrc.js"]
}
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"rootDir": "src",
"outDir": "dist",
"allowJs": false,
"esModuleInterop": true,
"pretty": true,
"strictNullChecks": true,
"declaration": true
},
"lib": ["es2017"],
"include": ["src/**/*.ts", "src/**/*.tsx", "dangerfile.ts"],
"exclude": ["dangerfile.ts", "node_modules", "dist"]
"lib": ["es2017"]
}

0 comments on commit d182034

Please sign in to comment.