We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
publishConfig.provenance
1 parent 666aa3a commit d79f2ffCopy full SHA for d79f2ff
.yarn/versions/2369a91f.yml
@@ -0,0 +1,2 @@
1
+releases:
2
+ "@yarnpkg/plugin-npm-cli": patch
packages/plugin-npm-cli/sources/commands/npm/publish.ts
@@ -108,7 +108,7 @@ export default class NpmPublishCommand extends BaseCommand {
108
const gitHead = await npmPublishUtils.getGitHead(workspace.cwd);
109
110
let provenance = false;
111
- if (workspace.manifest.publishConfig && `provenance` in workspace.manifest.publishConfig) {
+ if (workspace.manifest.publishConfig?.provenance) {
112
provenance = Boolean(workspace.manifest.publishConfig.provenance);
113
if (provenance) {
114
report.reportInfo(null, `Generating provenance statement because \`publishConfig.provenance\` field is set.`);
0 commit comments