From 0cd7a5eb79c268fc4371398d3fd322a2d1621c3b Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 29 Jun 2022 20:56:21 +0200 Subject: [PATCH] make theming use TSup again (didn't I do this before?!?!?! --- lib/theming/package.json | 17 +++++++++++++---- yarn.lock | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/theming/package.json b/lib/theming/package.json index ef040860c73..c3f1d3efaa7 100644 --- a/lib/theming/package.json +++ b/lib/theming/package.json @@ -20,9 +20,17 @@ }, "license": "MIT", "sideEffects": false, - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", - "types": "dist/types/index.d.ts", + "exports": { + ".": { + "require": "./dist/index.js", + "import": "./dist/index.mjs", + "types": "./dist/index.d.ts" + }, + "./package.json": "./package.json" + }, + "main": "dist/index.js", + "module": "dist/index.mjs", + "types": "dist/index.d.ts", "files": [ "dist/**/*", "README.md", @@ -30,7 +38,7 @@ "*.d.ts" ], "scripts": { - "prepare": "ts-node ../../scripts/prebundle.ts" + "prepare": "esrun ../../scripts/prepare/bundle.ts" }, "dependencies": { "@storybook/client-logger": "7.0.0-alpha.8", @@ -38,6 +46,7 @@ "memoizerific": "^1.11.3" }, "devDependencies": { + "@digitak/esrun": "^3.2.2", "@emotion/cache": "^11.7.1", "@emotion/is-prop-valid": "^1.1.2", "@emotion/react": "^11.8.1", diff --git a/yarn.lock b/yarn.lock index 580edb48b5e..19b6c87218d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9692,6 +9692,7 @@ __metadata: version: 0.0.0-use.local resolution: "@storybook/theming@workspace:lib/theming" dependencies: + "@digitak/esrun": ^3.2.2 "@emotion/cache": ^11.7.1 "@emotion/is-prop-valid": ^1.1.2 "@emotion/react": ^11.8.1