-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support TypeScript without the need for Babel #490
Comments
If anyone is interested, I have been able to find a way to use mocks/server.ts
Add this block to
Package.json script: Its annoying having to disable eslint and type checking within +1000 for official types to be bundled with |
I followed @aaronb-reach approach and managed to run server without disabling typecheck and eslint
Additional change I had to make is to craete
Then add Folder structure remained the same. My folder structure looks like this
Make sure to add
|
Hi, first off a big thanks for
mocks-server
, its really neat and Ive enjoyed integrating it into our setup.What I would love though is to be able to use it with
.ts
files without installing anybabel
deps. Currently ive got it working by installing these 3 additional deps:This is ok but it would be better if i could have the option to use ts-node instead to do the transpilation. A lot of the time this dep is already installed for TS projects, so it would make integrating
mocks-server
even more seamless.Let me know what you think. Cheers!
The text was updated successfully, but these errors were encountered: