Skip to content

Commit af914e9

Browse files
committed
release v7.6.0
1 parent 88c2398 commit af914e9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/unpublish.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ versionText = versionText.replace(/\"/g, '')
88
const versions = versionText.split(',')
99

1010
const REGISTRY_URL = 'https://registry.npmjs.org'
11-
const command = `npm --registry=${REGISTRY_URL} unpublish`
11+
// const command = `npm --registry=${REGISTRY_URL} unpublish`
12+
const command = `npm --registry=${REGISTRY_URL} deprecate`
1213

1314
for (const { pkgName } of packages) {
1415
for (const version of versions) {
15-
execSync(`${command} ${pkgName}@${version}`, {
16-
stdio: 'inherit'
17-
})
16+
execSync(
17+
// `${command} ${pkgName}@${version}`,
18+
`${command} ${pkgName}@${version} "This version is deprecated, please use the latest version"`,
19+
{
20+
stdio: 'inherit'
21+
}
22+
)
1823
consola.success(`UnPublished ${pkgName}@${version}`)
1924
}
2025
}

0 commit comments

Comments
 (0)