Skip to content

Conversation

@grypez
Copy link
Contributor

@grypez grypez commented Aug 22, 2024

Closes #9

Refs: #21, #31

Copies untransformed the dependencies of src/endoify.mjs into the header of dist/endoify.mjs.

grypez added 6 commits August 21, 2024 22:44
The CI build job requires that yarn build succeeds with node 20.
The CI test job (essentially) requires that yarn test succeeds with
node 18 and 20. The test job does not have access to the build
artifacts from the build job, which allows the build and test jobs
to run in parallel.

In order to allow the shims package to test its built shims,
we prefix the shims test command with `build && `, which, as a
command called during the CI test job, runs with both node 18 and
20. Therefore, although our CI suggests the intended workflow for
the ocap monorepo is "build with 20, run with 18 or 20", the tests
tighten the constraint in the shims package specifically to "build
and run with 18 or 20".

As @SMotaal noted, this change in commit is sufficient to meet the
tighter constraint.
@grypez grypez requested a review from a team as a code owner August 22, 2024 06:28
@grypez grypez requested a review from SMotaal August 22, 2024 06:35
@grypez grypez enabled auto-merge (squash) August 22, 2024 06:40
Copy link
Contributor

@SMotaal SMotaal left a comment

Choose a reason for hiding this comment

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

LGTM

@grypez grypez merged commit 59c537a into main Aug 22, 2024
@grypez grypez deleted the grypez/bundle-endoify-2 branch August 22, 2024 19:31
Comment on lines +16 to +17
// eslint-disable-next-line no-empty-function
teardown(): void {},
Copy link
Member

Choose a reason for hiding this comment

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

For future reference, this is equivalent and unoffensive to the linter:

Suggested change
// eslint-disable-next-line no-empty-function
teardown(): void {},
teardown(): void {
return undefined;
},

SMotaal added a commit that referenced this pull request Aug 28, 2024
…es (#39)

This is the first PR to land instead of #37 before #40 and #41:

- Removes extraneous files from `packages/shims/src`
  - For consistency — we will keep forgetting them otherwise
- Adds `typescript` in `devDependencies`
  - For consistency - needed since #34
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.

shims: Bundle external dependencies into endoify.mjs

4 participants