About 14,500,000 results
Open links in new tab
  1. How to compile typescript using npm command? - Stack Overflow

    Here is an idea : Configure typescript using tsconfig.json file Run tsc --watch, so every time you change a .ts file, tsc will compile it and produce the output (let say you configured typescript to put the output …

  2. typescript - tsc --build vs tsc --project - Stack Overflow

    Jun 1, 2021 · Summary npx tsc --build ran 1.00 ± 0.07 times faster than npx tsc --project tsconfig.json 1.03 ± 0.10 times faster than npx tsc --build tsconfig.json 1.23 ± 0.22 times faster than npx tsc So it …

  3. javascript - Typescript compile to single file - Stack Overflow

    Option 3 - use a module bundler / build tool Probably, the best option is to use a module bundler / build tool, like Webpack. Webpack will compile all your TypeScript files to a single JavaScript bundle. So, …

  4. Ignore all errors in a typescript file - Stack Overflow

    Apr 11, 2019 · 132 I have a large typescript file that I've inherited. The compiler has many complaints with this file, however it works just fine. I'll come back to it, but is there any way to suppress all …

  5. tsc throws `TS2307: Cannot find module` for a local file

    May 31, 2016 · In VS2019, the project property page, TypeScript Build tab has a setting (dropdown) for "Module System". When I changed that from "ES2015" to CommonJS, then VS2019 IDE stopped …

  6. javascript - How can I get the Typescript compiler to output the ...

    For this to work in IntelliJ, I had to click on Typescript in the bottom right of the window, then compile, then tsconfig.json. Only then did the build folder appear.

  7. How to correctly resolve path aliases in TypeScript?

    Dec 6, 2023 · And now, since TypeScript does not resolve the path aliases during the build, I'm having so much trouble setting up tsconfig-paths and I have no idea how to configure Babel or Webpack just …

  8. Typescript build getting errors from node_modules folder

    Feb 14, 2016 · 35 I am running a typescript build and getting errors in node_modules. Why isn't it ignoring this folder? I have it in the exclude section of my tsconfig.json.

  9. typescript - tsc --build + specify tsconfig.json - Stack Overflow

    Jan 13, 2022 · tsc --build + specify tsconfig.json Asked 3 years, 11 months ago Modified 3 years, 11 months ago Viewed 26k times

  10. tsc - Is there any clean up command in TypeScript to delete the build ...

    May 14, 2021 · So, I am wondering if there is any native command in typescript that cleans/deletes this generated 'js-files' folder, something like 'mvn clean' in Maven projects.