Skip to content

Migration to npm#534

Open
gfontorbe wants to merge 2 commits into
masterfrom
gfontorbe/migration-to-npm
Open

Migration to npm#534
gfontorbe wants to merge 2 commits into
masterfrom
gfontorbe/migration-to-npm

Conversation

@gfontorbe

Copy link
Copy Markdown
Contributor

Removes yarn in favor of npm and adapts scripts and configs where appropriate

@gfontorbe gfontorbe added this to the v2.0.0 milestone Jun 5, 2026

@spoenemann spoenemann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

with:
node-version: '24'
- name: Update npm
run: npm install -g npm@latest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this necessary? If yes, shall we pin the version number?

Comment thread package.json
"private": true,
"scripts": {
"prepare": "yarn run clean && yarn run build",
"prepare": "npm run clean && npm run build",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggestion: remove the prepare script. In other projects, install really only installs dependencies. Building should be a separate step.


// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install"
"postCreateCommand": "npm install"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After removing the prepare script, this should become npm install && npm run build

Comment thread package.json
"scripts": {
"prepare": "yarn run clean && yarn run build",
"prepare": "npm run clean && npm run build",
"clean": "lerna run clean",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This can be replaced with npm run clean --workspaces. I think lerna is only used for publishing – we can kick it out later.

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