CrazyDoctor 1 year ago
parent
commit
90ea8bb210
2 changed files with 10 additions and 3 deletions
  1. 4 1
      package.json
  2. 6 2
      tsconfig.json

+ 4 - 1
package.json

@@ -3,6 +3,7 @@
   "version": "1.0.1",
   "devDependencies": {
     "@types/express-session": "^1.17.7",
+    "@types/node": "^20.4.9",
     "@typescript-eslint/eslint-plugin": "^6.2.1",
     "@typescript-eslint/parser": "^6.2.1",
     "eslint": "^8.46.0",
@@ -22,7 +23,9 @@
   },
   "main": "dist/index.js",
   "types": "dist/index.d.ts",
-  "files": ["dist"],
+  "files": [
+    "dist", "lib", "tsconfig.json"
+  ],
   "scripts": {
     "lint": "eslint .",
     "build": "npm run lint && tsc && ncp lib/resources/ dist/resources/"

+ 6 - 2
tsconfig.json

@@ -6,8 +6,12 @@
     "strict": true,
     "esModuleInterop": true,
     "declaration": true,
-    "declarationDir": "./dist/types"
+    "declarationDir": "./dist/types",
+    "paths": {
+      "org-crazydoctor-expressts-base/*": ["/lib/base/*"],
+      "org-crazydoctor-expressts-server/*": ["/lib/server/*"]
+    }
   },
-  "include": ["lib"],
+  "include": ["lib/**/*"],
   "exclude": ["node_modules"]
 }