Azure / Azure/azure-sdk-tools

.gitignore in specs repo should probably exclude all package*.json except in root

Open
#7,588 3 comments 0 reactions 1 assignee Claimed by @mikeharder View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.