ソースを参照

tweak package

Joeri Exelmans 1 年間 前
コミット
cfb49d8788
2 ファイル変更6 行追加0 行削除
  1. 2 0
      package.json
  2. 4 0
      tsconfig.json

+ 2 - 0
package.json

@@ -1,6 +1,8 @@
 {
 	"name": "onion-core",
 	"sideEffects": false,
+	"main": "dist/index.js",
+	"types": "dist/index.d.ts",
 	"dependencies": {
 		"buffer": "^6.0.3",
 		"crypto-browserify": "^3.12.0",

+ 4 - 0
tsconfig.json

@@ -11,5 +11,9 @@
     "alwaysStrict": true,
     "moduleResolution": "node",
     "module": "commonjs",
+    "declaration": true,
+    "outDir": "./dist"
   },
+  "include": ["index.ts", "lib/**/*"],
+  "exclude": ["*.test.ts"]
 }