From 23bf17c6ce3319a75263dae41ddae177fae08b3d Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Tue, 3 Sep 2024 16:42:21 +0200 Subject: [PATCH] Fix CJS entrypoint for manager code, and drop some unused things --- manager.js | 1 - package.json | 2 -- preview.js | 1 - tsup.config.ts | 2 +- 4 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 manager.js delete mode 100644 preview.js diff --git a/manager.js b/manager.js deleted file mode 100644 index 95565a7..0000000 --- a/manager.js +++ /dev/null @@ -1 +0,0 @@ -import "./dist/manager.mjs" diff --git a/package.json b/package.json index 0199c17..a9bef81 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "require": "./dist/index.js" }, "./manager": { - "types": "./dist/manager.d.ts", "import": "./dist/manager.mjs", "require": "./dist/manager.js" }, @@ -39,7 +38,6 @@ "./package.json": "./package.json" }, "files": [ - "*.js", "dist/**/*" ], "scripts": { diff --git a/preview.js b/preview.js deleted file mode 100644 index 0212703..0000000 --- a/preview.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./dist/preview.mjs" diff --git a/tsup.config.ts b/tsup.config.ts index 3c9d01a..5e1bdc8 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -71,7 +71,7 @@ export default defineConfig(async (options) => { configs.push({ ...commonConfig, entry: managerEntries, - format: ["esm"], + format: ["esm", "cjs"], target: BROWSER_TARGET, platform: "browser", external: globalManagerPackages,