Skip to content

Commit

Permalink
chore: deprecate warning added for @razorpay/i18nify
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-khanna committed Jan 3, 2024
1 parent 05211e2 commit b02e8c8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/publishToNpm.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ const npmRcContent = `@razorpay:registry=https://registry.npmjs.org/
fs.writeFileSync(NPMRC_PATH, npmRcContent);

try {
execa.commandSync('npm unpublish -f @razorpay/i18nify', {
cwd: './',
stdio: 'inherit',
});
execa.commandSync(
'npm deprecate @razorpay/i18nify "This package has been deprecated, use @razorpay/i18nify-js instead."',
{
cwd: './',
stdio: 'inherit',
},
);
} finally {
fs.rmSync(NPMRC_PATH);
}

0 comments on commit b02e8c8

Please sign in to comment.