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

feat: workspace:^ and workspace:~ aliases (#3116) #3368

Merged
merged 5 commits into from Apr 21, 2021

Conversation

javier-garcia-meteologica
Copy link
Contributor

This is an attempt to support for workspace:^ and workspace:~ aliases.

Copy link
Member

@zkochan zkochan left a comment

Choose a reason for hiding this comment

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

Please add changesets

packages/exportable-manifest/src/index.ts Outdated Show resolved Hide resolved
packages/exportable-manifest/src/index.ts Outdated Show resolved Hide resolved
@@ -351,12 +351,16 @@ test('convert specs with workspace protocols to regular version ranges', async (
'is-positive': '1.0.0',
'lodash.delay': '~4.1.0',
odd: 'workspace:is-odd@*',
rd: 'workspace:ramda@^',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm having problem with this dependency, the test passes if I remove rd: 'workspace:ramda@^' and ramda references. The error message says that is-negative could not be found.

Cannot resolve workspace protocol of dependency "is-negative" because this dependency is not installed

Do you know how could I troubleshoot this error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's fixed now. Among the things that I modified to make it work, I had to change the versions of test packages to match those specified in verdaccio/node_modules/storage-cache.

Is this ok? Or am I just fooling myself?

packages/exportable-manifest/src/index.ts Outdated Show resolved Hide resolved
packages/exportable-manifest/src/index.ts Outdated Show resolved Hide resolved
packages/exportable-manifest/src/index.ts Outdated Show resolved Hide resolved
packages/npm-resolver/src/index.ts Outdated Show resolved Hide resolved
@zkochan zkochan added this to the v6.2 milestone Apr 21, 2021
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.

None yet

2 participants