-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support project without root tsconfig and add new strict mode (#44
- Loading branch information
Showing
63 changed files
with
2,629 additions
and
2,157 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "update-ts-references", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "Updates TypeScript references automatically while using workspaces", | ||
"bin": "src/index.js", | ||
"scripts": { | ||
|
@@ -65,5 +65,6 @@ | |
"<rootDir>/test-scenarios/", | ||
"<rootDir>/test-run/" | ||
] | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "ts-ref-yaml-workspace", | ||
"version": "0.0.1", | ||
"private": true, | ||
"workspaces": [ | ||
"workspace-b", | ||
"shared/*", | ||
"utils/**/" | ||
], | ||
"devDependencies": { | ||
"typescript": "latest" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test-scenarios/ts-ref-noroot-yaml/shared/workspace-c/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "workspace-c", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"cross-env": "5.0.5" | ||
}, | ||
"peerDependencies": { | ||
"foo-a": "1.0.0" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
test-scenarios/ts-ref-noroot-yaml/shared/workspace-c/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test-scenarios/ts-ref-noroot-yaml/shared/workspace-d/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "workspace-d", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"workspace-c": "1.0.0" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
test-scenarios/ts-ref-noroot-yaml/shared/workspace-d/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"files": [], | ||
"compilerOptions": { | ||
/* Basic Options */ | ||
// "allowJs": true, | ||
"composite": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
withoutRootConfig: true | ||
packages: | ||
# all packages in subdirs of packages/ and components/ | ||
- 'workspace-a' | ||
# exclude packages that are inside test directories | ||
- '!**/tests/**' | ||
- '!workspace-ignore' |
7 changes: 7 additions & 0 deletions
7
test-scenarios/ts-ref-noroot-yaml/utils/foos/foo-a/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "foo-a", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"foo-b": "1.0.0" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
test-scenarios/ts-ref-noroot-yaml/utils/foos/foo-a/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
test-scenarios/ts-ref-noroot-yaml/utils/foos/foo-b/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "foo-b", | ||
"version": "1.0.0" | ||
} |
6 changes: 6 additions & 0 deletions
6
test-scenarios/ts-ref-noroot-yaml/utils/foos/foo-b/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
test-scenarios/ts-ref-noroot-yaml/utils/foos/tests/test-a/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "test-a", | ||
"version": "1.0.0" | ||
} |
6 changes: 6 additions & 0 deletions
6
test-scenarios/ts-ref-noroot-yaml/utils/foos/tests/test-a/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test-scenarios/ts-ref-noroot-yaml/workspace-a/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "workspace-a", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"workspace-b": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
"foo-a": "1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test-scenarios/ts-ref-noroot-yaml/workspace-b/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "workspace-b", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"cross-env": "5.0.5" | ||
}, | ||
"devDependencies": { | ||
"foo-b": "1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test-scenarios/ts-ref-noroot-yaml/workspace-ignore/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "ignore", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"cross-env": "5.0.5" | ||
}, | ||
"devDependencies": { | ||
"foo-b": "1.0.0" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
test-scenarios/ts-ref-noroot-yaml/workspace-ignore/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "ts-ref-yaml-workspace", | ||
"version": "0.0.1", | ||
"private": true, | ||
"workspaces": [ | ||
"workspace-b", | ||
"shared/*", | ||
"utils/**/" | ||
], | ||
"devDependencies": { | ||
"typescript": "latest" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test-scenarios/ts-ref-noroot/shared/workspace-c/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "workspace-c", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"cross-env": "5.0.5" | ||
}, | ||
"peerDependencies": { | ||
"foo-a": "1.0.0" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
test-scenarios/ts-ref-noroot/shared/workspace-c/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "workspace-d", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"workspace-c": "1.0.0" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
test-scenarios/ts-ref-noroot/shared/workspace-d/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"files": [], | ||
"compilerOptions": { | ||
/* Basic Options */ | ||
// "allowJs": true, | ||
"composite": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
packages: | ||
# all packages in subdirs of packages/ and components/ | ||
- 'workspace-a' | ||
# exclude packages that are inside test directories | ||
- '!**/tests/**' | ||
- '!workspace-ignore' |
Oops, something went wrong.