From 15148eb679671bd77431fecfcd411f6c90701a7b Mon Sep 17 00:00:00 2001 From: ginger-kang Date: Thu, 30 Mar 2023 06:08:27 +0900 Subject: [PATCH] chore: type declaration --- .changeset/brown-pets-beg.md | 5 +++++ .gitignore | 3 ++- packages/gatsby-source-note-com/package.json | 5 +++-- tsconfig.base.json | 5 ++++- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 .changeset/brown-pets-beg.md diff --git a/.changeset/brown-pets-beg.md b/.changeset/brown-pets-beg.md new file mode 100644 index 0000000..4461b31 --- /dev/null +++ b/.changeset/brown-pets-beg.md @@ -0,0 +1,5 @@ +--- +"gatsby-source-note-com": patch +--- + +add type declaration diff --git a/.gitignore b/.gitignore index 4934ec8..316328e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ node_modules/ /*.js !/index.js -dist \ No newline at end of file +dist +*.tsbuildinfo \ No newline at end of file diff --git a/packages/gatsby-source-note-com/package.json b/packages/gatsby-source-note-com/package.json index bc6917c..22c38b1 100644 --- a/packages/gatsby-source-note-com/package.json +++ b/packages/gatsby-source-note-com/package.json @@ -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" diff --git a/tsconfig.base.json b/tsconfig.base.json index 1431916..c492c19 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -3,6 +3,9 @@ "target": "ESNext", "module": "ESNext", "moduleResolution": "NodeNext", - "strict": true + "strict": true, + "composite": true, + "incremental": true, + "skipLibCheck": true } }