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: revamp build setup + bump/prune deps #1369

Merged
merged 81 commits into from
Nov 24, 2023
Merged

Conversation

cristiand391
Copy link
Member

@cristiand391 cristiand391 commented Oct 6, 2023

This PR includes a lot of changes:

build setup

  • use wireit for build/test scripts
  • update browser targets
  • node CJS distributable is build with tsc instead of babel
  • removes old node ESM build (W-14321329 to re-enable)
  • clean up tsconfig files (1 for src, 1 for test folders)

deps

  • removes deprecated babel plugins
  • bump a deps/devDeps

others

  • add wireit cache action to the tests workflows
  • adds DEVELOPING.md file with instructions about how to build and run tests locally
  • fix some TS errors triggered after updating tsconfigs
  • remove querystring module with URLSearchParams
    @W-14243612@

cristiand391 and others added 29 commits October 2, 2023 14:04
[skip ci]
can't use `@jest/globals` import b/c tests are executed with karma too,
which will throw `Uncaught Error: Do not import `@jest/globals` outside
of the Jest test environment.
replace `concurrently` setup with wireit's service feature
this doesn't seem to be used, added in commit 9605d4b
remove deprecated babel plugins and `regenerator-runtime`, update browser target and deps
@cristiand391 cristiand391 mentioned this pull request Oct 12, 2023
Copy link
Collaborator

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

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

approved with minor comments

throw new Error(
'Set SF_HUB_USERNAME, SF_OAUTH2_JWT_KEY and SF_OAUTH2_CLIENT_ID env vars.',
);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

DEVELOPING.md should probably say in a stronger way that sf is required.

* @param interval Polling interval in milliseconds
* @param timeout Polling timeout in milliseconds
* @returns {Promise<Record[]>} A promise that resolves to an array of records
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

thank you for the comments

@cristiand391 cristiand391 merged commit 1c80f15 into 3.0 Nov 24, 2023
1 check failed
@cristiand391 cristiand391 deleted the cd/revamp-build-scripts branch November 24, 2023 15:18
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.

None yet

5 participants