Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node): add default build configuration #15542

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Mar 8, 2023

This PR adds a development config for Node build and serve targets, and fixes an issue where esbuildOptions in prod is being overridden to generate .cjs instead of .js files.

Current Behavior

npx nx build --prod generates .cjs files

Expected Behavior

npx nx build --prod generates .js files, and is the same as npx nx build

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Mar 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
nx-dev ⬜️ Ignored (Inspect) Mar 8, 2023 at 5:25PM (UTC)

@nx-cloud
Copy link

nx-cloud bot commented Mar 8, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit bb9e445. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@jaysoo jaysoo force-pushed the fix/node-default-build-config branch 2 times, most recently from 230b1ab to 3cba27b Compare March 8, 2023 15:29
@jaysoo jaysoo force-pushed the fix/node-default-build-config branch from 3cba27b to 09122d8 Compare March 8, 2023 16:15
@jaysoo jaysoo force-pushed the fix/node-default-build-config branch from 09122d8 to bb9e445 Compare March 8, 2023 17:23
@jaysoo jaysoo enabled auto-merge (squash) March 8, 2023 17:26
@jaysoo jaysoo merged commit a69f8ab into nrwl:master Mar 8, 2023
@jaysoo jaysoo deleted the fix/node-default-build-config branch March 8, 2023 17:34
FrozenPandaz pushed a commit that referenced this pull request Mar 8, 2023
nartc pushed a commit to nartc/nx that referenced this pull request Mar 9, 2023
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants