Skip to content

Commit

Permalink
Added definition file generation to the webpack output
Browse files Browse the repository at this point in the history
  • Loading branch information
sgebhardt committed Sep 9, 2019
1 parent 0e09676 commit 789850a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ npm-debug.log
dist
typings
lib/*.map
.vscode
lib/**/*.d.ts
.vscode
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"url": "https://github.com/nhabuiduc/react-filter-box"
},
"main": "lib/react-filter-box.js",
"types": "./lib/ReactFilterBox.d.ts",
"keywords": [
"react-component",
"react",
Expand Down
32 changes: 17 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"compilerOptions": {
"noImplicitAny": true,
"removeComments": true,
"skipLibCheck": true,
"jsx": "react"
// "allowSyntheticDefaultImports":true
},
"awesomeTypescriptLoaderOptions": {
/* ... */
},
"exclude": [
"node_modules",
"wwwroot"
]
}
"compilerOptions": {
"noImplicitAny": true,
"removeComments": true,
"skipLibCheck": true,
"jsx": "react",
"target": "es5",
"module": "commonjs",
"sourceMap": true,
"declaration": true,
"outDir": "lib"
// "allowSyntheticDefaultImports":true
},
"awesomeTypescriptLoaderOptions": {
/* ... */
},
"exclude": ["node_modules", "lib"]
}

0 comments on commit 789850a

Please sign in to comment.