@omnia/tooling 8.0.7-vnext → 8.0.9-vnext

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,9 +86,7 @@ function initTasks() {
86
86
  }
87
87
  function build(cb) {
88
88
  printLogo();
89
- if (isExtensionEnv) {
90
- console.log(chalk_1.default.cyan(`Version ${require('@omnia/tooling/package.json').version}`));
91
- }
89
+ printVersion();
92
90
  initTasks();
93
91
  triggerBuild(cb);
94
92
  }
@@ -97,9 +95,7 @@ function clean(greeting = true) {
97
95
  return new Promise((resolve, reject) => {
98
96
  if (greeting) {
99
97
  printLogo();
100
- if (isExtensionEnv) {
101
- console.log(chalk_1.default.cyan(`Version ${require('@omnia/tooling/package.json').version}`));
102
- }
98
+ printVersion();
103
99
  }
104
100
  utils.log('Cleaning...');
105
101
  initTasks();
@@ -112,9 +108,7 @@ function clean(greeting = true) {
112
108
  exports.clean = clean;
113
109
  function serve() {
114
110
  printLogo();
115
- if (isExtensionEnv) {
116
- console.log(chalk_1.default.cyan(`Version ${require('@omnia/tooling/package.json').version}`));
117
- }
111
+ printVersion();
118
112
  utils.log('Creating hosting...');
119
113
  initTasks();
120
114
  triggerServe();
@@ -138,9 +132,7 @@ Build System
138
132
  }
139
133
  function help() {
140
134
  printLogo();
141
- if (isExtensionEnv) {
142
- console.log(chalk_1.default.cyan(`Version ${require('@omnia/tooling/package.json').version}`));
143
- }
135
+ printVersion();
144
136
  console.log(chalk_1.default.cyan(`
145
137
  Usage: omniafx [command] [args] [--options]
146
138
 
@@ -153,6 +145,12 @@ Options:
153
145
  --version, -v [boolean] show version
154
146
  `));
155
147
  }
148
+ function printVersion() {
149
+ console.log(chalk_1.default.cyan(`Typescript Version: ${require('typescript/package.json').version}`));
150
+ if (isExtensionEnv) {
151
+ console.log(chalk_1.default.cyan(`Omnia Fx Version: ${require('@omnia/tooling/package.json').version}`));
152
+ }
153
+ }
156
154
  /********************* Execute ***********************/
157
155
  async function run() {
158
156
  validate();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling",
3
3
  "license": "MIT",
4
- "version": "8.0.7-vnext",
4
+ "version": "8.0.9-vnext",
5
5
  "description": "Provide basic stuffs extensible for omnia extension.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "main": "index.js",
28
28
  "dependencies": {
29
- "@omnia/types": "8.0.7-vnext",
29
+ "@omnia/types": "8.0.9-vnext",
30
30
  "@types/node": "18.13.0",
31
31
  "tslib": "2.3.1",
32
32
  "typescript": "4.9.4",