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: add d.ts file compilation to testkit #2585

Merged
merged 7 commits into from
Nov 20, 2024
Merged

Conversation

uziab
Copy link
Contributor

@uziab uziab commented Nov 13, 2024

Resolves #

@uziab uziab requested review from talkor and laviomri November 13, 2024 13:34
@uziab uziab requested a review from a team as a code owner November 13, 2024 13:34
Copy link
Contributor

@laviomri laviomri left a comment

Choose a reason for hiding this comment

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

looking good!

packages/testkit/package.json Outdated Show resolved Hide resolved
@talkor talkor changed the title add d.ts file compilation to testkit chore: add d.ts file compilation to testkit Nov 13, 2024
Copy link
Contributor

@YossiSaadi YossiSaadi left a comment

Choose a reason for hiding this comment

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

Had a few comments
also, in general, you're not using eslint, prettier, etc. can you add it sometime to the library? it might have ts, lint, or format errors that we're not catching currently

packages/testkit/package.json Outdated Show resolved Hide resolved
@@ -17,13 +27,14 @@
},
"scripts": {
"test:e2e": "npx playwright test",
"build": "tsc",
"build": "tsc && tsc --project tsconfig.esm.json",
Copy link
Contributor

Choose a reason for hiding this comment

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

is this for a different esm and cjs? why we need cjs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have clients that use commonjs. i.e the monolith. So we need it for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

the monolith can use esm as far as I know
@talkor, does it did any trouble to you with @vibe/core when you used esm only?

Copy link
Member

Choose a reason for hiding this comment

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

Nope, all good

Copy link
Contributor

Choose a reason for hiding this comment

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

can you separate the cases? @uziab
have a release with esm only and add cjs if the need arises?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry no, The monolith e2e project can't handle esm, so we would need cjs.

Copy link
Contributor

Choose a reason for hiding this comment

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

got ya, ok let's leave it for now and try to tackle it later on

packages/testkit/tsconfig.esm.json Outdated Show resolved Hide resolved
packages/testkit/package.json Outdated Show resolved Hide resolved
packages/testkit/package.json Outdated Show resolved Hide resolved
packages/testkit/tsconfig.json Show resolved Hide resolved
packages/testkit/tsconfig.json Outdated Show resolved Hide resolved
packages/testkit/tsconfig.json Outdated Show resolved Hide resolved
packages/testkit/tsconfig.json Outdated Show resolved Hide resolved
@uziab uziab requested a review from YossiSaadi November 18, 2024 15:08
yarn.lock Outdated Show resolved Hide resolved
@uziab uziab requested a review from YossiSaadi November 20, 2024 13:29
Copy link
Contributor

@YossiSaadi YossiSaadi left a comment

Choose a reason for hiding this comment

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

💯

@uziab uziab merged commit 3af508a into master Nov 20, 2024
8 of 9 checks passed
@uziab uziab deleted the add-declaration-files branch November 20, 2024 13:57
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.

4 participants