Skip to content

Conversation

@danielbayley
Copy link
Contributor

@danielbayley danielbayley commented Feb 6, 2025

if (GITHUB_WORKSPACE) {
try {
({ packageManager } = JSON.parse(readFileSync(path.join(GITHUB_WORKSPACE, packageJsonFile), 'utf8')))
const content = readFileSync(path.join(GITHUB_WORKSPACE, packageJsonFile), 'utf8');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is confusing that packageJsonFile can be a yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is confusing that packageJsonFile can be a yaml

What do you suggest? @zkochan Rename all instances to packageFile?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could rename the setting to package_file or manifest_file but the feature will be rarely used, so I don't think it is worth a breaking change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is worth a breaking change

Maybe just a note in the README then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just a note in the README then?

@zkochan Documented in #157.

@zkochan zkochan merged commit 0cb0538 into pnpm:master Feb 6, 2025
25 of 27 checks passed
@danielbayley danielbayley deleted the package-yaml branch February 6, 2025 21:06
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.

2 participants