Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion esbuild.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const require = topLevelCreateRequire(import.meta.url);
// Bin builds:
esbuild.build({
entryPoints: ["src/bin/main.ts"],
outfile: "dist/bin/codesandbox.js",
outfile: "dist/bin/codesandbox.cjs",
bundle: true,
format: "cjs",
platform: "node",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"repository": "git+https://github.com/codesandbox/codesandbox-sdk.git",
"type": "module",
"bin": {
"csb": "dist/bin/codesandbox.js"
"csb": "dist/bin/codesandbox.cjs"
},
"module": "./dist/esm/index.js",
"main": "./dist/esm/index.js",
Expand Down Expand Up @@ -50,7 +50,7 @@
},
"types": "./dist/esm/index.d.ts",
"scripts": {
"build": "npm run clean && npm run build:esbuild && npm run build:cjs:types && npm run build:esm:types && chmod +x dist/bin/codesandbox.js",
"build": "npm run clean && npm run build:esbuild && npm run build:cjs:types && npm run build:esm:types && chmod +x dist/bin/codesandbox.cjs",
"build:cjs": "tsc -p ./tsconfig.build-cjs.json",
"build:esm": "tsc -p ./tsconfig.build-esm.json",
"build:esbuild": "node esbuild.cjs",
Expand Down