From 203386b422e6968c23710389925c7bf9277909d5 Mon Sep 17 00:00:00 2001 From: ezmnysniper7 <102904781+ezmnysniper7@users.noreply.github.com> Date: Tue, 9 Aug 2022 00:58:50 +0800 Subject: [PATCH 1/3] Build lib/client-logger with ts-up --- code/lib/client-logger/package.json | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/code/lib/client-logger/package.json b/code/lib/client-logger/package.json index d0f4ae209603..376f1850d617 100644 --- a/code/lib/client-logger/package.json +++ b/code/lib/client-logger/package.json @@ -18,6 +18,23 @@ "type": "opencollective", "url": "https://opencollective.com/storybook" }, + "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/**/*", + "templates/**/*", + "*.js", + "*.d.ts" + ], "license": "MIT", "sideEffects": false, "main": "dist/cjs/index.js", @@ -31,7 +48,7 @@ ], "scripts": { "check": "tsc --noEmit", - "prepare": "node ../../../scripts/prepare.js" + "prepare": "../../../scripts/prepare/bundle.ts" }, "dependencies": { "core-js": "^3.8.2", @@ -43,5 +60,10 @@ "publishConfig": { "access": "public" }, + "bundler": { + "entries": [ + "./src/index.ts", + ], + "platform": "node" "gitHead": "bd59f1eef0f644175abdb0d9873ed0553f431f53" } From f3966def1b3bc2c77347f75f03eada4d210384ca Mon Sep 17 00:00:00 2001 From: ezmnysniper7 <102904781+ezmnysniper7@users.noreply.github.com> Date: Tue, 9 Aug 2022 01:37:08 +0800 Subject: [PATCH 2/3] Update package.json --- code/lib/client-logger/package.json | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/code/lib/client-logger/package.json b/code/lib/client-logger/package.json index 376f1850d617..d4aa8b660490 100644 --- a/code/lib/client-logger/package.json +++ b/code/lib/client-logger/package.json @@ -18,28 +18,19 @@ "type": "opencollective", "url": "https://opencollective.com/storybook" }, - "exports": { - ".": { - "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "license": "MIT", + "sideEffects": false, + "exports": { + ".": { + "require": "./dist/index.js", + "import": "./dist/index.mjs", + "types": "./dist/index.d.ts" }, - "./package.json": "./package.json" + "./package.json": "./package.json" }, "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "files": [ - "dist/**/*", - "templates/**/*", - "*.js", - "*.d.ts" - ], - "license": "MIT", - "sideEffects": false, - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", - "types": "dist/types/index.d.ts", "files": [ "dist/**/*", "README.md", @@ -63,7 +54,7 @@ "bundler": { "entries": [ "./src/index.ts", - ], - "platform": "node" + ] + }, "gitHead": "bd59f1eef0f644175abdb0d9873ed0553f431f53" } From e53cf4db9b46ca78ab0d5a57619f26625c577952 Mon Sep 17 00:00:00 2001 From: ezmnysniper7 <102904781+ezmnysniper7@users.noreply.github.com> Date: Wed, 10 Aug 2022 21:16:52 +0800 Subject: [PATCH 3/3] Update package.json --- code/lib/client-logger/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/client-logger/package.json b/code/lib/client-logger/package.json index d4aa8b660490..ffc701e307ef 100644 --- a/code/lib/client-logger/package.json +++ b/code/lib/client-logger/package.json @@ -53,7 +53,7 @@ }, "bundler": { "entries": [ - "./src/index.ts", + "./src/index.ts" ] }, "gitHead": "bd59f1eef0f644175abdb0d9873ed0553f431f53"