File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const os = require ( 'os' ) ;
4
4
5
+ const updateNotifier = require ( 'update-notifier' ) ;
6
+
7
+ const pkg = require ( '../package.json' ) ;
8
+
5
9
const getUnityUrls = require ( '../lib/get-unity-urls' ) ;
6
10
7
11
const osKeyMap = {
@@ -13,5 +17,7 @@ const PROCESS_CMD_LINE_ARGS_LENGTH = 2;
13
17
14
18
const requestedVersion = process . argv . slice ( PROCESS_CMD_LINE_ARGS_LENGTH ) . pop ( ) ;
15
19
20
+ updateNotifier ( { pkg} ) . notify ( ) ;
21
+
16
22
getUnityUrls ( requestedVersion ) . then ( urls =>
17
23
process . stdout . write ( `${ urls [ osKeyMap [ os . type ( ) ] ] } ` ) ) ;
Original file line number Diff line number Diff line change 10
10
"node" : " >=12.0"
11
11
},
12
12
"license" : " MIT" ,
13
+ "dependencies" : {
14
+ "update-notifier" : " 3.0.1"
15
+ },
13
16
"devDependencies" : {
14
17
"@neogeek/eslint-config-standards" : " github:neogeek/eslint-config-standards" ,
15
18
"babel-eslint" : " 10.0.3" ,
You can’t perform that action at this time.
0 commit comments