Skip to content

Commit

Permalink
Merge pull request #183 from hypothesis/types-using-tsconfig
Browse files Browse the repository at this point in the history
Create types using `tsconfig.json`
  • Loading branch information
esanzgar authored Sep 2, 2021
2 parents 48486fa + 7502d2c commit afd1d8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
},
"scripts": {
"build-js": "babel src --out-dir lib --source-maps --ignore '**/test' --ignore '**/karma.config.js'",
"build-types": "tsc --allowJs --declaration --emitDeclarationOnly --outDir lib src/index.js",
"build": "yarn build-js && yarn build-types",
"build": "yarn build-js && tsc --build src/tsconfig.json",
"typecheck": "tsc --build src/tsconfig.json",
"lint": "eslint .",
"checkformatting": "prettier --check '**/*.{js,scss,md}'",
Expand Down
6 changes: 4 additions & 2 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"jsx": "react-jsx",
"jsxImportSource": "preact",
"module": "commonjs",
"noEmit": true,
"declaration": true,
"emitDeclarationOnly": true,
"declarationDir": "../lib",
"strict": true,
"noImplicitAny": false,
"target": "ES2020"
Expand All @@ -15,6 +17,6 @@
"exclude": [
// Tests are not checked.
"**/test/**/*.js",
"karma.config.js",
"karma.config.js"
]
}

0 comments on commit afd1d8f

Please sign in to comment.