Skip to content

Commit

Permalink
Merge branch 'hf/fix/unpublish-npm' of github.com:FuelLabs/fuel-conne…
Browse files Browse the repository at this point in the history
…ctors into hf/fix/unpublish
  • Loading branch information
helciofranco committed Mar 26, 2024
2 parents 600290a + 3dafbc1 commit fd49e77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/unpublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ const DELETE_PACKAGES = process.env.DELETE_PACKAGES === 'true';
const dryRun = DELETE_PACKAGES ? '--force' : '--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 {
const packageContent = await readFile(
join(p.path, p.name, 'package.json'),
join(base, p.name, 'package.json'),
'utf8',
);
const pkg = JSON.parse(packageContent.toString());
Expand Down

0 comments on commit fd49e77

Please sign in to comment.