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

feat: use type=module in generated projects #389

Closed
wants to merge 2 commits into from

Conversation

cexbrayat
Copy link
Member

@cexbrayat cexbrayat commented Nov 26, 2023

This PR is blocked for now because of:

The PR is on top of #386

The current strategy is to use type: module in the package.json file to avoid the CJS warning from Vite 5.
This forces us to:

The generated applications were failing out of the box, and went unnoticed as nightwatch is not built on CI.

I took inspiration from https://github.com/nightwatchjs/nightwatch-plugin-vue and https://github.com/nightwatchjs/create-nightwatch to make the setup a bit lighter and functional (we now let nightwatch start vite directly).

The pnpm test script should now work for every combination generated.
For Cypress with Typescript, we needed to add a `module` option to the root tsconfig (see cypress-io/cypress#24111).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant