Skip to content

Commit

Permalink
fix: add registry while cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
kom-senapati committed Jan 25, 2025
1 parent d88c1b0 commit 6ac282a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/clone/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export const registerClone = (program: Command) => {
fs.writeFileSync(fullPath, fileContent.package_file.content_text)
}

const npmrcPath = path.join(dirPath, ".npmrc")
fs.writeFileSync(npmrcPath, "@tsci:registry=https://npm.tscircuit.com")

console.log(`Successfully cloned to ./${author}.${snippetName}/`)
} catch (error) {
if (error instanceof Error) {
Expand Down

0 comments on commit 6ac282a

Please sign in to comment.