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

chore: remove production and add shallow clone #3356

Merged
merged 2 commits into from
May 18, 2023
Merged

Conversation

ovflowd
Copy link
Member

@ovflowd ovflowd commented May 17, 2023

This PR fixes the behaviour mentioned here: nodejs/nodejs.org#5381 as when doing Next.js builds, Next.js requires development dependencies, such as TypeScript in order to operate.

This PR removes the outdated/deprecated --production flag and adds --prefer-online, it also makes the install be based on the lockfile by making it npm ci instead of npm install.

This PR also makes the clone process shallow as we don't need the git history here. We make a depth of 2 as Nextra/Next.js requires that.

@ovflowd
Copy link
Member Author

ovflowd commented May 17, 2023

cc @richardlau

@ovflowd ovflowd requested a review from richardlau May 18, 2023 07:05
@richardlau richardlau merged commit 45189aa into nodejs:main May 18, 2023
@richardlau
Copy link
Member

File has been manually updated on the server.

@ovflowd ovflowd deleted the patch-4 branch May 18, 2023 14:39
targos pushed a commit to targos/nodejs-build that referenced this pull request May 21, 2023
Removes the outdated/deprecated `--production` flag and adds `--prefer-online`. 
Make the install based on the lockfile by using `npm ci` instead of `npm install`.

Also make the clone process shallow as we don't need the git history here.
We make a depth of 2 as Nextra/Next.js requires that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants