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

chore: upgrades minor and patch deps #420

Merged
merged 7 commits into from
Dec 21, 2020
Merged

chore: upgrades minor and patch deps #420

merged 7 commits into from
Dec 21, 2020

Conversation

itsdouges
Copy link
Collaborator

@itsdouges itsdouges commented Dec 20, 2020

This actually shows the type errors we saw when doing your interpolation changes @pgmanutd.

This is a pre-req for the runtime: automatic jsx fix.

@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, we configured it here. I had similar one in my user settings.

@@ -31,14 +31,14 @@
"version-nightly": "bash scripts/should-nightly-run.sh && npm version prerelease --no-git-tag-version --preid=$(git rev-parse HEAD)",
"postversion": "bash scripts/push-if-git.sh",
"bundlesize": "yarn build && yarn build:dead-code-elimination && size-limit",
"postinstall": "npx yarn-deduplicate"
"postinstall": "npx yarn-deduplicate && yarn --ignore-scripts"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we ignoring postinstall script for dependencies? Any specific reason? 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

only for postinstall - this is to stabalize the yarn lock after de-duping (and so it doesnt result in an infinite loop)

unfortunately there can be instances where running yarn after yarn de-dupe will result in the yarn lock file updating again

t.variableDeclaration('const', [t.variableDeclarator(sheetIdentifier, t.stringLiteral(sheet))])
);
const parent = meta.parentPath.findParent((path) => path.isProgram());
const parentBody = parent && (parent.get('body') as NodePath[]);
Copy link
Contributor

Choose a reason for hiding this comment

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

So all of these started breaking just after patch/minor bump ups? 😨

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah

@@ -21,11 +23,14 @@ export const getImportDeclarationCollection = ({
j: JSCodeshift;
collection: Collection<any>;
importPath: string;
}) =>
collection
}): Collection<ImportDeclaration> => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Love explicit typings over implicit one. TS compiler will be fast if we specify return types.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we could add an eslint rule for that too.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe later. Should we add card for this? Because it might require changes too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added #422

Copy link
Contributor

@pgmanutd pgmanutd left a comment

Choose a reason for hiding this comment

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

lgtm

@itsdouges itsdouges merged commit a840c32 into master Dec 21, 2020
@itsdouges itsdouges deleted the upgrade-deps branch December 21, 2020 21:08
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