Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jan 8, 2025
1 parent db1dcd5 commit 15a9019
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/test-package-manager.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function copyProject(toDir) {
}

async function fixManifest(projectDir) {
let tars = await globby('*.tgz', { ignore: ['**/node_modules', '**/dist'] });
let tars = await globby('*.tgz', { cwd: projectDir });

let manifestPath = join(projectDir, 'package.json');
let contents = readFileSync(manifestPath).toString();
Expand All @@ -82,7 +82,11 @@ async function fixManifest(projectDir) {
delete json.dependenciesMeta;
delete json.volta;

console.log(tars);
function tarByPrefix(hyphenated) {
return tars.find((name) => name.startsWith(hyphenated));
}

// TODO:

writeFileSync(manifestPath, JSON.stringify(json, null, 2));
}
Expand Down

0 comments on commit 15a9019

Please sign in to comment.