Merge pull request #98 from shumaiOne/fix/npm-publish-provenance

fix(npm): add repository metadata to package.json for provenance verification
This commit is contained in:
Yiling-J
2026-06-12 18:49:48 +08:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -3,6 +3,10 @@
"version": "0.0.2",
"private": true,
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/shumaiOne/shumai.git"
},
"workspaces": [
"packages/*",
"apps/*"
+2
View File
@@ -161,6 +161,7 @@ async function buildPlatformPackages(
description: `${target.platform} ${target.arch} binary for ${appName}`,
os: [target.platform],
cpu: [target.arch],
repository: rootPackageJson.repository,
}
await writeFile(
@@ -289,6 +290,7 @@ child.on('error', (err) => {
files: ['bin', ...(hasPrisma ? ['prisma'] : [])],
dependencies,
optionalDependencies,
repository: rootPackageJson.repository,
}
await writeFile(