v0.13.0
Deprecations
tsconfig.json
rootDir
has been changed to./src
../
is now deprecated and will give a warning
Improvements
- Async Rollup Plugins for
tsdx.config.js
are now supported out-of-the-box (no more need for hacks likeobjectHashIgnoreUnknownHack
) - Jest's
--config
flag is now respected tsconfig.json
'sdeclarationDir
is now respected- Much better support of JS & JSX files in build, test, and lint. This should enhance the gradual migration experience quite a bit
- Co-located test files are ignored during build by default now (so unnecessary declarations aren't generated for them)
Bugfixes
- Babel presets should no longer be ignored and will be merged with TSDX's defaults
- Multiple JSX -> JSX imports should resolve correctly now
src/index.jsx
will now be parsed as an entry file (previously only.ts
,.tsx
, and.js
were)esModuleInterop
should be properly read now for the purposes of configuring Rollup'sesModule
/ CJS__esModule
-- a bug made it so these were always added previously. This does not impact parsing ofesModuleInterop
for anything else, which worked correctly and still does.- Jest transform regexes are now properly anchored, non-TS/TSX files shouldn't be passed to
ts-jest
anymore - Jest config parsing now errors loudly instead of silently during failures
- Async Rollup Plugins in
tsdx.config.js
don't bug out anymore
Templates
- Storybook template has been significantly upgraded and patched
- GH Actions have been added to all templates
tsconfig.json
rootDir
has been changed to./src
../
is now deprecated and will give a warning- Confusing
tsconfig.json
target
has been removed as it is not currently configurable (configured with@babel/preset-env
instead) src
is now included inpackage.json
files
to improve debugging- Node version requirement is enforced when creating templates
Commits:
Lists of commits:
Features
- (feat): support custom jest config paths via --config (#526) 16459df
- (feat): use tsconfig declarationDir is set (#468) b23f158
- (feat): support JS & JSX files in tsdx test (#486) 424fc25
- (feat): support JS & JSX files in tsdx lint (#487) 655bb53
- Ensure co-located test files don't have definitions generated (#472) a56894f
Bugfixes
- Add JSX extension to @rollup/plugin-node-resolve options (#524) 735f301
- (fix): correctly read tsconfig esModuleInterop (#555) c12f92c
- (fix): parse tsconfig extends, trailing commas, and comments (#489) ad33c01
- (fix): if custom jest config path, use its dir as rootDir (#526) f19fa61
- (fix/types): fix internal & external declaration errors (#542) d164dd2
- (deps/fix/types): upgrade rollup & fix event type issues (#544) edd8045
- (fix): watch examples should only show watch command (#537) e2a91ad
- anchor regexps for jest transforms (#513) 1b1b9f8
- fix: respect custom tsconfig path for esModuleInterop (#436) 4ec56fc
- (fix): upgrade rpts2 / object-hash to support async rollup plugins (#506) b17a0be
- (fix): jest config parsing shouldn't silently fail on error (#499) a97a5af
- (fix): check for JSX extension for entry files (#474) 67a07bd
- (fix): ensure Babel presets are merged (#473) 40ba936
Templates
- Add 'src' to package.json files to improve source maps (#620) 287dc44
- (remove): redundant/confusing tsconfig target in templates (#466) 670cc56
- (fix): set rootDir to './src', not './'. deprecate moveTypes (#504) 68f26c9
- Add GH Action configs for each template (#457) 21893b8
- (fix) Enforce Node version for tsdx create, update documentation to express requirement. (#433) 9f183e7
- Integrate new Storybook config (#435) 1d8f123
Docs
- (fix/docs):
test
script doesn't run Jest in interactive mode (#536) a2e4b78 - (docs/fix): remove outdated language about custom Babel configs (#467) 1269115
Dependencies
- Bump acorn from 5.7.3 to 5.7.4 (#580) 3462576
- (deps): remove unused cross-env, cross-spawn, chokidar-cli (#553) ab73e25
- (refactor): replace rimraf, mkdirp, util.promisify with fs-extra funcs (#501) 3a6d42f
- Update husky to the latest version 🚀 (#507) 6a0a2c5
- Update cross-env to the latest version 🚀 (#459) 4f6de10
- Update @rollup/plugin-node-resolve to the latest version 🚀 (#477) 1a7d816
- Revert "chore(package): update @types/jest to version 25.1.0 (#462)" (#470) f12fcdf
- chore(package): update @types/jest to version 25.1.0 (#462) 95ff6da
- Update @types/semver to the latest version 🚀 (#463) 23c8826
Internal
- (ci/optim): add caching for yarn install (#625) 18e3c05
- Add publish npm script (#582) 77e7c70
- (clean): remove unused fixture test directories (#626) 82e764f
- (ci): remove experimental --runInBand as tests pass now (#624) 0f72117
- (optim/ci): don't build a second time for lint or test (#623) 6679c23
- (refactor): use outputFile instead of mkdirs + writeFile (#617) b21d7af
- (test): ensure custom --tsconfig path is correctly read (#556) 3530265
- (types): improve typings for Jest config (#526) 9fef652
- (test): dogfood tsdx test for internal testing (#526) fec415e
- (test): always run build before running tests (#493) df22fe3
- (types): add @types/sade, fix transpileOnly default (#476) b3632fe
- (types): enforce stricter typings (#475) 4e5e48a
All Contributors
Expand very long list. All historical contributors were added during this release.
- docs: add justingrant as a contributor (#622) 3a6e098
- docs: add github as a contributor (#616) d4dd010
- docs: add dependabot[bot] as a contributor (#615) 6b9f205
- docs: add allcontributors[bot] as a contributor (#614) e0e1a79
- docs: add greenkeeper[bot] as a contributor (#613) 60cc280
- docs: add Carl-Foster as a contributor (#611) 8b2fb0c
- docs: add lpolito as a contributor (#610) 1611158
- docs: add lookfirst as a contributor (#609) 3558e7b
- docs: add goznauk as a contributor (#608) 32ca779
- docs: add joeflateau as a contributor (#607) 7e4601d
- docs: add arthurdenner as a contributor (#606) 0930aeb
- docs: add techieshark as a contributor (#605) 8ed4547
- docs: add ArnaudBarre as a contributor (#604) 35eb230
- docs: add ncphillips as a contributor (#603) 1118a53
- docs: add yordis as a contributor (#602) 8bba957
- docs: add audiolion as a contributor (#601) 272547e
- docs: add Aidurber as a contributor (#600) 43e4e2f
- docs: add mfolnovic as a contributor (#599) de3c565
- docs: add third774 as a contributor (#598) 109355f
- docs: add elado as a contributor (#597) efbcfe2
- docs: add wessberg as a contributor (#596) 9702550
- docs: add tunnckoCore as a contributor (#595) f1e06c2
- docs: add medelman17 as a contributor (#594) dc871c1
- docs: add netzwerg as a contributor (#593) 570ed7a
- docs: add albizures as a contributor (#592) 47a566e
- docs: add sadsa as a contributor (#591) 1ad4787
- docs: add ccarse as a contributor (#590) 9a11b10
- docs: add bbugh as a contributor (#589) c256093
- docs: add wrdls as a contributor (#588) 2277e8a
- docs: add honzabrecka as a contributor (#587) 4495dde
- docs: add leonardodino as a contributor (#586) dc43151
- docs: add jooohn as a contributor (#585) 72904ca
- docs: add johnrjj as a contributor (#584) 17ef158
- docs: add karlhorky as a contributor (#576) 1fe8d51
- docs: add dance2die as a contributor (#575) 254783a
- docs: add hyanmandian as a contributor (#574) e0ad9cd
- docs: add quentin-sommer as a contributor (#573) 3a270f5
- docs: add FredyC as a contributor (#570) ac1fd87
- docs: add TrySound as a contributor (#571) ac2e80f
- docs: add enesTufekci as a contributor (#569) 544cf4e
- docs: add aleclarson as a contributor (#568) ab213f7
- docs: add kirjai as a contributor (#566) dabc620
- docs: add slorber as a contributor (#563) 78073f7
- docs: add a-type as a contributor (#562) 518ef10
- docs: add jakegavin as a contributor (#561) 345f850
- docs: add PabloSzx as a contributor (#560) 53713aa
- docs: add hedgerh as a contributor (#564) c878caf
- docs: add bastibuck as a contributor (#559) e72ec4e
- docs: add diegohaz as a contributor (#558) d84756a
- docs: add natemoo-re as a contributor (#567) 7c1d677
- docs: add skvale as a contributor (#565) 68d5601
- docs: add n3tr as a contributor (#557) 216bb56
- docs: add justingrant as a contributor (#554) 7102819
- docs: add aleclarson as a contributor (#552) 0419262
- docs: add gndelia as a contributor (#550) 10e54d5
- docs: add fknop as a contributor (#549) f4783d6
- docs: add etienne-dldc as a contributor (#548) d4e12ee
- docs: add agilgur5 as a contributor (#520) 4f1e1ef
- docs: add kyle-johnson as a contributor (#519) 97480cc
- docs: add tricoder42 as a contributor (#518) a929772
- docs: add selbekk as a contributor (#485) a31ee26
- docs: add sisp as a contributor (#482) 1b9092b
- docs: add agilgur5 as a contributor (#480) b71431b
- docs: add SKalt as a contributor (#454) 93c4be6
- docs: add hedgerh as a contributor (#449) ba1d276
- docs: add arthurdenner as a contributor (#453) 70dd8e5
- docs: add Carl-Foster as a contributor (#452) d819596
- docs: add LoicMahieu as a contributor (#451) d9eb226
- docs: add sebald as a contributor (#450) 3932958
- docs: add karlhorky as a contributor (#448) 4f2ba6f
- docs: add jamesgeorge007 as a contributor (#447) 317b673
- docs: add agilgur5 as a contributor (#446) 77c28d0
- docs: add kylemh as a contributor (#445) 7bb50a4
- docs: add lpolito as a contributor (#444) 651be2f
Commit Range
Postscript
Sorry for the long delay on this release everyone, I was recently added as an official maintainer (a week ago) and just given publishing privileges (yesterday). See #512 for more details.
Wishing everyone well during the pandemic!