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(developer): work around devDependencies bug in npm 🍒 #6142

Merged
merged 8 commits into from
Jan 26, 2022

Conversation

mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Jan 23, 2022

Cherry-pick of #6074, #6111.

@keymanapp-test-bot skip

Relates to npm/cli#2921

This issue arises after moving from npm 6.x to 7.x or later. As the
build agents are still on 6.x, we have not yet seen this issue there.

As part of the release build for Keyman Developer, we bundle up some
files and do some work in a temp folder to prepare folders for release.
Even though we are only working with `dependencies` (e.g. using `npm
install --production`), packages under `devDependencies` are still
wrongly being checked by NPM. As we have two modules present in
`devDependencies` that are only available when in the repo path, we need
to remove them before attempting to continue. Yuck!

ref: npm/cli#3975 (comment)
ref: npm/cli#2921
This made the string processing needed much simpler than
when it was embedded within the Makefile, where horrible
escaping proved necessary.
@mcdurdin mcdurdin added this to the A15S22 milestone Jan 23, 2022
@mcdurdin mcdurdin added the cherry-pick Change already merged into another (stable) branch label Jan 23, 2022
@keymanapp-test-bot keymanapp-test-bot bot added the user-test-missing User tests have not yet been defined for the PR label Jan 23, 2022
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Jan 23, 2022

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot removed the user-test-missing User tests have not yet been defined for the PR label Jan 23, 2022
@mcdurdin mcdurdin modified the milestones: A15S22, B15S1 Jan 24, 2022
Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

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

lgtm

@mcdurdin mcdurdin merged commit fc1fe09 into stable-14.0 Jan 26, 2022
@mcdurdin mcdurdin deleted the fix/developer/cherry-pick/npm-devdependency-bug branch January 26, 2022 19:40
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 14.0.286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick Change already merged into another (stable) branch developer/compilers/ developer/ fix windows/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants