From 6bfbcbcf84ced9549e082cbffea7a6c4af466710 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Tue, 7 May 2024 15:51:38 -0700 Subject: [PATCH] Try defining exports --- packages/webamp/package.json | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/packages/webamp/package.json b/packages/webamp/package.json index b736c9fe4..0f7e86043 100644 --- a/packages/webamp/package.json +++ b/packages/webamp/package.json @@ -35,6 +35,64 @@ "source": "demo/index.html" } }, + "exports": { + ".": { + "require": { + "types": "./built/types/js/webamp.d.ts", + "default": "./built/webamp.bundle.js" + }, + "import": { + "types": "./built/types/js/webamp.d.ts", + "default": "./built/webamp.bundle.js" + }, + "default": { + "types": "./built/types/js/webamp.d.ts", + "default": "./built/webamp.bundle.js" + } + }, + "./min": { + "require": { + "types": "./built/types/js/webamp.d.ts", + "default": "./built/webamp.bundle.min.js" + }, + "import": { + "types": "./built/types/js/webamp.d.ts", + "default": "./built/webamp.bundle.min.js" + }, + "default": { + "types": "./built/types/js/webamp.d.ts", + "default": "./built/webamp.bundle.min.js" + } + }, + "./lazy": { + "require": { + "types": "./built/types/js/webampLazy.d.ts", + "default": "./built/webamp.lazy-bundle.js" + }, + "import": { + "types": "./built/types/js/webampLazy.d.ts", + "default": "./built/webamp.lazy-bundle.js" + }, + "default": { + "types": "./built/types/js/webampLazy.d.ts", + "default": "./built/webamp.lazy-bundle.js" + } + }, + "./lazy/min": { + "require": { + "types": "./built/types/js/webampLazy.d.ts", + "default": "./built/webamp.lazy-bundle.min.js" + }, + "import": { + "types": "./built/types/js/webampLazy.d.ts", + "default": "./built/webamp.lazy-bundle.min.js" + }, + "default": { + "types": "./built/types/js/webampLazy.d.ts", + "default": "./built/webamp.lazy-bundle.min.js" + } + } + }, "webamp-browser": "built/webamp.bundle.js", "webamp-browser-min": "built/webamp.bundle.min.js", "webamp-lazy-browser": "built/webamp.lazy-bundle.js",