Fix CommonJS build configs - separate ESM/CJS output directories#155
Merged
Fix CommonJS build configs - separate ESM/CJS output directories#155
Conversation
Co-authored-by: devbro1 <29712935+devbro1@users.noreply.github.com>
Co-authored-by: devbro1 <29712935+devbro1@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CommonJS build configurations
Fix CommonJS build configs - separate ESM/CJS output directories
Feb 24, 2026
…shmak into copilot/fix-cjs-build-configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
CJS and ESM builds outputted to the same
dist/directory, causing builds to overwrite each other. Applied the fix fromneko-configto all other packages.Changes per package:
tsup.config.ts
outDir: 'dist/esm'for ESM buildsoutDir: 'dist/cjs'for CJS buildsdts: truefor CJS buildspackage.json
dist/index.js→dist/cjs/index.js,dist/index.mjs→dist/esm/index.mjsindex.cjsreference toindex.jsAffected packages: neko-cache, neko-context, neko-helper, neko-http, neko-logger, neko-mailer, neko-orm, neko-queue, neko-router, neko-scheduler, neko-sql, neko-storage
Result: ESM and CJS builds now output to separate directories without conflicts.
Checklist
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
undefined/opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node --conditions node --conditions development /home/REDACTED/work/pashmak/pashmak/node_modules/tinypool/dist/entry/process.js l/openssl/includ./Release/.deps/Release/obj.target/test_extension/deps/ ndor/bin/git e --global /usr/local/bin/g--noprofile yarn buil�� celain --ignore-submodules | head -n 10 c0ad1c11 k/pashmak/pashmak/neko-http/node_modules/.bin/tsup e --global on3 /bin/sh(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.