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

jsx: trade yarn for npm #4598

Merged
merged 1 commit into from Oct 4, 2023
Merged

jsx: trade yarn for npm #4598

merged 1 commit into from Oct 4, 2023

Conversation

minrk
Copy link
Member

@minrk minrk commented Oct 3, 2023

we're already using npm at one level, it's a bit confusing to use a different package manager in a subdirectory. Yarn doesn't really give us anything that npm doesn't, so be consistent.

For consistency, stop blocking package-lock.json from git, now that we are dropping yarn.lock.

- `npm run build`: Installs all dependencies and bundles the application
- `npm run hot`: Bundles the application and runs a mock (serverless) version on port 8000
- `npm run lint`: Lints JSX with ESLint
- `npm run lint --fix`: Lints and fixes errors JSX with ESLint / formats with Prettier
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to trade the lint steps here for pre-commit, but not in this PR.

we're already using npm at the top-level, using both yarn and npm complicates things

- stop excluding package-lock.json from the repo
@yuvipanda
Copy link
Contributor

I ran python -m build to test this and verified that npm is invoked jupyterhub-5.0.0.dev0/share/jupyterhub/static/js/admin-react.js is part of the built tarball.

@yuvipanda yuvipanda merged commit 6f0e4e1 into jupyterhub:main Oct 4, 2023
19 checks passed
@minrk
Copy link
Member Author

minrk commented Oct 4, 2023

@yuvipanda thanks! We also have a test for that, having mixed it up a few times in the past.

@minrk minrk deleted the un-yarn branch October 4, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants