Conversation
|
| @@ -1,3 +0,0 @@ | |||
| #!/usr/bin/env node | |||
.github/workflows/ci.yml
Outdated
| run: | ||
| corepack yarn install | ||
| - run: corepack yarn run typecheck | ||
| - run: corepack yarn workspace @uppy/companion lint:ts |
There was a problem hiding this comment.
Extra strict typescript options, but just for linting, as to remain compatible with status quo outputs for now
|
I ran it through Devin Review, it has some comments: https://app.devin.ai/review/transloadit/uppy/pull/6179 |
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
That was helpful! Added the patches to address. Also kicked another review and added patches for the findings then. Each time covered by added regression tests. |
This workflow outputs the differences between two versions of the code in the 'lib' folders after a push or pull request event.
Diff output filesNo diff |
|
I cannot believe that the dist js output diff is empty 🤔 |
- improve types - simplify, undo some unnecessary complications - use tsconfig.lint.json by default when developing (merge it into tsconfig.json) - fix some subtle bugs
we don't need to test AWS internal code
else it's very confusing when developing, because we will get errors when running yarn build, but not in vscode
|
Ok I now consider this PR finished and the typescript support is complete. Do you want to have a look @Murderlon or shall we merge it? I would probably release this a major as a safe guard because the refactor is quite extensive and in case we accidentally broke something people will be prepared, as opposed to a minor/patch. If we release it as a major, we should probably also include other things like #6175 |
|
|
||
| const adaptData = (userResponse, results) => { | ||
| if (!results) { | ||
| function isZoomRecordingFile(value: unknown): value is ZoomRecordingFile { |
There was a problem hiding this comment.
a bit crazy refactor here but i trust it's correct.
|
@kvz what do you think? release it as a major or minor? |
|
I'm thinking a Major, and indeed including all the things from our major wishlist |
from companion and remove script rewrite-dts-extensions.js
|
I have resolved the feedback and I think this is ready to merge as soon as we want to go major release of companion. we should consider whether we should merge/release #6248 first |
Supersedes #6178.
This branch keeps the exact same final content as #6178, but splits history for reviewability:
chore(companion): rename source and test files from .js to .ts(puregit mv, no content changes)feat(companion): port Companion to TypeScript(actual content/type/schema/build updates)Validation note:
ts-companion(7b5b16a298690b0492de4cc4fab744f998b45570).