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

frontend/pdf/print: set type to module in package.json #6571

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

BacLuc
Copy link
Contributor

@BacLuc BacLuc commented Dec 21, 2024

frontend/pdf/print: set type to module in package.json

And switch to esm syntax for the matchingTranslationKeys eslint plugin.

Because there cannot be dashes in an identifier, the rule is now called
'matchingTranslationKeys'.

jest-serializer-vue-tjw loads the vue config with require,
and seems to expect a commonjs module.
We switched to a esm module, and now the structure is not
pluginOptions.jestSerializer,
but
default.pluginOptions.jestSerializer
-> with the added export we can support vue itself and jest-serializer-vue-tjw.

This might enable us to update vite-plugin-comlink

Fix checked in dist files in pdf/dist/

Open:

  • find out why the snapshot indentation is different now

@BacLuc BacLuc requested a review from a team December 21, 2024 15:14
@BacLuc BacLuc added the deploy! Creates a feature branch deployment for this PR label Dec 21, 2024
Copy link

github-actions bot commented Dec 21, 2024

Feature branch deployment ready!

Name Link
😎 Deployment https://pr6571.ecamp3.ch/
🔑 Login [email protected] / test
🕒 Last deployed at Sun Dec 22 2024 11:20:32 GMT+0100
🔨 Latest commit b6142f4f07bb85efe3fa4c65cea7ac45508eca77
🔍 Latest deploy log https://github.com/ecamp/ecamp3/actions/runs/12453369732/job/34763471773
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

@BacLuc BacLuc force-pushed the frontend-switch-to-module branch from ab85dfd to 56ef60d Compare December 21, 2024 17:03
@BacLuc BacLuc changed the title frontend: set type to module in package.json frontend/pdf/print: set type to module in package.json Dec 21, 2024
@BacLuc BacLuc force-pushed the frontend-switch-to-module branch 2 times, most recently from e7b9659 to e932b28 Compare December 21, 2024 17:12
@BacLuc BacLuc marked this pull request as draft December 21, 2024 17:21
@BacLuc BacLuc force-pushed the frontend-switch-to-module branch from e932b28 to 30f8c7d Compare December 22, 2024 09:55
@BacLuc
Copy link
Contributor Author

BacLuc commented Dec 22, 2024

And switch to esm syntax for the matchingTranslationKeys eslint plugin.

Because there cannot be dashes in an identifier, the rule is now called
'matchingTranslationKeys'.

jest-serializer-vue-tjw loads the vue config with require,
and seems to expect a commonjs module.
We switched to a esm module, and now the structure is not
pluginOptions.jestSerializer,
but
default.pluginOptions.jestSerializer
-> with the added export we can support vue itself and jest-serializer-vue-tjw.

This might enable us to update vite-plugin-comlink
- ecamp#6220
And might help with
- ecamp#6038

Fix checked in dist files in pdf/dist/
@BacLuc BacLuc force-pushed the frontend-switch-to-module branch from 30f8c7d to b6142f4 Compare December 22, 2024 10:16
@BacLuc BacLuc marked this pull request as ready for review December 22, 2024 10:27
@BacLuc BacLuc requested a review from a team December 31, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy! Creates a feature branch deployment for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants