25 Commits

Author SHA1 Message Date
Jack Hsu
701c513fd7
feat(js): add swc cli options --strip-leading-paths (#22856) 2024-04-17 14:18:10 -04:00
Jason Jean
2ee965042d
Revert "feat(js): add swc cli options --strip-leading-paths (#22193)" (#22832) 2024-04-15 20:35:58 -04:00
Every
f59ed58ae6
feat(js): add swc cli options --strip-leading-paths (#22193)
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2024-04-11 10:54:27 -04:00
Thenglong Heng
078cf9a1ca
fix(js): fix swc opens swc.js instead of compiling on windows (#18723) 2023-08-21 18:33:43 +03:00
Miroslav Jonaš
b152f20125
fix(js): fix swc compilation output path handling (#18588)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-08-11 17:30:21 -04:00
Jack Hsu
d63d3573c4
feat(js): add generateExportsField and additionalEntryPoints options to update exports field when building with tsc/swc (#18319) 2023-08-01 09:23:48 -06:00
Miroslav Jonaš
63521d7e13
fix(js): ensure compile swc uses current package manager (#18321) 2023-07-28 21:43:40 +02:00
Jack Hsu
3634abb3fc
feat(js): allow root js lib project to be generated (#17245) 2023-05-26 12:11:10 -04:00
Jack Hsu
ab609a26d8
fix(js): update swc options so path mappings can work in all environments (#16390) 2023-04-19 10:38:01 -04:00
Jason Jean
2d195007b0
feat(core): switch packages to use the @nx scope (#16069) 2023-04-14 19:56:37 -04:00
Jack Hsu
cded83b2c5
feat(react): remove unnecessary dependencies from @nrwl/react (#13525) 2022-12-01 17:06:32 -05:00
Jack Hsu
23e4fc77c9
feat(react): add SSR support to React apps (#13234) 2022-11-21 14:22:05 -05:00
Calvin Lai
469a6d1462
fix(js): add outfile to swc compiler in non-watch mode. fixes #12344 (#12345) 2022-10-07 16:18:01 +07:00
Chau Tran
142ed2eead
feat(js): inline non-buildable libs for tsc and swc (#12280)
Co-authored-by: Chau Tran <chautran@10.0.0.10>
2022-10-07 09:46:43 +07:00
Jean-Philippe Bergeron
20996d6c40
fix(nx): Ignore the debugger attached message in node (#11131)
* fix(js): update compile-swc.ts

* fix(js): update packages/js/src/utils/swc/compile-swc.ts

Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>

* chore(js): format source code

Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-08-02 09:31:01 +07:00
Jack Hsu
7fd7af3195
feat(js): add --clean/--no-clean option to tsc and swc executors (#11311) 2022-07-27 15:04:22 +00:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Chau Tran
cb1fc0235a
fix(js): mimic the behavior of tsc compilation for runTypeCheck (#9240)
* fix(js): mimic the behavior of tsc compilation for runTypeCheck

ISSUES CLOSED: #9203

* chore(js): add check for type defs files in e2e

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-21 16:33:34 -05:00
Chau Tran
7d5988b5c8
fix(js): adjust .swcrc so that it works with swc/jest and no temp .swcrc needed (with migrations) (#9198)
* fix(js): remove hardcoded source-maps and add default value to sourceMaps in swcrc

ISSUES CLOSED: #9187

* fix(js): rename .swcrc to .lib.swcrc (with migrations)

* fix(js): revert jest config js tmpl in jest generator and replace jest config manually in JS generator

* chore(js): update snapshot

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-07 09:14:31 -06:00
Chau Tran
55277243e4
fix(js): adjust destination directory for swc executor (#9072)
* fix(js): bump swc deps versions

* fix(js): change swc cli arguments to ensure it works in parity with tsc

* fix(js): add "dts" flag to swc executor

* fix(js): remove dts option as diff in perf is negligible

* fix(js): change logic around swc cli so that outputPath isn't computed

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-02-23 12:18:00 -06:00
Chau Tran
7da9fbbe88
fix(js): migrate swc executor off of rxjs (#8728)
* fix(js): clean up swc

* fix(js): clean up swc

* fix(js): add incremental to TypeCheckOptions

* fix(js): use async iterator with tsc executor. remove rxjs deps

* chore(js): remove unnecessary test and commented out code

* fix(js): add else statement for readability

* fix(js): ensure error() and done() always set error and done fields

* chore(js): clean up create async iterable tests

* fix(js): ensure pushQueue is resolved first if there are still items to be resolved before done

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-02-15 14:16:30 -06:00
Chau Tran
22c6ddb73d
fix(js): adjust how to pass information down to swc cli (#8298) 2022-01-05 20:28:49 -05:00
Chau Tran
592d0e9aba fix(js): ensure copy assets and packageJson is executed for swc executor 2021-12-22 18:09:08 -05:00
Chau Tran
1139c616e1 feat(js): add nrwl/js:node executor to serve node apps 2021-12-22 10:33:02 -05:00
Chau Tran
726877d103
feat(js): add SWC support (#7956)
* feat(js): add SWC support

chore(js): remove comment

fix(js): clean up typecheck after merge

fix(js): add tests to swc

* fix(js): adjust typecheck

* feat(js): add skipTypeCheck to library generator

* fix(js): use Promise.all()

* fix(js): pass in correct tsconfig path

* cleanup(js): remove comment code

* fix(js): use logger from devkit instead of console log

* fix(js): remove unintended exit log

* feat(js): add convert-to-swc generator to convert lib w/ tsc to swc

* fix(js): reexport print diagnostics
2021-12-15 12:23:50 -05:00