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

chore: maybe enable publishing provenance #144

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@
"!/**"
],
"publishConfig": {
"provenance": true
},
"publishReplace": {
"$comment": "this section defines how `tools/make-dist-package.cjs` works",
"private": false,
"main": "./yarn-plugin-cyclonedx.cjs",
Expand Down
3 changes: 2 additions & 1 deletion tools/write-dist-manifest.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const structuredClonePolyfill =
function main (outputFile) {
const manifestSource = JSON.parse(readFileSync(manifestSourceFile))
const manifest = structuredClonePolyfill(manifestSource)
for (const [k, v] of Object.entries(manifestSource.publishConfig ?? {})) {
for (const [k, v] of Object.entries(manifestSource.publishReplace ?? {})) {
if (k[0] === '$') {
continue
}
Expand All @@ -48,6 +48,7 @@ function main (outputFile) {
}
manifest[k] = v
}
manifest.publishReplace = undefined
// dist is expected to be a bundle - no deps need install
manifest.dependencies = {}
// move deps to devDeps - for documentation purposes
Expand Down
Loading