Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pwrnrd
Copy link

@pwrnrd pwrnrd commented Nov 1, 2019

Package.json now supports file paths which are arrays.

package.json now supports file paths as arrays.
Copy link
Collaborator

@Kehrlann Kehrlann left a comment

Choose a reason for hiding this comment

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

This is not a small PR, it requires some work.

  1. As you've noticed fro the CI< It must be compatible with older versions of Node, unfortunately you can't expand arrays.
  2. This requires additional tests to define what's the expected behavior, especially when requiring an alias that has several potential paths.

for (var alias in aliases) {
if (aliases[alias][0] !== '/') {
aliases[alias] = nodePath.join(base, aliases[alias])
if (aliases[alias][0] !== '/') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If aliases[alias] is an array, then you should do a different check on aliases[alias][0].

@Kehrlann
Copy link
Collaborator

Kehrlann commented Aug 7, 2020

This PR has gone stale, I'm closing it.

@Kehrlann Kehrlann closed this Aug 7, 2020
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