Skip to content

feat: support package.yaml - #156

Merged
zkochan merged 1 commit into
pnpm:masterfrom
danielbayley:package-yaml
Feb 6, 2025
Merged

zkochan merged 1 commit into
pnpm:masterfrom
danielbayley:package-yaml

Conversation

@danielbayley

@danielbayley danielbayley commented Feb 6, 2025 •

Copy link
Copy Markdown
Contributor

Comment thread src/install-pnpm/run.ts
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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