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

Scoped dependency fix #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

legitosaurus
Copy link

What does this PR do?

  1. Replaces the dependency fs.extra with fs-extra (fs.extra depends on fs-extra anyways).
  2. Uses fs.ensureSymlink to ensure that scoped dependencies have the scope directory created.

What issues does this PR fix or reference?

None - found while evaluating the package.

Previous Behavior

Links for scoped dependencies fail due to the scope/namespace directory not being created.

Example

./public/scripts/@microsoft/applicationinsights-web => ./node-modules/@microsoft/applicationinsights-web.

The folder being linked applicationinsights-web fails due to the parent directory ./public/scripts/@microsoft not being created/existing.

New Behavior

Dependencies that are scoped will have the scope/namespace directory created (if required).
Using the previous behavior example (@microsoft/applicationinsights-web), the directory ./public/scripts/@microsoft will be created first, then the symlink directory applicationinsights-web.

Tests written?

No

Change fs util library from fs.extra to fs-extra.
Use ensureSymlink instead of symlink to allow linking of scoped npm packages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant