Skip to content

Commit

Permalink
πŸ› Fix root cause
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Oct 26, 2023
1 parent 1dfc887 commit 9078361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/doc-internal/fix-cdn-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ for (const readme of [
let content = readFileSync(readme, "utf-8");

content = content.replace(
/@huggingface[/]inference@\d([.]\d)?([.]\d)?/g,
/@huggingface[/]inference@\d+([.]\d+)?([.]\d+)?/g,
`@huggingface/inference@${inferencePackage.version}`
);
content = content.replace(/@huggingface[/]hub@\d([.]\d)?([.]\d)?/g, `@huggingface/hub@${hubPackage.version}`);
content = content.replace(/@huggingface[/]hub@\d+([.]\d+)?([.]\d+)?/g, `@huggingface/hub@${hubPackage.version}`);

writeFileSync(readme, Buffer.from(content));
}

0 comments on commit 9078361

Please sign in to comment.