whoami1337 1 vuosi sitten
vanhempi
commit
532bd4fe76
3 muutettua tiedostoa jossa 16 lisäystä ja 12 poistoa
  1. 3 1
      package.json
  2. 1 1
      src/index.ts
  3. 12 10
      tsconfig.json

+ 3 - 1
package.json

@@ -2,11 +2,13 @@
   "name": "qf-types",
   "version": "1.0.0",
   "description": "Global package for about interfaces, types.",
-  "main": "index.ts",
+  "main": "dist/index.js",
+  "types": "dist/index.d.ts",
   "repository": "https://git.ali33.ru/s4z/qf-types.git",
   "author": "0xJS",
   "license": "MIT",
   "devDependencies": {
     "typescript": "^5.0.4"
   }
+  
 }

+ 1 - 1
src/index.ts

@@ -1 +1 @@
-import './interfaces/IUsers';
+export * from './interfaces/IUsers';

+ 12 - 10
tsconfig.json

@@ -1,11 +1,13 @@
 {
-    "compilerOptions": {
-      "declaration": true,
-      "outDir": "./dist",
-      "module": "commonjs",
-      "target": "es6",
-      "strict": true
-    },
-    "include": ["src"]
-  }
-  
+  "compilerOptions": {
+    "outDir": "./dist",
+    "declaration": true,
+    "declarationMap": true,
+    "sourceMap": true,
+    "target": "es6",
+    "module": "commonjs",
+    "strict": true,
+    "esModuleInterop": true
+  },
+  "include": ["src/**/*"]
+}