From a05d5d75446bbfacfae8aca9821f6fc05759a98f Mon Sep 17 00:00:00 2001 From: Dee Bryant Date: Sat, 1 Oct 2022 16:45:36 +1000 Subject: [PATCH] chore(telemetry): update package.json paths for compatibility with ts-up --- code/lib/telemetry/package.json | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/code/lib/telemetry/package.json b/code/lib/telemetry/package.json index 424b2f2aebf6..dd1878ded641 100644 --- a/code/lib/telemetry/package.json +++ b/code/lib/telemetry/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", @@ -31,7 +39,7 @@ ], "scripts": { "check": "../../../scripts/node_modules/.bin/tsc --noEmit", - "prep": "node ../../../scripts/prepare.js" + "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { "@storybook/client-logger": "7.0.0-alpha.34", @@ -50,5 +58,11 @@ "publishConfig": { "access": "public" }, + "bundler": { + "entries": [ + "./src/index.ts" + ], + "platform": "node" + }, "gitHead": "fc90fc875462421c1faa35862ac4bc436de8e75f" }