azu / monorepo-utils

A collection of utilities for monorepo/lerna. Tools for TypeScript project references etc..
164 stars 10 forks source link

workspaces-to-typescript-project-references: Don't add `references` if there are none #75

Closed alecmev closed 1 year ago

alecmev commented 1 year ago

Currently a references: [] is added, which is redundant, as --check passes without it being there.

azu commented 1 year ago

https://github.com/azu/monorepo-utils/blob/103ae872df1b4ce67e3819e29b43d0b4dfc2c101/packages/%40monorepo-utils/workspaces-to-typescript-project-references/src/index.ts#L155-L189

I have no strong opinion against removing references: []. Perhaps I wrote it as references: [] because it is simpler to code as [].