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

Cannot use a bootstrapped installation of Node/npm when generating TypeScript #131

Open
AlexLandau opened this issue Apr 10, 2019 · 1 comment

Comments

@AlexLandau
Copy link
Contributor

(This is not a current concern for me; we ended up setting up a build that doesn't use gradle-conjure, but noticed this during the development process. I felt it was worth documenting here.)

It's common for Gradle builds involving Node to bootstrap it so the user doesn't need to have a correct version of it installed on their machine (e.g. as supported by gradle-node-plugin).

However, using gradle-conjure to generate, build, and publish a TypeScript package will run node and npm from the default PATH, with no way to specify another location AFAICT. (This includes the invocation of the TypeScript generator, for which the entry point is a Node.js script.) This requires developers and CI images to have Node already installed, and in theory could lead to different results across machines if different versions are installed.

It would be nice if the location of the node and npm executables to use could be configured, so they could be pointed at a bootstrapped installation.

@esword
Copy link
Contributor

esword commented Jan 18, 2021

I just hit this as well as I'm working on a PR and running tests. It is a pain to have things fail out of the box for unknown reasons. At least a comment in the CONTRIBUTING doc would be good.

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

No branches or pull requests

2 participants