From a3c8aefa69e5c134390c7cf518e2123fb3e89135 Mon Sep 17 00:00:00 2001 From: Brian Ginsburg Date: Wed, 5 Jul 2023 11:06:42 -0700 Subject: [PATCH] feat: add "." entry point --- ucan-wasm/package.json | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/ucan-wasm/package.json b/ucan-wasm/package.json index 32c46932..fbfc716e 100644 --- a/ucan-wasm/package.json +++ b/ucan-wasm/package.json @@ -17,20 +17,22 @@ "homepage": "https://github.com/ucan-wg/rs-ucan#readme", "type": "module", "exports": { - "deno": { - "types": "./lib/deno/ucan_wasm.d.ts", - "default": "./lib/deno/ucan_wasm.js" - }, - "node": { - "types": "./lib/node/ucan_wasm.d.ts", - "require": "./lib/node/ucan_wasm.js" - }, - "workerd": { - "types": "./lib/workerd/ucan_wasm.d.ts", - "default": "./lib/workerd/index.js" - }, - "types": "./lib/browser/ucan_wasm.d.ts", - "default": "./lib/browser/ucan_wasm.js" + ".": { + "deno": { + "types": "./lib/deno/ucan_wasm.d.ts", + "default": "./lib/deno/ucan_wasm.js" + }, + "node": { + "types": "./lib/node/ucan_wasm.d.ts", + "require": "./lib/node/ucan_wasm.js" + }, + "workerd": { + "types": "./lib/workerd/ucan_wasm.d.ts", + "default": "./lib/workerd/index.js" + }, + "types": "./lib/browser/ucan_wasm.d.ts", + "default": "./lib/browser/ucan_wasm.js" + } }, "scripts": { "build": "export PROFILE=dev && export TARGET_DIR=debug && npm run buildall",