sn-typescript-util 1.5.2 → 1.5.3
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/README.md +1 -1
- package/bun.lockb +0 -0
- package/package.json +11 -11
- package/scripts/snts.ts +3 -3
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Using TypeScript, the CLI provides an enhanced developer workflow.
|
|
|
29
29
|
|
|
30
30
|
- [Node.js](https://nodejs.org/)
|
|
31
31
|
- [ServiceNow Extension for VS Code](https://marketplace.visualstudio.com/items?itemName=ServiceNow.now-vscode)
|
|
32
|
-
- An [imported application](https://
|
|
32
|
+
- An [imported application](https://www.servicenow.com/docs/bundle/xanadu-application-development/page/build/applications/task/vscode-import-application.html) in VS Code
|
|
33
33
|
|
|
34
34
|
**[Back to top](#table-of-contents)**
|
|
35
35
|
|
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.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "A TypeScript utility for ServiceNow developers using VS Code",
|
|
5
5
|
"bin": {
|
|
6
6
|
"snts": "bin/snts.js"
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@clack/prompts": "^0.
|
|
27
|
+
"@clack/prompts": "^0.9.1",
|
|
28
28
|
"colorette": "^2.0.20",
|
|
29
|
-
"commander": "^
|
|
30
|
-
"execa": "^9.
|
|
31
|
-
"typescript": "^5.
|
|
29
|
+
"commander": "^13.0.0",
|
|
30
|
+
"execa": "^9.5.2",
|
|
31
|
+
"typescript": "^5.7.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@eslint/js": "^9.
|
|
35
|
-
"@types/commander": "^2.12.
|
|
36
|
-
"bun-types": "^1.1.
|
|
37
|
-
"eslint": "^9.
|
|
38
|
-
"prettier": "^3.2
|
|
39
|
-
"typescript-eslint": "^
|
|
34
|
+
"@eslint/js": "^9.18.0",
|
|
35
|
+
"@types/commander": "^2.12.5",
|
|
36
|
+
"bun-types": "^1.1.43",
|
|
37
|
+
"eslint": "^9.18.0",
|
|
38
|
+
"prettier": "^3.4.2",
|
|
39
|
+
"typescript-eslint": "^8.20.0"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/scripts/snts.ts
CHANGED
|
@@ -140,7 +140,7 @@ function getConstants() {
|
|
|
140
140
|
return Constants;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
function getDescription(version: string) {
|
|
143
|
+
function getDescription(version: string): string {
|
|
144
144
|
const constants = getConstants();
|
|
145
145
|
const title: string = constants.projectName;
|
|
146
146
|
const description: string = constants.projectDescription;
|
|
@@ -153,7 +153,7 @@ function getErrorMsg() {
|
|
|
153
153
|
return console.error(bold(red(msg)));
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
function getFilePath(file: string, dir: string) {
|
|
156
|
+
function getFilePath(file: string, dir: string): string {
|
|
157
157
|
const fileName = fileURLToPath(import.meta.url);
|
|
158
158
|
const dirName = path.dirname(fileName);
|
|
159
159
|
return `${path.join(dirName, `../${dir}`)}/${file}`;
|
|
@@ -265,7 +265,7 @@ function introPrompt(msg: string) {
|
|
|
265
265
|
return intro(msg);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
function parseOptions(program: Command) {
|
|
268
|
+
function parseOptions(program: Command): string {
|
|
269
269
|
const options = program.parse(process.argv).opts();
|
|
270
270
|
return options && Object.keys(program.opts()).toString();
|
|
271
271
|
}
|