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