Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

🐛do not package optionalDependencies - #143

Merged
katydecorah merged 3 commits into
masterfrom
rm-opdep
Jun 13, 2019
Merged

katydecorah merged 3 commits into
masterfrom
rm-opdep

Conversation

@katydecorah

@katydecorah katydecorah commented Jun 7, 2019 •

Copy link
Copy Markdown
Contributor

When we run npm run build a script does a lot of things to get dr-ui ready for npm. This PR removes our optionalDependencies from being included in the npm version of our package.json.

While updating dr-ui on /mapbox-gl-js, I ran into an issue where yarn said:

error Couldn't find package "@mapbox/web-analytics@^0.5.1" required by "@mapbox/[email protected]" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Since we're already removing devDependencies from package.json for the npm version, I think it's safe to also remove optionalDependencies.

We can also remove jest from package.json since that's only needed for development.


How to test:

  1. pull down branch
  2. run npm run build
  3. open pkg/package.json
  4. you should not see optionalDependencies or jest in the file

@colleenmcginnis colleenmcginnis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense to me @katydecorah!

@katydecorah
katydecorah merged commit 7b564de into master Jun 13, 2019
@katydecorah
katydecorah deleted the rm-opdep branch June 13, 2019 16:12
katydecorah pushed a commit that referenced this pull request Jun 19, 2019
* master:
  0.16.2
  Prepare 0.16.2
  0.16.1
  Prepare 0.16.1
  0.16.0
  Prepare 0.16.0
  [search] update search-ui, add loader, increase debounce length (#145)
  0.15.2
  Prepare 0.15.2
  🐛do not package optionalDependencies and jest (#143)
  add snapshot tests (#136)
  0.15.1
  Prepare 0.15.1
  0.15.0
  Prepare 0.15.0
  [search] adds segment tracking for queries and clicks (#140)
katydecorah pushed a commit that referenced this pull request Jun 25, 2019
* master:
  [PageLayout] add data attribute to prevent Swiftype from indexing sidebar content (#146)
  0.16.2
  Prepare 0.16.2
  0.16.1
  Prepare 0.16.1
  0.16.0
  Prepare 0.16.0
  [search] update search-ui, add loader, increase debounce length (#145)
  0.15.2
  Prepare 0.15.2
  🐛do not package optionalDependencies and jest (#143)
katydecorah pushed a commit that referenced this pull request Jun 25, 2019
* master:
  [PageLayout] add data attribute to prevent Swiftype from indexing sidebar content (#146)
  0.16.2
  Prepare 0.16.2
  0.16.1
  Prepare 0.16.1
  0.16.0
  Prepare 0.16.0
  [search] update search-ui, add loader, increase debounce length (#145)
  0.15.2
  Prepare 0.15.2
  🐛do not package optionalDependencies and jest (#143)
katydecorah pushed a commit that referenced this pull request Jul 2, 2019
* master:
  0.17.0
  Prepare 0.17.0
  [version-sort] do not push pre-releases of the latest stable version (#148)
  🐛make compare-versions a dependency (#142)
  [PageLayout] add data attribute to prevent Swiftype from indexing sidebar content (#146)
  0.16.2
  Prepare 0.16.2
  0.16.1
  Prepare 0.16.1
  0.16.0
  Prepare 0.16.0
  [search] update search-ui, add loader, increase debounce length (#145)
  0.15.2
  Prepare 0.15.2
  🐛do not package optionalDependencies and jest (#143)
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