Distinguish the Node.js build in the same way the browser build is with the .node suffix to the tsconfig files it uses. This means tsconfig.node outputs to dist/node and tsconfig.browser outputs to dist/browser.