Skip to content

Commit 2750216

Browse files
committed
show versions only on start, not restart
1 parent 7f038ec commit 2750216

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
### Yalc changelog
22

3+
## 1.0.0-pre.58 (2020-08-18)
4+
5+
- show versions only on first start
36

47
## 1.0.0-pre.57 (2020-08-13)
58

lib/index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,19 @@ module.exports = function (script, scriptArgs, nodeArgs, opts) {
8181
})
8282
}
8383

84+
var version = require('../package.json').version
85+
86+
console.log(
87+
'ts-node-dev ver. ' + version + ' (using ts-node ver.',
88+
tsNodeVersion + ', typescript ver.',
89+
tsVersion + ')'
90+
)
91+
8492
/**
8593
* Run the wrapped script.
8694
*/
8795
var compileReqWatcher
88-
function start() {
89-
console.log(
90-
'Using ts-node version',
91-
tsNodeVersion + ', typescript version',
92-
tsVersion
93-
)
96+
function start() {
9497
for (let watched of (opts.watch || '').split(',')) {
9598
if (watched) watcher.add(watched)
9699
}

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.57",
3+
"version": "1.0.0-pre.58",
44
"description": "Compiles your TS app and restarts when files are modified.",
55
"keywords": [
66
"restart",

test/manual/dep.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
export const fn = (x: number) => {
33
console.log('function from dep module here')
44
}
5-

0 commit comments

Comments
 (0)