Commit Graph

21 Commits

Author SHA1 Message Date
Matt Bierner
2648263d3e Run our build scripts directly as typescript (#277567)
* Run our build scripts directly as typescript #277567

Follow up on #276864
For #277526

* Remove a few more ts-node references

* Fix linux and script reference

* Remove `_build-script` ref

* Fix script missing closing quote

* use type only import

* Fix export

* Make sure to run copy-policy-dto

* Make sure we run the copy-policy-dto script

* Enable `verbatimModuleSyntax`

* Pipelines fixes

* Try adding explicit ext to path

* Fix bad edit

* Revert extra `--`

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2025-11-21 14:56:00 +01:00
Matt Bierner
c79433c9de Fix import and use clearer file name 2025-10-30 08:57:26 -07:00
Matt Bierner
883485b3b5 Pick up esbuild target from tsconfig files 2025-10-30 08:53:24 -07:00
Matt Bierner
77ed219366 Convert some any -> unknown in build scripts 2025-10-08 10:22:21 -07:00
Aman Karmani
e76c50f20e build: switch build/tsconfig.json to module: nodenext (#238426)
* build/tsconfig: switch to module: nodenext for bun compat

* build: rewrite imports for nodenext compat

* build: re-generate
2025-01-22 20:12:39 +01:00
Johannes
6e4221f0ec remove swc 2024-10-04 11:23:51 +02:00
Johannes
4a5fdb2ff1 some more esbuild trickery 2024-10-03 18:39:45 +02:00
Johannes Rieken
2a96e0d571 Merge branch 'main' into joh/super-monkey 2024-10-03 17:18:23 +02:00
Martin Aeschlimann
fc6d94b806 [css/json/html] adopt latest lsp, update to module: node16 (#230371)
* adopt latest language-server/client

* update package-locks

* transpiler to support Node16
2024-10-03 13:49:56 +02:00
Johannes
c4093a5112 tweak transpile and pasteUrl.test 2024-10-02 10:30:35 +02:00
Johannes
3ae94fbae4 more transpile tweaks 2024-10-02 10:04:41 +02:00
Johannes
c1fb7325bd add esbuild transpiler for fast CI 2024-10-01 16:26:50 +02:00
Benjamin Pasero
3b8c31c64a esm - fix transpile 2024-09-27 08:32:14 +02:00
Johannes
b9b51f0fb0 tweak SWC options to allow module interop 2024-06-03 18:40:56 +02:00
Johannes
eeae481e47 set emit-target and libs to ES2022, avoid static-blocks, fix Error#cause conflict
https://github.com/microsoft/vscode/issues/185991
2023-06-30 11:43:19 +02:00
Johannes
56c917debf update SWC config to disable useDefineForClassFields 2023-06-23 12:55:32 +02:00
Johannes
d6f5727021 also use SWC for extensions transpile 2022-09-07 11:18:53 +02:00
Johannes
87e54a0759 consume swc as libaray and wire up into the existing transpiler logic 2022-09-07 10:46:27 +02:00
Johannes Rieken
0182e175eb fix transpile on windows (#153285)
make sure to normalize paths before entering internal TS API, also add better error logging to know what file paths fail
2022-06-27 12:01:17 +02:00
Johannes
b942d2ea65 use a different _internal_ API to get the output file names for a TS input file and its config... way faster than creating a program and using its internal API but needs some massage... 2022-06-23 16:20:21 +02:00
Johannes Rieken
9e21aff42e joh/ts transpile (#152199)
transpile-only tasks for client and extensions

* extract transpile into its own file
* add transpile-client task, polish transpiler
* add transpile-extensions, improve transpile logic
* move declaration of "const enum" above it usage so that it can be used with const-enum-inlining
* (ugly) make d.ts transpilation configurable because it is needed for extensions but a problem for client
* hack my way around so that `getOwnEmitOutputFilePath` is reusable by our transpile
* honor `noEmit` flag
2022-06-15 16:52:48 +02:00