Skip to content

Commit

Permalink
build(tsconfig): add config options for generating .d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Jun 3, 2023
1 parent 4ce1039 commit 680fe57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -6,7 +6,7 @@
"version": "0.0.0-development",
"description": "Methods to handle GitHub Webhook requests",
"scripts": {
"build": "node scripts/build.mjs",
"build": "node scripts/build.mjs && tsc -p tsconfig.json",
"lint": "prettier --check '{src,test,scripts}/**/*' README.md package.json",
"lint:fix": "prettier --write '{src,test,scripts}/**/*' README.md package.json",
"pretest": "npm run -s lint",
Expand Down
12 changes: 11 additions & 1 deletion tsconfig.json
@@ -1 +1,11 @@
{ "extends": "@octokit/tsconfig", "include": ["src/**/*"] }
{
"extends": "@octokit/tsconfig",
"compilerOptions": {
"esModuleInterop": true,
"declaration": true,
"outDir": "pkg/dist-types",
"emitDeclarationOnly": true,
"sourceMap": true
},
"include": ["src/**/*"]
}

0 comments on commit 680fe57

Please sign in to comment.