Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: support package.yaml #156

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

danielbayley
Copy link
Contributor

@danielbayley danielbayley commented Feb 6, 2025

@@ -49,7 +50,11 @@ async function readTarget(opts: {

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants