Skip to content

Commit

Permalink
Fix update-readme to use module.name in stead of global name
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Jan 22, 2025
1 parent 274a02d commit 94986d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/update-readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ const rootDependencies: string[] = [
for (const module of modulesData) {
if (module.primitive == null) continue;

const packageName = `@solid-primitives/${name}`;
const packageName = `@solid-primitives/${module.name}`;

if (module.workspace_deps.length === 0) {
rootDependencies.push(packageName);
}

const data = {} as PackageData;

data.Name = `[${name}](${githubURL}${name}#readme)`;
data.Name = `[${module.name}](${githubURL}${module.name}#readme)`;
// Detect the stage and build size/version only if needed
if (data.Stage == "X" || data.Stage == 0) {
data.Size = "";
Expand All @@ -55,7 +55,7 @@ const rootDependencies: string[] = [
}
data.Stage = `[![STAGE](${stageShieldBaseURL}${module.primitive.stage}.json)](${stageShieldLink})`;
data.Primitives = module.primitive.list
.map(prim => `[${prim}](${githubURL}${name}#${prim.replace(/ /g, "-").toLowerCase()})`)
.map(prim => `[${prim}](${githubURL}${module.name}#${prim.replace(/ /g, "-").toLowerCase()})`)
.join("<br />");
// Merge the package into the correct category
const cat = categories[module.primitive.category];
Expand Down

0 comments on commit 94986d6

Please sign in to comment.