monorepo-utils icon indicating copy to clipboard operation
monorepo-utils copied to clipboard

project-refereneces: sort and write

Open azu opened this issue 5 years ago • 1 comments

https://github.com/azu/monorepo-utils/blob/e81ccef54a436d0df5f322ffc405356a865febfa/packages/%40monorepo-utils/workspaces-to-typescript-project-references/src/index.ts#L89

currently, assert references without sorting. This behavior may cause false positives. We need to sort and assert.

Another option:

Write the sorted result to tsconfig.json. It will be breaking change.

https://github.com/eBayClassifiedsGroup/update-ts-references/blob/0bd3d5ed586d748677f6d9a9ad3f133ae3dcd6c2/src/update-ts-references.js#L99

azu avatar Jan 22 '21 01:01 azu

  • [x] sort and assert can be a patch release https://github.com/azu/monorepo-utils/pull/45
  • [ ] sort and write will be a major release

azu avatar Jan 22 '21 01:01 azu