Skip to content

Commit 1120a14

Browse files
committed
fix mistype quite -> quiet
1 parent 71ba503 commit 1120a14

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# ts-node-dev changelog
22

3-
## 1.0.0-pre.64 (2020-10-14)
3+
## 1.0.0-pre.65 (2020-10-15)
44

5-
- add --quite option to silent [INFO] messages
5+
- add --quiet option to silent [INFO] messages
66

77
## 1.0.0-pre.63 (2020-09-22)
88

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Look up flags and options can be used [in ts-node's docs](https://github.com/Typ
4343
* `--deps` - Also watch `node_modules`; by default watching is turned off
4444

4545
* `--debug` - Some additional [DEBUG] output
46-
* `--quite` - Silent [INFO] messages
46+
* `--quiet` - Silent [INFO] messages
4747
* `--interval` - Polling interval (ms) - DOESN'T WORK CURRENTLY
4848
* `--debounce` - Debounce file change events (ms, non-polling mode)
4949
* `--clear` (`--cls`) - Will clear screen on restart

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-node-dev",
3-
"version": "1.0.0-pre.64",
3+
"version": "1.0.0-pre.65",
44
"description": "Compiles your TS app and restarts when files are modified.",
55
"keywords": [
66
"restart",

src/bin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const devFlags = {
8282
'cls',
8383
'exit-child',
8484
'error-recompile',
85-
'quite',
85+
'quiet',
8686
'rs',
8787
],
8888
string: [
@@ -118,7 +118,7 @@ type DevOptions = {
118118
'exit-child': boolean
119119
'cache-directory': string
120120
'error-recompile': boolean
121-
quite: boolean
121+
quiet: boolean
122122
'tree-kill': boolean
123123
}
124124

src/cfg.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type Config = {
2323
ignore: string[]
2424
respawn: boolean
2525
debug: boolean
26-
quite: boolean
26+
quiet: boolean
2727
extensions: Record<string, string>
2828
}
2929

@@ -64,7 +64,7 @@ export const makeCfg = (main: string, opts: Partial<Options>): Config => {
6464
ignore: ignore,
6565
respawn: c.respawn || false,
6666
debug: !!opts.debug,
67-
quite: !!opts.quite,
67+
quiet: !!opts.quiet,
6868
extensions: c.extensions,
6969
}
7070
}

src/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type LogLevel = keyof typeof colors
2626
*/
2727
export const makeLog = function (cfg: Config) {
2828
function log(msg: string, level: LogLevel) {
29-
if (cfg.quite && level === 'info') return
29+
if (cfg.quiet && level === 'info') return
3030
if (cfg.timestamp) msg = color(fmt(cfg.timestamp), '30;1') + ' ' + msg
3131
const c = colors[level.toLowerCase() as LogLevel] || '32'
3232
console.log('[' + color(level.toUpperCase(), c) + '] ' + msg)

test/tsnd.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ describe('ts-node-dev', function () {
6363

6464
it('should report an error on start', async () => {
6565
const ps = spawnTsNodeDev('--respawn with-error.ts')
66-
await ps.waitForLine(/[ERROR]/)
66+
await ps.waitForLine(/\[ERROR\]/)
6767
const out = ps.getStdout()
68-
t.ok(/Compilation error in/.test(out), 'Reports error file')
68+
const err = ps.getStderr()
69+
70+
t.ok(/Compilation error in/.test(err), 'Reports error file')
6971
t.ok(/[ERROR].*Unable to compile TypeScript/.test(out), 'Report TS error')
7072
t.ok(/Argument of type/.test(out), 'Report TS error diagnostics')
7173

@@ -80,8 +82,8 @@ describe('ts-node-dev', function () {
8082
await replaceText('with-error.ts', '1', `'1'`)
8183
})
8284

83-
it.only('should not output INFO messages with --quite', async () => {
84-
const ps = spawnTsNodeDev('--respawn --poll --quite simple.ts')
85+
it('should not output INFO messages with --quiet', async () => {
86+
const ps = spawnTsNodeDev('--respawn --poll --quiet simple.ts')
8587
await ps.waitForLine(/v1/)
8688
setTimeout(() => replaceText('dep.ts', 'v1', 'v2'), 250)
8789
await ps.waitForLine(/v2/)

0 commit comments

Comments
 (0)