Skip to content

Update pnpm, rush and add sinon as a dependency#275

Merged
aeisenberg merged 1 commit intogithub:masterfrom
aeisenberg:update-pnpm
Mar 10, 2020
Merged

Update pnpm, rush and add sinon as a dependency#275
aeisenberg merged 1 commit intogithub:masterfrom
aeisenberg:update-pnpm

Conversation

@aeisenberg
Copy link
Copy Markdown
Contributor

Note that pnpm no longer uses shrinkwrap.yaml. Instead it's using
pnpm-lock.yaml.

@aeisenberg aeisenberg force-pushed the update-pnpm branch 4 times, most recently from e6c0b32 to 2390c06 Compare March 9, 2020 23:09
@aeisenberg
Copy link
Copy Markdown
Contributor Author

Seems like I can't update pnpm without also updating rush and vice versa. However, there's a problem once I update both. The version of glob-promise is being set as 3.4.0_glob@7.1.6, which is invalid. I'm not sure if this is a rush problem or a pnpm problem (my guess is the latter). I should raise an issue with pnpm, but I'm finding it hard to isolate the problem.

@aeisenberg
Copy link
Copy Markdown
Contributor Author

It looks like this dependency syntax is specific to pnpm but it is not being recognized by rush.

Comment thread extensions/ql-vscode/package.json Outdated
"chai": "^4.2.0",
"css-loader": "~3.1.0",
"glob": "^7.1.4",
"glob": "7.0.0",
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 downgrade necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oops. Things were really broken for a while and I was trying a bunch of things. I didn't mean to commit that change.

"lib/semmle-io/tsconfig.json": "d2df609ec96013b8b05cec7edc86e73c3e473a55",
"lib/semmle-io/.rush/temp/package-deps_build.json": "610cbc3c43aaf3da66a78f33ec0844c7a6fd25a8"
},
"arguments": "gulp "
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 trailing space on purpose?

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.

Maybe it's autogenerated and meant to be that way, not sure...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure if it's necessary. Though, since it's autogenerated, I'd rather not change it.

"lib/semmle-vscode-utils/tsconfig.json": "d2df609ec96013b8b05cec7edc86e73c3e473a55",
"lib/semmle-vscode-utils/.rush/temp/package-deps_build.json": "cf773384acc45ec16dab6eed31cb84b76862389d"
},
"arguments": "gulp "
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.

same question about trailing space here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same.

Note that pnpm no longer uses shrinkwrap.yaml.

I'm not entirely happy with this solution because it makes a change
to the rush.ts build script in order to handle peer dependencies
coming from pnpm. Seems to work, though.
@aeisenberg aeisenberg merged commit 7638900 into github:master Mar 10, 2020
@aeisenberg aeisenberg deleted the update-pnpm branch November 24, 2020 22:29
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