-
Notifications
You must be signed in to change notification settings - Fork 24
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
next release #158
base: main
Are you sure you want to change the base?
next release #158
Conversation
c18ab45
to
fd932c9
Compare
Instead use the provider list fetched on prepublish.
7801465
to
b4c4e38
Compare
# [0.2.0-next.2](v0.2.0-next.1...v0.2.0-next.2) (2022-04-26) ### Bug Fixes * npm unignore prefetched-providers.json ([2dde20d](2dde20d))
# [0.2.0-next.3](v0.2.0-next.2...v0.2.0-next.3) (2022-04-26) ### Bug Fixes * use prepack to download provider list ([d421b84](d421b84))
const filePath = path.join(__dirname, "../.prefetched-providers.json"); | ||
const file = await readFile(filePath); | ||
return JSON.parse(file); | ||
const rawProviders = require("./../prefetched-providers.json"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see... So the providers content is coupled with the NPM package itself.
Maybe we have to compromise until this issue's being fixed?
gatsbyjs/gatsby#35415
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It gets downloaded when the package is published. It could maybe be downloaded on install...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This approach will also make the most sense when making a more general remark plugin I think.
No description provided.