Skip to content

Commit c624b25

Browse files
committed
Version controls
1 parent 813e406 commit c624b25

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

js/core/tty/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ terminal.print(`
2828
`, 1, YELLOW);
2929

3030

31-
terminal.print('\n Welcome to ', 1, DARKGRAY, BLACK);
32-
terminal.print('JsOS\n', 1, GREEN, BLACK);
33-
terminal.print('Type', 1, LIGHTGRAY, BLACK);
31+
terminal.print('\n Welcome to ', 1, LIGHTGRAY, BLACK);
32+
terminal.print('JsOS ', 1, GREEN, BLACK);
33+
terminal.print(`version ${require('../../../package.json').version}\n`, 1, DARKGRAY, BLACK);
34+
terminal.print(' Type', 1, LIGHTGRAY, BLACK);
3435
terminal.print(' help ', 1, YELLOW, BLACK);
3536
terminal.print('to get list of commands\n\n', 1, LIGHTGRAY, BLACK);
3637

js/modules/process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class Process extends EventEmitter {
9696
title: '',
9797
umask: () => 0,
9898
uptime: () => Math.round(performance.now() / 1000),
99-
version: '0.0.0',
99+
version: require('../../package.json').version,
100100
versions: {},
101101
});
102102
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsos",
3-
"version": "0.2.16",
3+
"version": "0.1.3",
44
"description": "The operating system written on JavaScript and based on runtime.js",
55
"main": "js/index.js",
66
"private": true,

0 commit comments

Comments
 (0)