Skip to content

Commit

Permalink
Merge pull request #6 from izumin5210/izumin5210/build
Browse files Browse the repository at this point in the history
Fix tsconfig for type-checking for tests
  • Loading branch information
izumin5210 committed Sep 11, 2021
2 parents aa68d47 + d2a6d41 commit 56cd583
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
},
"scripts": {
"build": "yarn clean && yarn build:commonjs && yarn build:esmodule",
"build:commonjs": "tsc -p .",
"build:esmodule": "tsc -p tsconfig.module.json",
"clean": "rimraf lib module src/**/__generated__",
"generate": "graphql-codegen --config ./src/__fixtures__/codegen.yml",
"build:commonjs": "tsc -p tsconfig.build.json",
"build:esmodule": "tsc -p tsconfig.build.module.json",
"clean": "rimraf lib module",
"generate": "rimraf src/**/__generated__ && graphql-codegen --config ./src/__fixtures__/codegen.yml",
"pretest": "yarn clean && yarn generate",
"test": "jest"
},
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "src/__fixtures__/**/*", "src/**/*.test.ts"]
}
7 changes: 7 additions & 0 deletions tsconfig.build.module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.build.json",
"compilerOptions": {
"module": "esnext",
"outDir": "./module/"
}
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,5 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["src/**/*"],
"exclude": ["node_modules", "src/__fixtures__/**/*", "src/**/*.test.ts"]
"include": ["src/**/*"]
}
7 changes: 0 additions & 7 deletions tsconfig.module.json

This file was deleted.

0 comments on commit 56cd583

Please sign in to comment.