From 024702f60f26236bace3011bb1bea322d6d048d0 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 20 May 2021 23:22:24 +0200 Subject: [PATCH] Added tsconfig and entrypoint --- .gitignore | 3 ++- package.json | 2 ++ tsconfig.json | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index 52de1de..d030e9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -node_modules +node_modules/ +dist/ # We do not rely on specific version, no need to share this yarn.lock diff --git a/package.json b/package.json index f8bd73c..ce9a16b 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,8 @@ "type": "git", "url": "https://flaschengeist.dev/Flaschengeist/flaschengeist-typings" }, + "main": "dist/index.js", + "typings": "dist/index.d.ts", "scripts": { "build": "tsc", "pretty": "prettier --config ./package.json --write '{,!(node_modules)/**/}*.ts'" diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..5311e73 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,15 @@ + +{ + "compilerOptions": { + "target": "esnext", + "module": "esnext", + "declaration": true, + "outDir": "./dist", + "strict": true, + "moduleResolution": "node" + }, + "exclude": [ + "node_modules", + "dist" + ] +} \ No newline at end of file