Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Fix pkg example express app #668

Merged
merged 2 commits into from
Apr 27, 2019

Conversation

DaneTheory
Copy link
Contributor

The Issue
Currently, following the instructions provided in the README result in pkg failing to build the executable. The error output references node7 as being an undefined target in package.json.

The Solution
pkg relies on pkg-fetch for retrieving Node versions to be used as targets in building executables. As of pkg-fetch v2.5, no node v7.x.x is listed as an available source. Changing node7 to node10 fixes this issue as it is available via pkg-fetch v2.5.

Additionally, this PR

  • Adds files/folders to .gitignore related to the example express app which should not be included in master.
  • Improves README ducumentation for example express app.

Currently, following the instructions provided in the README result in pkg failing to build the executable. The error output references "node7" as being an undefined target in package.json.

pkg relies on pkg-fetch for retrieving Node versions to be used as targets in building executables. As of pkg-fetch v2.5, no node v7.x.x is listed as an available source. Changing "node7" to "node10" fixes this issue as it is available via pkg-fetch v2.5.

Additionally, this PR:
*) Adds files/folders to .gitignore related to the example express app which should not be included in master.
*) Improves README ducumentation for example express app.
Changed `pkg` target from `node10` to `node8` in order to pass CI build errors due to missing peer dependency for babel at that version.
@DaneTheory
Copy link
Contributor Author

@igorklopov @leo Not sure what's causing the build errors. You both have contributed the most to this project. Any thoughts? Could be over looking something obvious.

@igorklopov igorklopov merged commit e736f85 into vercel:master Apr 27, 2019
@igorklopov
Copy link
Contributor

Thanks!

@DaneTheory
Copy link
Contributor Author

Np

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants