From 18693888e4ba56bd181d9834197d2471a7073061 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sun, 16 Jun 2024 05:48:46 +0000 Subject: [PATCH] Define top-level "main" and "types" fields in package.json Some of bundler tools like Parcel do not support the "exports" field yet. This change defines the top-level "main" and "types" fields in package.json as a fallback. --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index bab05a6..f9610a1 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,8 @@ "bugs": { "url": "https://github.com/bjorn3/browser_wasi_shim/issues" }, + "main": "dist/index.js", + "types": "dist/index.d.ts", "exports": { ".": { "types": "./typings/index.d.ts",