Skip to content

Commit

Permalink
Don't use mjs files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoseley committed Jan 31, 2025
1 parent a5185d7 commit 3f71479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/gensx-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.1",
"description": "`GenSX command line tools",
"bin": {
"gensx": "./dist/run.mjs"
"gensx": "./dist/run.js"
},
"main": "./dist/index.mjs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"directories": {
"lib": "src",
Expand Down
2 changes: 1 addition & 1 deletion packages/gensx-cli/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineConfig(({ command }) => ({
},
formats: ["es", "cjs"],
fileName: (format, entryName) =>
`${entryName}.${format === "es" ? "mjs" : "cjs"}`,
`${entryName}.${format === "es" ? "js" : "cjs"}`,
},
rollupOptions: {
external: (id) => !id.startsWith(".") && !id.startsWith("/"),
Expand Down

0 comments on commit 3f71479

Please sign in to comment.