219 Commits

Author SHA1 Message Date
Jack Hsu
c5a5eb30a2
fix(js): update minimal publish script to validate project name and config (#10006) 2022-04-26 11:10:15 -04:00
Jason Jean
4f99b77e42
chore(repo): update nx to 14.0.2 (#9974) 2022-04-23 18:06:01 +00:00
Caleb Ukle
88971468db
fix(testing): pass --js flag to jest generators (#9965) 2022-04-22 22:43:59 -04:00
Caleb Ukle
39331d1e17
feat(testing): move jest config to .ts files (#9854)
* feat(testing): move jest config to .ts

move jest config and preset to ts files

ISSUES CLOSED: #8344

* fix(testing): update tests for jest.config.ts changes

update tests broken by renaming jest fils to ts files
2022-04-21 17:58:40 +00:00
Miroslav Jonaš
67b34a099f
fix(js): enable hidden files as assets (#9880) 2022-04-19 12:48:01 +02:00
Chau Tran
2735aa08df
feat(js): add publish target and generate minimal publish script for … (#9806)
* feat(js): add publish target and generate minimal publish script for publishable libraries

* fix(js): adjust minimal publish script to display better error for version validation

* Update packages/js/src/utils/minimal-publish-script.ts

Co-authored-by: Caleb Ukle <caleb@nrwl.io>

Co-authored-by: Caleb Ukle <caleb@nrwl.io>
2022-04-12 15:20:24 -05:00
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors (#9800) 2022-04-12 14:05:55 -04:00
Caleb Ukle
696fefdd7b
fix(js): ignore tsx and .test. files with buildable swc libraries (#9540)
include update to simplify existing patterns

ISSUES CLOSED: #9442

Co-authored-by: Caleb Ukle <caleb@Calebs-MBP-2.localdomain>
2022-04-11 08:59:44 -05:00
Chau Tran
3e94d4cb3a
fix(js): add init generator placeholder (#9777) 2022-04-11 08:47:08 -05:00
CommanderRoot
05a9544806
cleanup(misc): replace deprecated String.prototype.substr()
* cleanup(misc): replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* fix(js): fix slice change

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-01 23:04:26 +00:00
Benjamin Cabanes
3a87887b06
docs(core): js package description update (#9506) 2022-03-24 21:22:32 +00:00
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Craigory Coppola
22a99144be
fix(js): pin fast-glob to 3.2.7 due to regression in 3.2.8 (#9484) 2022-03-23 16:36:30 -04:00
Craigory Coppola
2f85238f86
fix(js): improve inconsistencies with assets in tsc and swc from previous implementation (#9470) 2022-03-23 10:16:19 -04:00
Chau Tran
44763532f7
fix(js): add swc/helpers to js packages on converting to swc (#9467)
* fix(js): add swc/helpers to js packages on converting to swc

* chore(js): update convert to swc unit test

* chore(js): format

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-22 15:10:04 -05:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00: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
Giora Guttsait
f44165d993
feat(js): infer tslib as a dependency when using importHelpers (#9350) 2022-03-16 12:47:39 -04:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Jason Jean
5c0da2f635
fix(js): fix inconsistent tsconfig module casing (#9320) 2022-03-14 20:32:29 +00:00
Chau Tran
71bd3e13ad
fix(js): default swcCwd to '.' to prevent ENOENT error when invoking swc cli (#9256)
Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-13 22:07:09 -05:00
Victor Savkin
4e9375f5f4 chore(repo): update the version of nx 2022-03-11 10:40:40 -05:00
Jason Jean
94687e993c
chore(repo): ensure license file exists for all published packages (#9274) 2022-03-10 18:33:06 -05:00
Hannes Schmid
064d7ec30c
fix(js): execute postCompilationCallback in compileTypeScriptFiles in watch mode (#9254)
Execute the postCompilationCallback regardless of the watch option value

ISSUES CLOSED: #9253

Co-authored-by: Hannes Schmid <hannes.schmid@solunio.com>
2022-03-09 12:21:28 -06:00
Leosvel Pérez Espinosa
acc29e9593
fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json (#9195)
* fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json

* cleanup(angular): address pr feedback
2022-03-09 11:30:26 -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
Jack Hsu
1390cd086c
feat(node): moved 13.9.0 migrations to 13.8.5 (#9184) 2022-03-04 08:15:49 -05:00
Chau Tran
229f71ef17
feat(nest): use nrwl/js to generate library (#9164)
* chore(js): rename GeneratorSchema to LibraryGeneratorSchema

* fix(js): add publishable to library generator schema

* feat(nest): use nrwl/js for library generator

* fix(js): update documentation about publishable

* chore(nest): fix depcheck for nrwl/js

* chore(nest): update test snapshot

* chore(nest): update nestjs/swagger version in node e2e

* chore(js): rename loadTsPlugins function

* fix(nest): default standaloneConfig for library generator to true

* feat(nest): rename tsPlugins to transformers and add tsPlugins to aliases

* chore(nest): fix e2e test on generate a new nest library

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-03 15:47:06 -05:00
Jason Gerbes
4287d59a2a
fix(js): update dependencies in package.json (#9073)
Co-authored-by: Jason Gerbes <jason.gerbes@vista.co>
2022-02-24 16:01:43 -06:00
Jack Hsu
95f5a085fa
feat(node): consolidate js and node plugins (#9086)
* chore(node): update docs after consolidating js and node plugins

* feat(node): consolidate js and node plugins
2022-02-23 16:59:03 -05: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
Miroslav Jonaš
30d1172401
fix(js): ensure correct path format for asset pattern matching (#9022) 2022-02-18 11:00:39 +01: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
Isaac Mann
cb452b48a4
docs(core): use project.json instead of workspace.json (#8936)
Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-02-11 17:00:54 +00:00
Jason Gerbes
9900732e92
fix(js): exclude .test.ts files in tsconfig (#8908)
* fix(js): Exclude .test.ts files in tsconfig

* fix(js): exclude .test.ts files in tsconfig

Co-authored-by: Jason Gerbes <jason.gerbes@vista.co>
2022-02-10 17:47:50 -05:00
Jack Hsu
f2b207ed7b
feat(js): enable buildable libraries by default (#8804) 2022-02-01 16:06:04 +00:00
Jay Bell
375f939cf9
fix(js): swc compiler builds extends in tmp generated tsconfig wrong (#8683) 2022-01-25 09:55:45 -06:00
Victor Savkin
298ceba5b3
chore(repo): readme fixes 2022-01-24 09:39:31 -05:00
Victor Savkin
1e3906e97a
fix(js): fix a typo in description 2022-01-21 16:29:15 -05:00
Chau Tran
4b21ab9502 docs(js): remove experimental description on swc compiler 2022-01-20 12:33:44 -05:00
Jack Hsu
2b376be209
feat(js): use same asset handler for both tsc and swc (#8615) 2022-01-20 15:04:39 +00:00
Victor Savkin
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
Jack Hsu
4070eaec15
feat(js): improve watch mode support for tsc and swc builds (#8502) 2022-01-19 11:37:04 -05:00
Linbudu
b0ffcdd0c8
cleanup(js): add missing package.json fields (#8510) 2022-01-14 11:54:53 -05:00
Jack Merrill
931ba3a115
fix(js): fix npm module resolving (#8316) (#8352)
* fix(js): fix npm module resolving (#8316)

* fix(js): add secondary npm module check

(nrwl#8316)
2022-01-14 10:33:33 -06:00
Chau Tran
978cfe942d
fix(testing): turn swc/jest back on for react, web, and js (#8464) 2022-01-11 09:28:30 -05:00
Phillip Barta
8abcaab7c3
fix(misc): dont publish jest.config.js files (#8341) 2022-01-07 14:10:24 -05:00
Chau Tran
22c6ddb73d
fix(js): adjust how to pass information down to swc cli (#8298) 2022-01-05 20:28:49 -05:00
Victor Savkin
53767a89c1 fix(js): mark swc as experimental 2021-12-23 20:12:19 -05:00