[ ] Chore (a non-breaking change which is related to package maintenance)
[x] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
CLI is broken due to the way @prismicio/client is treated since 0.1.12. This can be reproduced anywhere by simply running: npx prismic-ts-codegen@0.1.16.
This PR solves it by using the CJS export of the CLI which has proved more stable in the case of Slice Machine (init, start). This forces us however to inline ESM-only dependencies (see Vite config)
Resolves: #56
Checklist:
[ ] My change requires an update to the official documentation.
[x] All TSDoc comments are up-to-date and new ones have been added where necessary.
Types of changes
Description
CLI is broken due to the way
@prismicio/client
is treated since0.1.12
. This can be reproduced anywhere by simply running:npx prismic-ts-codegen@0.1.16
.This PR solves it by using the CJS export of the CLI which has proved more stable in the case of Slice Machine (init, start). This forces us however to inline ESM-only dependencies (see Vite config)
Resolves: #56
Checklist: