Skip to content

chore(child-process): convert to typescript#3908

Merged
fahslaj merged 9 commits intolerna:mainfrom
amorscher:ts-fixes-child-process
Nov 28, 2023
Merged

chore(child-process): convert to typescript#3908
fahslaj merged 9 commits intolerna:mainfrom
amorscher:ts-fixes-child-process

Conversation

@amorscher
Copy link
Copy Markdown
Contributor

@amorscher amorscher commented Nov 21, 2023

Description

Convert all *.js files to typescript so we have full typechecking support for child-process lib. This enables to use import statements providing type awareness for all commands using lerna's child-process lib.

Motivation and Context

Make code more typesafe

How Has This Been Tested?

All tests still pass.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (change that has absolutely no effect on users)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

 - diff command changed to benefit from types using import statements
Copy link
Copy Markdown
Contributor

@fahslaj fahslaj left a comment

Choose a reason for hiding this comment

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

Let's wait on this until after #3909 is merged. (tagging @JamesHenry for visibility)

@amorscher
Copy link
Copy Markdown
Contributor Author

amorscher commented Nov 22, 2023

@fahslaj @JamesHenry just to clarify: I will port then the whole lib to typescript, replacing all js files with ts files. Not just adding a d.ts types file.

@JamesHenry JamesHenry marked this pull request as draft November 22, 2023 13:00
@amorscher amorscher changed the title chore(child-process): provide type definitions chore(child-process): convert to typescript Nov 22, 2023
@amorscher amorscher marked this pull request as ready for review November 22, 2023 23:31
@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Nov 23, 2023

@fahslaj fahslaj merged commit a8cf247 into lerna:main Nov 28, 2023
@fahslaj
Copy link
Copy Markdown
Contributor

fahslaj commented Nov 28, 2023

Thanks @amorscher !

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.

2 participants