Skip to content

Add repository.directory field to package.json#439

Merged
dbaeumer merged 1 commit intomicrosoft:masterfrom
felixfbecker:directory
Dec 13, 2018
Merged

Add repository.directory field to package.json#439
dbaeumer merged 1 commit intomicrosoft:masterfrom
felixfbecker:directory

Conversation

@felixfbecker
Copy link
Contributor

This adds a directory field to the repository objects in package.json. This is a new field for monorepos specced in this npm RFC: https://github.com/npm/rfcs/blob/d39184cdedc000aa8e60b4d63878b834aa5f0ff0/accepted/0000-monorepo-subdirectory-declaration.md

It enables cross-repository go-to-definition on Sourcegraph, as Sourcegraph can resolve packages to a specific directory in the angular monorepo.
Clients that don't know this field simply ignore it (as with any other arbitrary field in package.json).

@dbaeumer
Copy link
Member

@felixfbecker thanks. Wasn't aware of this.

@dbaeumer dbaeumer merged commit f9cfe06 into microsoft:master Dec 13, 2018
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.

2 participants