Skip to content

Conversation

@kenotron
Copy link
Contributor

@kenotron kenotron commented May 26, 2018

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ npm run change

Description of changes

Lots of the scripts in the build tasks are doing so with a lot of assumptions on where the node_modules will end up. This change restores the use of the require.resolve logic. Several of the scripts deps have to be done by using require.resolve from scripts while others like copy & sass tasks have to use a "cwd" version.

Another issue addressed here is address npm start along with a dependent package. All this is needed to split up demo from components in a follow up PR.

Focus areas to test

(optional)

Microsoft Reviewers: Open in CodeFlow

@kenotron kenotron requested a review from dzearing as a code owner May 26, 2018 05:50
const requireResolveCwd = require('../require-resolve-cwd');

if (!pattern) {
return null;
Copy link
Member

Choose a reason for hiding this comment

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

Would a build error be useful here or does this result in an 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.

It'll throw something like this:

TypeError: glob pattern string required

Now, I don't think we can ever get into this situation really because pattern is passed in from a key of a json object. I suppose I'm trying to be too cautious here.

@kenotron kenotron merged commit 779932c into microsoft:master May 29, 2018
Markionium added a commit to Markionium/office-ui-fabric-react that referenced this pull request May 29, 2018
* master:
  ComboBox: Fix styling when navigating menu with single select (microsoft#5017)
  Use require.resolve logic in builds & watch .js files from node_modules (microsoft#5007)
  Fix onitem click for contextual menu with anchor item (microsoft#5003)
  CommandBar example: fix link color on website (microsoft#4975)
kenotron added a commit to kenotron/fluentui that referenced this pull request May 29, 2018
cliffkoh pushed a commit that referenced this pull request May 30, 2018
#5026)

* Revert "Use require.resolve logic in builds & watch .js files from node_modules (#5007)"

This reverts commit 779932c.

* adding change files

* fix the change file type to 'none'
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants