Skip to content

Commit

Permalink
Merge pull request #126 from chromaui/fix-dist-config
Browse files Browse the repository at this point in the history
Fix CJS entrypoint for manager code, and drop some unused things
  • Loading branch information
ghengeveld authored Sep 3, 2024
2 parents 63803c9 + 23bf17c commit b52343c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion manager.js

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"require": "./dist/index.js"
},
"./manager": {
"types": "./dist/manager.d.ts",
"import": "./dist/manager.mjs",
"require": "./dist/manager.js"
},
Expand All @@ -39,7 +38,6 @@
"./package.json": "./package.json"
},
"files": [
"*.js",
"dist/**/*"
],
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion preview.js

This file was deleted.

2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b52343c

Please sign in to comment.