Deploying an extension from github #5001
Unanswered
asmodeus812
asked this question in
Q&A
Replies: 1 comment
-
There is also this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i am having a few questions on the workflow on pulling an extension from github. It is possible to do something like
CocInstall https://github.com/repo/ext
, and the extension will be pulled, however the build process i think is not handled well by coc.Here from the source.
We can see that if we have a github uri it will try to run
install
which is great, however, it will also try to build with--omit=dev
(or the equivalent for yarn and pnmp) which is wrong. The reason being is that for the scripts i.e. esbuild to correctly manage to build the extension from github we have to also pull the devDependencies, so they can be built into the lib bundle.The implementation with
--omit=dev
is fine if you are pulling from npm, but it is not fine if you are building from github, am i correct to suggest that this has to be done only in case npm is used as a registry, otherwise we have to simply runnpm install
on the github repo, which will correctly pull all dependencies, then run the post install scripts, esbuild will bundle the devDeps in /lib/index.js and the extension should build just fine. Thanks @fannheywardBeta Was this translation helpful? Give feedback.
All reactions