Skip to content

Commit

Permalink
chore: maybe enable publishing provenance (#144)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck authored Jun 26, 2024
1 parent 44715bd commit 97cfff2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit 97cfff2

Please sign in to comment.