Repository navigation
[TS migration] Changed all the scripts to use ts-node instead of node - #36000
jasperhuangg merged 2 commits into
Conversation
| "start": "npx react-native start", | ||
| "web": "scripts/set-pusher-suffix.sh && concurrently npm:web-proxy npm:web-server", | ||
| "web-proxy": "node web/proxy.js", | ||
| "web-proxy": "npx ts-node web/proxy.js", |
There was a problem hiding this comment.
| "web-proxy": "npx ts-node web/proxy.js", | |
| "web-proxy": "ts-node web/proxy.js", |
Does putting npx make difference? I was able to run with only ts-node, could you test all scripts with only ts-node?
There was a problem hiding this comment.
If you put npx it will prompt to install ts-node if you don't have it and it will run the desired script.
If you do not use npx and you do not have ts-node it just complains about command not being found.
There was a problem hiding this comment.
Ohh, my initial idea was to add ts-node as a dev dependency, wdyt?
There was a problem hiding this comment.
I agree and changed it. Please have a look, thanks!
|
@jasperhuangg Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 1.4.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.40-5 🚀
|
Details
As we are migration to Typescript it makes sense to have the scripts running on ts-node instead of node as typescript files do not compile using node.
Fixed Issues
$
PROPOSAL:
Tests
Running the following scrips should work:
web-proxy
desktop
createDocsRoute
test:e2e
test:e2e:dev
workflowtest:generate
Verify that no errors appear in the JS console
Offline tests
N/a
QA Steps
N/a
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/a
Android: mWeb Chrome
N/a
iOS: Native
N/a
iOS: mWeb Safari
N/a
MacOS: Chrome / Safari
N/a
MacOS: Desktop
N/a