-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: update dependencies to support @wordpress/scripts
#209
Conversation
This reverts commit 40624a6.
I ran tests in all repos, first trying to run all the scripts, and then doing some functional tests running the plugins. Here's what I found: ps - I don't know which of these thigns are expected and I didn't investigate how to fix anything yet. Scripts
Functional tests
Blocks are working, but the console is full of warnings like this
This is what I've found so far |
I've updated the comment above. Blocks are working |
@wordpress/scripts
All repos updated with the latest
I'm seeing this everywhere too. I think it's due to updating the React dependency to v18. It's kind of annoying because it clogs up the console, but doesn't seem to cause any actual issues. I think we should address this with a refactor to remove
This was already happening to me on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the issues with the js formatter and ts checker, everything seems to be working well across all plugins.
I wasn't able to fully test the npm run release
command due to environment restrictions:
[16:29:07] [semantic-release] › ⚠ This run was not triggered in a known CI environment, running in dry-run mode.
[16:31:01] [semantic-release] › ℹ This test run was triggered on the branch chore/update-dependencies, while semantic-release is configured to only publish from release, alpha, hotfix/image-credits-hpp, hotfix/subs-limiting, hotfix/update-js-version-strategy, hotfix/update-subtitle-selector, epic/consolidate-data-flows, epic/ras-acc, epic/ras-acc-test-dependency-updates, therefore a new version won’t be published.
[newspack-scripts@5.6.0-alpha.8] No release published.
It does reach the release script, which only got formatting changes. It's safe to assume it'll work fine but we should keep an eye out when running it live.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's important to note that these changes break all our wizards and blocks on WP <= 6.5.5, as also reported by @chickenn00dle. Not sure how we could prevent the issue, since it looks like an issue with dependencies changes from WP itself.
@miguelpeixe Thanks for the additional testing and review!
I think we'll probably not want to use the Still, I kept the script around so that we could have the option to switch our code style to more closely match
Yeah, I think there's no way around this for now. Once we release this PR as a production NPM package and merge the other PRs, we can test by creating new alphas for every repo, which will be needed anyway in order to release the updates in all repos to production.
Yes, this was actually the initial motivation behind these dependency updates. Initially, before @adekbadek found the Because updating to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this massive work and thorough explanations!
I've tested a few more times across all plugins and it's running smoothly 💯
🎉 This PR is included in version 5.5.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Some long-needed housecleaning. This PR supports changes across all Newspack repositories which rely on
newspack-scripts
for build, linting, and release processes. Changes encompassed:calypso-build
lts/*
(the latest Long Time Support version—currently v20)These updates should not result in any functional changes. Relates to the following PRs in other repos:
How to test the changes in this Pull Request:
chore/update-dependency
branches from the repos listed above to your local dev machine.nvm use
to switch your Node to the latest compatible version (you are using NVM, right?).rm -rf node_modules && npm ci --legacy-peer-deps && composer install
to reinstall PHP and JS dependencies.npm run watch
to start webpack in devserver/watch modenpm run build
to build production JS/CSS filesnpm run lint
to lint JS and SCSS files (hint: if these aren't returning any results, try temporarily introducing some code changes which will throw errors, such as an earlyreturn;
in JS or single quotes in SCSS)npm run fix:js
to correct autofixable ESLint errors (may need to introduce temporary changes to test this)npm run format:js
to autoformat JS according to Prettier rules: Note that this will probably result in lots of changes, but we don't need to commit those changes at this time.npm run format:scss
to autoformat SCSS according to Stylelint rules (may need to introduce temporary changes to test this)npm run release
to test prerelease processesnpm run test
to run JS unit tests (Plugin, Blocks, Newsletters, Popups only)npm run typescript:check
to runtsc
(Plugin, Blocks only)Other information: