-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[TS migration] Changed all the scripts to use ts-node instead of node #36000
[TS migration] Changed all the scripts to use ts-node instead of node #36000
Conversation
package.json
Outdated
@@ -19,15 +19,15 @@ | |||
"ipad-sm": "concurrently \"npx react-native run-ios --simulator=\\\"iPad Pro (11-inch) (4th generation)\\\" --mode=\\\"DebugDevelopment\\\" --scheme=\\\"New Expensify Dev\\\"\"", | |||
"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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, my initial idea was to add ts-node
as a dev dependency, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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