Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix tsconfig errors #306

Merged
merged 13 commits into from
Nov 30, 2023
Merged

fix tsconfig errors #306

merged 13 commits into from
Nov 30, 2023

Conversation

shamilovtim
Copy link
Member

@shamilovtim shamilovtim commented Nov 21, 2023

Reason for PR

  • Several annoying and intermittent errors
  • tsconfigs were verbose and repeated
  • Noticed some of the packages lacked sourcemaps

Solution

  • Enable sourcemaps
  • Extend from a base tsconfig
  • Pass minimal required settings (e.g. outDir and declarationDir)
  • Overwrite settings as needed

Copy link

codesandbox bot commented Nov 21, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link
Contributor

github-actions bot commented Nov 21, 2023

TBDocs Report

✅ No errors or warnings

@web5/api

  • Project entry file: packages/api/src/index.ts

Updated @ 2023-11-24T05:42:46.572Z - Commit: 58d6abf

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

Merging #306 (eae1b93) into main (dce370d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #306   +/-   ##
=======================================
  Coverage   91.77%   91.77%           
=======================================
  Files          73       73           
  Lines       15764    15765    +1     
  Branches     1448     1448           
=======================================
+ Hits        14468    14469    +1     
  Misses       1270     1270           
  Partials       26       26           
Components Coverage Δ
api 96.69% <ø> (ø)
common 95.00% <ø> (ø)
credentials 94.32% <ø> (ø)
crypto 100.00% <ø> (ø)
dids 88.75% <ø> (ø)
agent 88.08% <100.00%> (+<0.01%) ⬆️
identity-agent 56.81% <ø> (ø)
proxy-agent 58.43% <ø> (ø)
user-agent 55.22% <ø> (ø)

@shamilovtim
Copy link
Member Author

Unblocks #305 which has the strange tsc errors this fixes

Copy link
Member

@mistermoe mistermoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! it might be worth checking to make sure that the vscode workspace still works as expected. @frankhinek want to take a look at that?

@shamilovtim
Copy link
Member Author

@mistermoe looks like it works. tested auto import and a run command:

Screen.Recording.2023-11-24.at.12.33.40.AM.mov

@mistermoe
Copy link
Member

nice!

@frankhinek frankhinek force-pushed the tshamilov/cleanup-tsconfigs-pt1 branch from e2f03e3 to eae1b93 Compare November 30, 2023 01:26
Copy link
Contributor

@frankhinek frankhinek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@frankhinek frankhinek merged commit d4bf741 into main Nov 30, 2023
29 of 30 checks passed
@frankhinek frankhinek deleted the tshamilov/cleanup-tsconfigs-pt1 branch November 30, 2023 01:32
finn-tbd pushed a commit that referenced this pull request Mar 19, 2024
* cleanup tsc settings
* add base tsconfig to DRY up tsconfigs. build sourcemaps for all.
* DRY up remaining repeated fields
* strict false for web5spec
* Minor fix to remove trailing commas from JSON
---------


Co-authored-by: Frank Hinek <[email protected]>
finn-tbd pushed a commit that referenced this pull request Mar 19, 2024
* cleanup tsc settings
* add base tsconfig to DRY up tsconfigs. build sourcemaps for all.
* DRY up remaining repeated fields
* strict false for web5spec
* Minor fix to remove trailing commas from JSON
---------


Co-authored-by: Frank Hinek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants