@tinkoff-monorepo/fix-ts-references 1.8.9 → 1.8.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @tinkoff-monorepo/fix-ts-references
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
All of the dependencies for linked packages in monorepo should be specified in `tsconfig.references` file in order to let `tsc` to build packages and their dependencies in the right order within single compilation pass.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -14,14 +14,14 @@ yarn add fix-ts-references
|
|
|
14
14
|
npx fix-ts-references --fix
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Script will do next:
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
With flag `--fix`:
|
|
20
20
|
|
|
21
|
-
1.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
1. Remove references from references list for package if dependency has been removed from `package.json`
|
|
22
|
+
2. Add new references to references list for package if dependency has been added to `package.json`
|
|
23
|
+
3. Setting `tsconfig.compilerOptions.rootDir=./src` if it is not set
|
|
24
|
+
4. Remove reference from project reference solution if package has been removed from repository
|
|
25
|
+
5. Add reference to project reference solution if package has been added to the repository
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Without flag `--fix` will just show list of errors
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkoff-monorepo/fix-ts-references",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@tinkoff-monorepo/pkgs-collector-workspaces": "1.8.
|
|
20
|
+
"@tinkoff-monorepo/pkgs-collector-workspaces": "1.8.13",
|
|
21
21
|
"signale": "^1.4.0",
|
|
22
22
|
"tslib": "^2.0.3"
|
|
23
23
|
}
|