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

♻ merge pdf package in main package #121

Merged
merged 4 commits into from
Nov 22, 2021
Merged

♻ merge pdf package in main package #121

merged 4 commits into from
Nov 22, 2021

Conversation

hgwood
Copy link
Member

@hgwood hgwood commented Nov 19, 2021

This simplifies setup and avoids a recuring issue when running "npm install" in the main package would result in infinite looping of calling the postinstall script. It also makes sensei publishable to npm more easily.

The PDF part was originally split for the main package to avoid having to install Chrome twice when developing, often in cases where I wasn't even touching the PDF part. However, as mentioned by @patou, a better technique to do that is to run npm install with PUPPETEER_SKIP_CHROMIUM_DOWNLOAD defined.

This also downgrades puppeteer from 11.0.0 to 10.4.0 to align to the version used by decktape 3.3.0 and allow npm to dedupe puppeteer and reduce the number of Chrome installs to 1. It does work in contrary from what I said in #120.

Due to puppeteer/puppeteer#6586 (comment), chrome was not being downloaded when running npm install. I had to fork and patch decktape. Let's hope the patch is merged and released. See astefanutti/decktape#237. Otherwise we could publish the fork.

This simplifies setup and avoids a recuring issue when running "npm install" in the main package would result in infinite looping of calling the postinstall script. It also makes sensei publisable to npm more easily.

Due to puppeteer/puppeteer#6586 (comment), chrome was not being downloaded when running npm install. I had to fork and patch decktape. Let's hope the patch is merged and released. See astefanutti/decktape#237. Otherwise we could publish the fork.
@hgwood hgwood self-assigned this Nov 19, 2021
@hgwood
Copy link
Member Author

hgwood commented Nov 19, 2021

Build fails because the alpine-chrome base image that we use seems to not be able to handle the git npm dependency. This should be fixed soon though because the maintainer of decktape juste merged my PR 👍.

@hgwood
Copy link
Member Author

hgwood commented Nov 22, 2021

Still no release of decktape and I don't want to keep this PR up because it modifies package-lock.json and will conflict with other upgrades, so I merging it and will revisit when decktape has a new release. :)

@hgwood hgwood merged commit 0fa06d2 into main Nov 22, 2021
@hgwood hgwood deleted the merge_packages branch November 22, 2021 13:43
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.

2 participants