@@ -9,18 +9,18 @@ Despite all the recent hype, setting up a new TypeScript (x React) library can b
9
9
10
10
- [ Features] ( #features )
11
11
- [ Quick Start] ( #quick-start )
12
- - [ ` npm start ` or ` yarn start ` ] ( #npm-start-or-yarn-start )
13
- - [ ` npm run build ` or ` yarn build ` ] ( #npm-run-build-or-yarn-build )
14
- - [ ` npm test ` or ` yarn test ` ] ( #npm-test-or-yarn-test )
15
- - [ ` npm run lint ` or ` yarn lint ` ] ( #npm-run-lint-or-yarn-lint )
16
- - [ ` prepare ` script] ( #prepare-script )
12
+ - [ npm start or yarn start] ( #npm-start-or-yarn-start )
13
+ - [ npm run build or yarn build] ( #npm-run-build-or-yarn-build )
14
+ - [ npm test or yarn test] ( #npm-test-or-yarn-test )
15
+ - [ npm run lint or yarn lint] ( #npm-run-lint-or-yarn-lint )
16
+ - [ prepare script] ( #prepare-script )
17
17
- [ Optimizations] ( #optimizations )
18
18
- [ Development-only Expressions + Treeshaking] ( #development-only-expressions--treeshaking )
19
19
- [ Rollup Treeshaking] ( #rollup-treeshaking )
20
- - [ Advanced ` babel-plugin-dev-expressions ` ] ( #advanced-babel-plugin-dev-expressions )
21
- - [ ` __DEV__ ` ] ( #__dev__ )
22
- - [ ` invariant ` ] ( #invariant )
23
- - [ ` warning ` ] ( #warning )
20
+ - [ Advanced babel-plugin-dev-expressions] ( #advanced-babel-plugin-dev-expressions )
21
+ - [ __ DEV__ ] ( #dev )
22
+ - [ invariant] ( #invariant )
23
+ - [ warning] ( #warning )
24
24
- [ Using lodash] ( #using-lodash )
25
25
- [ Error extraction] ( #error-extraction )
26
26
- [ Customization] ( #customization )
@@ -30,12 +30,13 @@ Despite all the recent hype, setting up a new TypeScript (x React) library can b
30
30
- [ Inspiration] ( #inspiration )
31
31
- [ Comparison to Microbundle] ( #comparison-to-microbundle )
32
32
- [ API Reference] ( #api-reference )
33
- - [ ` tsdx watch ` ] ( #tsdx-watch )
34
- - [ ` tsdx build ` ] ( #tsdx-build )
35
- - [ ` tsdx test ` ] ( #tsdx-test )
36
- - [ ` tsdx lint ` ] ( #tsdx-lint )
33
+ - [ tsdx watch] ( #tsdx-watch )
34
+ - [ tsdx build] ( #tsdx-build )
35
+ - [ tsdx test] ( #tsdx-test )
36
+ - [ tsdx lint] ( #tsdx-lint )
37
37
- [ Author] ( #author )
38
38
- [ License] ( #license )
39
+ - [ Contributors ✨] ( #contributors-%e2%9c%a8 )
39
40
40
41
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
41
42
@@ -315,7 +316,7 @@ The `options` object contains the following:
315
316
export interface TsdxOptions {
316
317
// path to file
317
318
input: string ;
318
- // Safe name (for UMD)
319
+ // Name of package
319
320
name: string ;
320
321
// JS target
321
322
target: ' node' | ' browser' ;
@@ -325,12 +326,14 @@ export interface TsdxOptions {
325
326
env: ' development' | ' production' ;
326
327
// Path to tsconfig file
327
328
tsconfig? : string ;
328
- // Is opt-in invariant error extraction active ?
329
+ // Is error extraction running ?
329
330
extractErrors? : boolean ;
330
331
// Is minifying?
331
332
minify? : boolean ;
332
333
// Is this the very first rollup config (and thus should one-off metadata be extracted)?
333
334
writeMeta? : boolean ;
335
+ // Only transpile, do not type check (makes compilation faster)
336
+ transpileOnly? : boolean ;
334
337
}
335
338
```
336
339
@@ -395,6 +398,7 @@ Options
395
398
--tsconfig Specify your custom tsconfig path (default < root-folder> /tsconfig.json)
396
399
--verbose Keep outdated console output in watch mode instead of clearing the screen
397
400
--noClean Don' t clean the dist folder
401
+ --transpileOnly Skip type checking
398
402
-h, --help Displays this message
399
403
400
404
Examples
@@ -404,6 +408,7 @@ Examples
404
408
$ tsdx watch --format cjs,esm,umd
405
409
$ tsdx watch --tsconfig ./tsconfig.foo.json
406
410
$ tsdx watch --noClean
411
+ $ tsdx watch --transpileOnly
407
412
```
408
413
409
414
### `tsdx build`
@@ -422,6 +427,7 @@ Options
422
427
--format Specify module format(s) (default cjs,esm)
423
428
--extractErrors Opt-in to extracting invariant error codes
424
429
--tsconfig Specify your custom tsconfig path (default <root-folder>/tsconfig.json)
430
+ --transpileOnly Skip type checking
425
431
-h, --help Displays this message
426
432
427
433
Examples
@@ -431,6 +437,7 @@ Examples
431
437
$ tsdx build --format cjs,esm,umd
432
438
$ tsdx build --extractErrors
433
439
$ tsdx build --tsconfig ./tsconfig.foo.json
440
+ $ tsdx build --transpileOnly
434
441
```
435
442
436
443
### `tsdx test`
0 commit comments