Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

chore(infrastructure): Fix all type errors except for ripple imports #951

Merged
merged 16 commits into from
Jun 25, 2019
Merged

Conversation

arichiv
Copy link
Contributor

@arichiv arichiv commented Jun 24, 2019

This fixes packages at the version needed to successfully import them into a local project. Does not fix the issue with relative ripple imports.
#936

This was disabled before due to existing failures. Let's clean them up :-)
#936
@codecov-io
Copy link

codecov-io commented Jun 24, 2019

Codecov Report

Merging #951 into rc0.14.0 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           rc0.14.0     #951   +/-   ##
=========================================
  Coverage     94.12%   94.12%           
=========================================
  Files            86       86           
  Lines          3644     3644           
  Branches        576      576           
=========================================
  Hits           3430     3430           
  Misses           90       90           
  Partials        124      124

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdb3f43...e6873db. Read the comment docs.

Copy link
Contributor Author

@arichiv arichiv left a comment

Choose a reason for hiding this comment

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

It's alive!

@@ -23,7 +23,7 @@
"@material/drawer": "^2.3.0",
"@material/list": "^2.3.0",
"classnames": "^2.2.6",
"focus-trap": "^4.0.2"
"focus-trap": "^5.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@moog16 see note on main package.json

@@ -22,7 +22,7 @@
"@material/dom": "^1.0.0",
"@material/react-button": "^0.13.0",
"classnames": "^2.2.6",
"focus-trap": "^4.0.2"
"focus-trap": "^5.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@moog16 see note on main package.json

@@ -135,6 +135,7 @@
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.7.0",
"eslint-plugin-typescript": "^0.14.0",
"focus-trap": "^5.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@moog16 I'm requiring this here to prevent sub-packages from installing it twice. I'm updating the version to the 5.x branch because dependencies have updated to use it and conflicts result if not.

Copy link

Choose a reason for hiding this comment

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

Let's remove this. The repository does not depend on focus-trap.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

Choose a reason for hiding this comment

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

ah you're right - in the tests. Thanks!

@@ -102,7 +102,7 @@
"@types/puppeteer": "^1.11.1",
"@types/react": "~16.7.22",
"@types/react-dom": "~16.0.11",
"@types/react-is": "^16.7.1",
"@types/react-is": "~16.5.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@moog16 I'm rolling this back to one released at the same time as @types/react ~16.7.22 due to conflicts.

@@ -93,7 +93,7 @@
"@material/typography": "^1.0.0",
"@types/chai": "^4.1.7",
"@types/classnames": "^2.2.6",
"@types/enzyme": "^3.1.15",
"@types/enzyme": "3.1.15",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@moog16 it turns out that this is the last type compatible version for @types/react ~16.7.22

@arichiv arichiv changed the title [WIP] Run Type Check on all builds Run Type Check on all builds Jun 24, 2019
@arichiv
Copy link
Contributor Author

arichiv commented Jun 24, 2019

Important note: this does not modernize all type dependencies within the repo, but does reduce existing errors to 0 and automatically checks to ensure future changes do not break anything :-)

Copy link

@moog16 moog16 left a comment

Choose a reason for hiding this comment

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

I just ran npm run build && node scripts/release/cp-pkgs.js and it doesn't seem to actually fix #857.

@arichiv
Copy link
Contributor Author

arichiv commented Jun 25, 2019

That's not good. I'll play around with it locally then :-(

@arichiv arichiv changed the title Run Type Check on all builds Fix all type errors except for ripple imports Jun 25, 2019
@arichiv
Copy link
Contributor Author

arichiv commented Jun 25, 2019

@moog16 https://travis-ci.com/material-components/material-components-web-react/jobs/210813262 shows a build that works, except for the (now detected) ripple errors.

@arichiv
Copy link
Contributor Author

arichiv commented Jun 25, 2019

#952 is a better fix. Will wait for commit.

@arichiv arichiv changed the title Fix all type errors except for ripple imports [BLOCKED] Fix all type errors except for ripple imports Jun 25, 2019
@arichiv arichiv changed the title [BLOCKED] Fix all type errors except for ripple imports [BLOCKED] chore(infrastructure): Fix all type errors except for ripple imports Jun 25, 2019
@moog16
Copy link

moog16 commented Jun 25, 2019

@arichiv #952 is merged

@arichiv arichiv changed the title [BLOCKED] chore(infrastructure): Fix all type errors except for ripple imports chore(infrastructure): Fix all type errors except for ripple imports Jun 25, 2019
@arichiv
Copy link
Contributor Author

arichiv commented Jun 25, 2019

@moog16 this is ready for merge then. The next PR will uncomment the travis-ci test and fix ripple imports. This fixes all other package version errors :-)

@moog16
Copy link

moog16 commented Jun 25, 2019

Manually tested...everything looks good :)

@moog16 moog16 merged commit c8d023f into material-components:rc0.14.0 Jun 25, 2019
@arichiv arichiv deleted the patch-1 branch June 25, 2019 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants