@goldstack/utils-typescript-references
Advanced tools
Comparing version
@@ -14,4 +14,2 @@ "use strict"; | ||
const allPackages = (0, sharedUtils_1.getPackages)(cmdRes); | ||
const root = process.cwd(); | ||
console.log(root); | ||
for (const packageData of allPackages) { | ||
@@ -18,0 +16,0 @@ const packageDir = packageData.path; |
{ | ||
"name": "@goldstack/utils-typescript-references", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Utility for keeping TypeScript references in sync in the monorepo", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# TypeScript References Utility | ||
# TypeScript References Yarn Workspaces Sync Utility | ||
@@ -7,3 +7,3 @@ This library ensures that [project references](https://www.typescriptlang.org/docs/handbook/project-references.html) in TypeScript `tsconfig.js` files are automatically kept up to date in a project using **Yarn 2 workspaces**. | ||
- Add a list of all packages in the workspaces to the root `tsconfig.json` for the `"references"` attribute: | ||
1. Add a list of all packages in the workspaces to the root `tsconfig.json` for the `"references"` attribute: | ||
@@ -27,3 +27,3 @@ ```json | ||
- Update all the `"references"` in the `tsconfig.json` for all packages in the workspace so that it includes all the packages that it declares as a dependency in `package.json`. | ||
2. Update all the `"references"` in the `tsconfig.json` for all packages in the workspace so that it includes all the packages that it declares as a dependency in `package.json`. | ||
@@ -30,0 +30,0 @@ This package uses [@monorepo-utils/workspaces-to-typescript-project-references](https://github.com/azu/monorepo-utils/tree/master/packages/@monorepo-utils/workspaces-to-typescript-project-references#readme). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15824
-0.77%135
-1.46%