@omnia/tooling 8.0.7-vnext → 8.0.8-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,6 +108,7 @@ function clean(greeting = true) {
112
108
  exports.clean = clean;
113
109
  function serve() {
114
110
  printLogo();
111
+ printVersion();
115
112
  if (isExtensionEnv) {
116
113
  console.log(chalk_1.default.cyan(`Version ${require('@omnia/tooling/package.json').version}`));
117
114
  }
@@ -138,9 +135,7 @@ Build System
138
135
  }
139
136
  function help() {
140
137
  printLogo();
141
- if (isExtensionEnv) {
142
- console.log(chalk_1.default.cyan(`Version ${require('@omnia/tooling/package.json').version}`));
143
- }
138
+ printVersion();
144
139
  console.log(chalk_1.default.cyan(`
145
140
  Usage: omniafx [command] [args] [--options]
146
141
 
@@ -153,6 +148,12 @@ Options:
153
148
  --version, -v [boolean] show version
154
149
  `));
155
150
  }
151
+ function printVersion() {
152
+ console.log(chalk_1.default.cyan(`Typescript Version: ${require('typescript/package.json').version}`));
153
+ if (isExtensionEnv) {
154
+ console.log(chalk_1.default.cyan(`Omnia Fx Version: ${require('@omnia/tooling/package.json').version}`));
155
+ }
156
+ }
156
157
  /********************* Execute ***********************/
157
158
  async function run() {
158
159
  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.8-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.8-vnext",
30
30
  "@types/node": "18.13.0",
31
31
  "tslib": "2.3.1",
32
32
  "typescript": "4.9.4",