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

Add package-json-path input to specify location of package.json #107

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

rwjblue
Copy link
Collaborator

@rwjblue rwjblue commented Sep 7, 2022

For projects without a package.json in the working directory root we currently do not support the ability to pin specific node-version | yarn-version | npm-version (we are only able to ensure that the given versions are preinstalled, but when node|yarn|npm are ultimately ran they might not use the specified). This is because we are only able to pin if we can find the package.json which contains the volta property (which we need to override).

This adds a new input package-json-path that can be used to specify where in a project the package.json is actually located. When not specified, we will use package.json (e.g. a package.json in the root of the working directory).

Closes #85

@rwjblue rwjblue added the enhancement New feature or request label Sep 7, 2022
@rwjblue rwjblue force-pushed the support-pinning-in-subdirs branch from 18ad453 to 57c390c Compare September 7, 2022 20:54
@rwjblue rwjblue force-pushed the support-pinning-in-subdirs branch 3 times, most recently from e4d95fe to dbd08ea Compare September 9, 2022 16:40
For projects without a `package.json` in the working directory root we
currently do not support the ability to pin specific `node-version` |
`yarn-version` | `npm-version` (we are only able to ensure that the
given versions are preinstalled, but when `node`|`yarn`|`npm` are
ultimately ran they might not use the specified). This is because we are
only able to pin if we can find the `package.json` which contains the
`volta` property (which we need to override).

This adds a new input `package-json-path` that can be used to specify
_where_ in a project the `package.json` is actually located. When not
specified, we will use `package.json` (e.g. a `package.json` in the root
of the working directory).
@rwjblue rwjblue force-pushed the support-pinning-in-subdirs branch from dbd08ea to 2f8c383 Compare September 9, 2022 16:43
@rwjblue rwjblue merged commit a1840d6 into master Sep 9, 2022
@rwjblue rwjblue deleted the support-pinning-in-subdirs branch September 9, 2022 16:59
@shamrin
Copy link

shamrin commented Sep 15, 2022

Thank you @rwjblue and @scalvert!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

package.json in a subdirectory
3 participants