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

Update rollup-plugin-node-resolve to 5.0.2 #3997

Conversation

mikeharder
Copy link
Member

@mikeharder mikeharder commented Jun 21, 2019

This PR updates dev dependency rollup-plugin-node-resolve from ^4.2.0 to ^5.0.2. This is required for compat with [email protected] (rollup/rollup-plugin-node-resolve#222).

Part of this PR was generated by running the following command:

cd sdk\servicebus\service-bus
rush add -p [email protected] --dev --caret --make-consistent

There are 3 meaningful changes:

  1. In all impacted package.json files, dev dependency rollup-plugin-node-resolve was updated from ^4.2.0 to ^5.0.2.
  2. Tree-shaking was disabled for test code. In [email protected], rollup started respecting the "sideEffects" field in package.json. Since our package.json sets "sideEffects=false", this also applies to test code, which causes all tests to be removed by tree-shaking.
  3. pnpm-lock.yaml was updated to the latest matching versions of all floated packages.

All other changes should just be re-arranging lines in package.json, which is done automatically by Rush.

CC: @ramya-rao-a, @jonathandturner

@mikeharder mikeharder marked this pull request as ready for review June 21, 2019 19:33
Copy link
Contributor

@daviwil daviwil left a comment

Choose a reason for hiding this comment

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

👍 Thanks Mike!

@mikeharder
Copy link
Member Author

/azp run js - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@bterlson
Copy link
Member

Looks good, but man am I looking forward to centralizing these rollup configs.

@mikeharder
Copy link
Member Author

/azp run js - eventhubs-client - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mikeharder
Copy link
Member Author

/azp run js - eventhubs-processor - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mikeharder
Copy link
Member Author

/azp run js - keyvault-keys - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mikeharder
Copy link
Member Author

/azp run js - keyvault-secrets - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mikeharder
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mikeharder
Copy link
Member Author

/azp run js - storage-blob - tests

@mikeharder
Copy link
Member Author

/azp run js - storage-file - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mikeharder
Copy link
Member Author

/azp run js - storage-queue - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mikeharder mikeharder force-pushed the rollup-plugin-node-resolve-disable-tree-shaking branch 3 times, most recently from d8ad15f to f389e50 Compare June 24, 2019 23:59
@mikeharder
Copy link
Member Author

/azp run js - storage-blob - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

- In [email protected], rollup started respecting the "sideEffects" field in package.json.
- Since our package.json sets `sideEffects=false`, this also applies to test code, which causes all tests to be removed by tree-shaking.
@mikeharder mikeharder force-pushed the rollup-plugin-node-resolve-disable-tree-shaking branch from f389e50 to ee12b93 Compare June 25, 2019 01:06
@mikeharder mikeharder merged commit 2eab11f into Azure:master Jun 25, 2019
@mikeharder mikeharder deleted the rollup-plugin-node-resolve-disable-tree-shaking branch June 25, 2019 01:10
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.

4 participants