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

docs(core): fix deployment docs example code #23289

Merged
merged 1 commit into from
May 10, 2024

Conversation

tears330
Copy link
Contributor

Current Behavior

Using example code directly will result in an error because a PackageJson object cannot be parsed to the writeFileSync function.

Expected Behavior

Replace the writeFileSync fn with the writeJsonFile fn from '@nx/devkit'

@tears330 tears330 requested a review from a team as a code owner May 10, 2024 07:59
@tears330 tears330 requested a review from leosvelperez May 10, 2024 07:59
Copy link

vercel bot commented May 10, 2024

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

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview May 10, 2024 8:07am

@leosvelperez leosvelperez merged commit 1621763 into nrwl:master May 10, 2024
6 checks passed
@tears330 tears330 deleted the patch-1 branch May 11, 2024 16:05
FrozenPandaz pushed a commit that referenced this pull request May 13, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior

Using example code directly will result in an error because a
`PackageJson` object cannot be parsed to the `writeFileSync` function.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

Replace the `writeFileSync` fn with the `writeJsonFile` fn from
'@nx/devkit'

(cherry picked from commit 1621763)
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 May 18, 2024
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.

2 participants