From c99c93507e842fc3e7ae03443335af742ca3402b Mon Sep 17 00:00:00 2001 From: Theo Date: Wed, 16 Aug 2023 16:36:21 -0700 Subject: [PATCH] Add correct library entrypoints for publishing in registry --- index.ts | 2 ++ package.json | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 index.ts diff --git a/index.ts b/index.ts new file mode 100644 index 0000000..b4fb84a --- /dev/null +++ b/index.ts @@ -0,0 +1,2 @@ +export * from "./config"; +export * from "./types"; diff --git a/package.json b/package.json index d05dd84..fcde9d8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "@tornado/tornado-config", "version": "2.0.0", - "main": "\"./lib/config.js\"", + "main": "./lib/config.js", + "types": "./lib/index.d.ts", "scripts": { "build": "tsc" }, @@ -16,10 +17,8 @@ "Tornado Cash" ], "files": [ - "config.js", - "index.d.ts" + "lib/*" ], - "types": "index.d.ts", "devDependencies": { "@types/node": "^20.5.0", "typescript": "^5.1.6"