Skip to content

Commit

Permalink
fix: adjust dir
Browse files Browse the repository at this point in the history
  • Loading branch information
helciofranco committed Mar 21, 2024
1 parent bd56a98 commit ba5e1ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/unpublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ const DELETE_PACKAGES = process.env.DELETE_PACKAGES === 'true';
const dryRun = DELETE_PACKAGES ? '' : '--dry-run';

async function getPublicPackages() {
const packages = await readdir(join(__dirname, '../packages'), {
const base = join(__dirname, '../packages');
const packages = await readdir(base, {
withFileTypes: true,
});

const packagesNames = await Promise.all(
packages.map(async (p) => {
try {
Expand Down

0 comments on commit ba5e1ca

Please sign in to comment.