Open nateweller opened 13 hours ago
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
fix/scan/build
branch.
jetpack-mu-wpcom
changes, also add define( 'JETPACK_MU_WPCOM_LOAD_VIA_BETA_PLUGIN', true );
to your wp-config.php
file.To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack fix/scan/build
bin/jetpack-downloader test jetpack-mu-wpcom-plugin fix/scan/build
Interested in more tips and information?
jetpack rsync
command to sync your changes to a WoA dev blog.Thank you for your PR!
When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation :robot:
The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.
Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance!
@anomiex What do you think about this alternate to https://github.com/Automattic/jetpack/pull/40262?
I had to extend tsconfig.base.json
instead of tsconfig.tsc.json
to get tests passing. Is that change appropriate for the use case of this package?
My ultimate hope and dream for the scan package is to have a reusable TS lib that exports types, functions, and translatable strings related to Jetpack Scan features. Initially for use across Jetpack and Jetpack Protect plugins, and then potentially sharing code with Calypso if/as possible and useful.
I know the inclusion of @wordpress/i18n
complicates things. I appreciate any notes! Thanks 😄
Edit: Could we use the declaration-only base to export types, and then have consumers (Jetpack, Jetpack Protect) be responsible for compiling the TS?
Following up on https://github.com/Automattic/jetpack/pull/40262, this PR ensures the
js-packages/scan
project actually builds thebuild
folder usingtsc
.Proposed changes:
tsconfig.json
made in https://github.com/Automattic/jetpack/pull/39754/files#diff-1a0db43237e720fa764bf7d3052b6c672d5c26f7c7479154dca7c215f16270fatsconfig.base.json
instead oftsconfig.tsc.json
.tsc
.Other information:
Jetpack product discussion
https://github.com/Automattic/jetpack/pull/40262
Does this pull request change what data or activity we track or use?
No
Testing instructions:
jetpack build js-packages/scan
and validate thebuild
directory is generated.