@goldstack/utils-typescript-references 0.3.25 → 0.3.27
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 +10 -0
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[](https://badge.fury.io/js/%40goldstack%2Futils-typescript-references)
|
|
2
|
+
|
|
1
3
|
# TypeScript References Yarn Workspaces Sync Utility
|
|
2
4
|
|
|
3
5
|
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**.
|
|
@@ -27,6 +29,13 @@ Running this script will:
|
|
|
27
29
|
|
|
28
30
|
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`.
|
|
29
31
|
|
|
32
|
+
This utility has been developed for the [Goldstack](https://goldstack.party) starter project builder. Check it out for starting your next project ❤️
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install @goldstack/utils-typescript-references
|
|
37
|
+
```
|
|
38
|
+
|
|
30
39
|
## Usage
|
|
31
40
|
|
|
32
41
|
Install as development dependency using
|
|
@@ -150,3 +159,4 @@ If these limitations or anything else are an issues, please [raise a ticket in G
|
|
|
150
159
|
- [@monorepo-utils/workspaces-to-typescript-project-references](https://github.com/azu/monorepo-utils/tree/master/packages/@monorepo-utils/workspaces-to-typescript-project-references#readme)
|
|
151
160
|
- [Optimizing multi-package apps with TypeScript Project References](https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440)
|
|
152
161
|
- [TypeScript Monorepos with Yarn](https://semaphoreci.com/blog/typescript-monorepos-with-yarn)
|
|
162
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/utils-typescript-references",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.27",
|
|
4
4
|
"description": "Utility for keeping TypeScript references in sync in a Yarn monorepo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -29,18 +29,17 @@
|
|
|
29
29
|
"compile": "tsc -p tsconfig.json",
|
|
30
30
|
"coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js --runInBand",
|
|
31
31
|
"prepublishOnly": "yarn run build",
|
|
32
|
-
"publish": "
|
|
32
|
+
"publish": "yarn npm publish --tolerate-republish",
|
|
33
33
|
"test": "jest --passWithNoTests --config=./jest.config.js --runInBand",
|
|
34
|
-
"version:apply": "
|
|
34
|
+
"version:apply": "yarn version $@ && yarn version apply",
|
|
35
35
|
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@goldstack/utils-log": "0.3.
|
|
38
|
+
"@goldstack/utils-log": "0.3.31",
|
|
39
39
|
"source-map-support": "^0.5.21",
|
|
40
40
|
"yargs": "^17"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@goldstack/utils-git": "0.2.22",
|
|
44
43
|
"@swc/core": "^1.15.8",
|
|
45
44
|
"@swc/jest": "^0.2.39",
|
|
46
45
|
"@types/jest": "^30.0.0",
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
"@types/source-map-support": "^0.5.10",
|
|
49
48
|
"@types/yargs": "^17.0.33",
|
|
50
49
|
"jest": "^30.2.0",
|
|
51
|
-
"rimraf": "^
|
|
50
|
+
"rimraf": "^6.1.2",
|
|
52
51
|
"typescript": "^5.9.3"
|
|
53
52
|
},
|
|
54
53
|
"publishConfig": {
|