.gitignore in specs repo should probably exclude all package*.json except in root
Open
Central-EngSys
Spec PR Tools
TypeSpec
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 143
Description
Given the TypeSpec guidelines and design, it seems that the Azure/azure-rest-api-specs(-pr) repos' root `.gitignore` files should ignore all `package.json` and `package-lock.json` except in the root where we want to manage dependencies centrally. This will help teams avoid checking in their files by accident if, for example, migrating from an internal AzDO repo.
```gitignore
**/package.json
**/package-lock.json
!/package.json
!/package-lock.json
```
Contributor guide
Assessment
This issue has not been assessed yet.