Skip to content

🪄 feat: use symbolic link for README.md and packages/vitest-preview/README.md#11

Merged
nvh95 merged 1 commit intomainfrom
readme-symlink
Oct 25, 2022
Merged

🪄 feat: use symbolic link for README.md and packages/vitest-preview/README.md#11
nvh95 merged 1 commit intomainfrom
readme-symlink

Conversation

@nvh95
Copy link
Copy Markdown
Owner

@nvh95 nvh95 commented Oct 25, 2022

Summary/ Motivation (TLDR;)

We are using monorepo for this project. The package vitest-preview stays at packages/vitest-preview and has it own packages/vitest-preview/README.md (to display on npmjs.com).

However, we want users to see that file as well when they first access https://github.com/nvh95/vitest-preview. That means we need to duplicate README.md at both locations:

  • packages/vitest-preview/README.md
  • README.md

This raises a problem with maintenance, we need to manually update the other file when making changes to one file. This is annoying. But luckily, thanks to symbolic link, this issue can be resolved.

Chores

  • Sym link packages/vitest-preview/README.md to README.md

@netlify
Copy link
Copy Markdown

netlify bot commented Oct 25, 2022

Deploy Preview for vitest-preview canceled.

Name Link
🔨 Latest commit 8ec708d
🔍 Latest deploy log https://app.netlify.com/sites/vitest-preview/deploys/63574ea17f9f380009109454

@nvh95 nvh95 changed the title 🪄 feat: use symbolic link for README.md 🪄 feat: use symbolic link for README.md and packages/vitest-preview/README.md Oct 25, 2022
@nvh95 nvh95 merged commit e29392f into main Oct 25, 2022
@nvh95 nvh95 deleted the readme-symlink branch October 25, 2022 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant