sn-typescript-util 1.3.6 → 1.3.7

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.
package/bin/snts.js CHANGED
@@ -4,7 +4,7 @@ import { execFile } from 'node:child_process';
4
4
  import path from 'path';
5
5
  import { readFileSync } from 'fs';
6
6
  import { fileURLToPath } from 'url';
7
- import { bold, red } from 'colorette';
7
+ import { bold, gray, magenta, red } from 'colorette';
8
8
  import { intro, outro, spinner } from '@clack/prompts';
9
9
  async function doBuild() {
10
10
  const s = startPrompts('Installing configs', 'Build started');
@@ -66,7 +66,7 @@ function getWorkspace() {
66
66
  }
67
67
  function handleError() {
68
68
  getErrorMsg();
69
- process.exit(1);
69
+ return process.exit(1);
70
70
  }
71
71
  function handleOptions(program, options, option) {
72
72
  return (
@@ -89,7 +89,14 @@ async function hasApplication() {
89
89
  async function init() {
90
90
  const program = new Command();
91
91
  const info = await getPackageInfo();
92
- program.description(info.description);
92
+ const version = `(${info.version})`;
93
+ program.description(
94
+ `${bold(
95
+ magenta('SN TypeScript Util')
96
+ )} is a TS utility for ServiceNow developers using VS Code. ${gray(
97
+ version
98
+ )}`
99
+ );
93
100
  program.version(info.version, '-v, --version', 'output the current version');
94
101
  program.option(
95
102
  '-b, --build',
package/bun.lockb CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sn-typescript-util",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "A TypeScript utility for ServiceNow developers using VS Code",
5
5
  "bin": {
6
6
  "snts": "bin/snts.js"
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/commander": "^2.12.2",
36
- "@typescript-eslint/eslint-plugin": "^6.16.0",
37
- "@typescript-eslint/parser": "^6.16.0",
38
- "bun-types": "^1.0.20",
36
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
37
+ "@typescript-eslint/parser": "^6.17.0",
38
+ "bun-types": "^1.0.21",
39
39
  "eslint": "^8.56.0",
40
40
  "prettier": "^3.1.1"
41
41
  }
package/scripts/snts.ts CHANGED
@@ -5,7 +5,7 @@ import { execFile } from 'node:child_process';
5
5
  import path from 'path';
6
6
  import { readFileSync } from 'fs';
7
7
  import { fileURLToPath } from 'url';
8
- import { bold, red } from 'colorette';
8
+ import { bold, gray, magenta, red } from 'colorette';
9
9
  import { intro, outro, spinner } from '@clack/prompts';
10
10
  import { Options } from './options.js';
11
11
  import { Workspace } from './workspace.js';
@@ -78,7 +78,7 @@ function getWorkspace() {
78
78
 
79
79
  function handleError() {
80
80
  getErrorMsg();
81
- process.exit(1);
81
+ return process.exit(1);
82
82
  }
83
83
 
84
84
  function handleOptions(
@@ -109,7 +109,14 @@ async function hasApplication() {
109
109
  async function init() {
110
110
  const program = new Command();
111
111
  const info = await getPackageInfo();
112
- program.description(info.description);
112
+ const version = `(${info.version})`;
113
+ program.description(
114
+ `${bold(
115
+ magenta('SN TypeScript Util')
116
+ )} is a TS utility for ServiceNow developers using VS Code. ${gray(
117
+ version
118
+ )}`
119
+ );
113
120
  program.version(info.version, '-v, --version', 'output the current version');
114
121
  program.option(
115
122
  '-b, --build',