fix(cli): version of binary optional dependencies should be pinned

This commit is contained in:
LongYinan 2021-09-19 22:38:37 +08:00
parent 893a91388c
commit 27dbca814c
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -46,7 +46,7 @@ export class PrePublishCommand extends Command {
await updatePackageJson(packageJsonPath, {
optionalDependencies: platforms.reduce(
(acc: Record<string, string>, cur) => {
acc[`${packageName}-${cur.platformArchABI}`] = `^${version}`
acc[`${packageName}-${cur.platformArchABI}`] = `${version}`
return acc
},
{},