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

More reliable way to check on a clasp install #10

Merged
merged 1 commit into from
May 14, 2023

Conversation

ericnograles
Copy link
Contributor

Summary

There have been issues (#5, #9) reported with this generator not properly seeing globally installed versions of clasp. The original code actually was trying to pull the package.json of clasp from NODE_PATH, which often times is unreliable -- i.e. the developer could be running nvm, n, etc

This PR changes the way this dependency is checked. It does a straight execSync('clasp --version') which should cover the cases above as well as for people who just have one version of Node installed.

This will also make the README.md more consistent, as the direction can just be to do an npm i -g @google/clasp or yarn add global @google/clasp

- this will cover nvm and n installs
@murashi-sn murashi-sn merged commit 431ca4f into ijusplab:master May 14, 2023
murashi-sn added a commit that referenced this pull request May 14, 2023
@murashi-sn
Copy link
Collaborator

@ericnograles
Thanks! I modified README.

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.

None yet

2 participants