Skip to content

Commit

Permalink
chore: type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
ginger-kang committed Mar 29, 2023
1 parent e54e16c commit 15148eb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-pets-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gatsby-source-note-com": patch
---

add type declaration
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ node_modules/
/*.js
!/index.js

dist
dist
*.tsbuildinfo
5 changes: 3 additions & 2 deletions packages/gatsby-source-note-com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"license": "MIT",
"main": "index.js",
"files": [
"*.js"
"*.js",
"*.d.ts"
],
"scripts": {
"build": "babel src -d . -x .ts --presets gatsby-package"
"build": "babel src -d . -x .ts --presets gatsby-package && tsc --emitDeclarationOnly"
},
"publishConfig": {
"access": "public"
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "NodeNext",
"strict": true
"strict": true,
"composite": true,
"incremental": true,
"skipLibCheck": true
}
}

0 comments on commit 15148eb

Please sign in to comment.