cwd
runme
nestjs
id
version
01HJS4EAEA9N1QEW6CD88S03R4
v2.2
npm install vs pnpm install vs bun install
pnpm install --prefer-offline
vite vs esbuild vs bun build
npx --offline [email protected] src/main.ts \
--bundle --platform=node --minify --outfile=dist/esbuild-nestjs \
--external:class-transformer \
--external:class-validator \
--external:@nestjs/microservices \
--external:@nestjs/websockets/socket-module
du -bh dist/esbuild-nestjs
time bun build src/main.ts \
--target node --minify --outfile=dist/bun-nestjs \
--external class-transformer \
--external class-validator \
--external @nestjs/microservices \
--external @nestjs/websockets/socket-module
du -bh dist/bun-nestjs
Bun Build - Single Binary
time bun build src/main.ts \
--compile --minify --outfile=dist/bun-sf-nestjs \
--external class-transformer \
--external class-validator \
--external @nestjs/microservices \
--external @nestjs/websockets/socket-module
du -bh dist/bun-sf-nestjs
cat ../bun-examples/makroLib.ts
cat ../bun-examples/makro.ts
bun build ../bun-examples/makro.ts
cat src/app.controller.spec.ts
pnpm exec jest src/app.controller.spec.ts
bun test src/app.controller.spec.ts