File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,18 @@ versionText = versionText.replace(/\"/g, '')
88const versions = versionText . split ( ',' )
99
1010const 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
1314for ( 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}
You can’t perform that action at this time.
0 commit comments