From abb3dbdf81fd7eff3a1a36157ed5a107c1f2d042 Mon Sep 17 00:00:00 2001 From: Nick Hellemans Date: Mon, 30 Dec 2024 20:19:28 +0100 Subject: [PATCH] fix(): build and package --- .npmignore | 6 ++++++ package.json | 9 +++++++-- tsconfig.json | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..8eb6186 --- /dev/null +++ b/.npmignore @@ -0,0 +1,6 @@ +/src/ +/.vscode/ +/.yarn/ +.todo/ +*.env +*.example \ No newline at end of file diff --git a/package.json b/package.json index 14e127a..621e651 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,16 @@ { "name": "@awell-health/awell-score", - "version": "1.0.1", + "version": "1.0.2", "description": "Library of Medical Score functions", "packageManager": "yarn@4.6.0", "main": "dist/index.js", "types": "dist/index.d.ts", + "files": [ + "dist", + "!**/*.test.ts", + "!**/__tests__/**", + "!**/__mocks__/**" + ], "scripts": { "build": "tsc", "lint": "eslint --config eslint.config.js", @@ -15,7 +21,6 @@ "author": "", "license": "ISC", "dependencies": { - "dotenv": "^16.4.7", "lodash": "^4.17.21", "mathjs": "^14.0.1", "moment": "^2.30.1", diff --git a/tsconfig.json b/tsconfig.json index b0e0799..442c3ed 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "target": "es2018", "strict": true, "module": "commonjs", - "outDir": "./dist", + "outDir": "dist", "sourceMap": true, "declaration": true, "esModuleInterop": true,