From 710c040f602a103407b865b13e2aafbea1bb82c2 Mon Sep 17 00:00:00 2001 From: Alina Sireneva Date: Fri, 29 Dec 2023 16:55:34 +0300 Subject: [PATCH] ci: fixed publish.js script im retarded --- scripts/publish.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/publish.js b/scripts/publish.js index 1e52b53f..305e30ec 100644 --- a/scripts/publish.js +++ b/scripts/publish.js @@ -90,7 +90,7 @@ async function main(arg = process.argv[2]) { console.log('[i] Using registry %s', REGISTRY) - const published = [] + const publishedPkgs = [] if (arg === 'all' || arg === 'updated') { for (const pkg of listPackages()) { @@ -103,12 +103,12 @@ async function main(arg = process.argv[2]) { } await publishSinglePackage(pkg) - published.push(pkg) + publishedPkgs.push(pkg) } } else { for (const pkg of arg.split(',')) { await publishSinglePackage(pkg) - published.push(pkg) + publishedPkgs.push(pkg) } } @@ -117,7 +117,7 @@ async function main(arg = process.argv[2]) { // for a github release, and also generate a title const tarballs = [] - for (const pkg of published) { + for (const pkg of publishedPkgs) { const dir = path.join(__dirname, '../packages', pkg, 'dist') const tar = cp.execSync('npm pack -q', { cwd: dir }) tarballs.push(path.join(dir, tar.toString().trim()))