Skip to content

Scoped dependency fix#5

Open
legitosaurus wants to merge 2 commits into
fourlabsldn:masterfrom
legitosaurus:master
Open

Scoped dependency fix#5
legitosaurus wants to merge 2 commits into
fourlabsldn:masterfrom
legitosaurus:master

Conversation

@legitosaurus
Copy link
Copy Markdown

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