sn-typescript-util 1.3.1 → 1.3.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 +2 -2
- package/bun.lockb +0 -0
- package/package.json +7 -7
- package/scripts/release.sh +2 -0
- package/scripts/snts.ts +4 -4
package/README.md
CHANGED
|
@@ -27,9 +27,9 @@ Using TypeScript, the CLI provides an enhanced developer workflow.
|
|
|
27
27
|
## Prerequisites
|
|
28
28
|
|
|
29
29
|
- [Node.js](https://nodejs.org/)
|
|
30
|
-
- [
|
|
30
|
+
- [Ruby](https://www.ruby-lang.org/en/documentation/installation/)
|
|
31
31
|
- [ServiceNow Extension for VS Code](https://marketplace.visualstudio.com/items?itemName=ServiceNow.now-vscode)
|
|
32
|
-
-
|
|
32
|
+
- An [imported application](https://docs.servicenow.com/bundle/vancouver-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.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "A TypeScript utility for ServiceNow developers using VS Code",
|
|
5
5
|
"bin": {
|
|
6
6
|
"snts": "bin/snts.js"
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"type": "module",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@clack/prompts": "^0.7.0",
|
|
28
|
-
"@types/servicenow": "^10.0.
|
|
28
|
+
"@types/servicenow": "^10.0.3",
|
|
29
29
|
"colorette": "^2.0.20",
|
|
30
|
-
"commander": "^11.
|
|
30
|
+
"commander": "^11.1.0",
|
|
31
31
|
"npm-add-script": "^1.1.0",
|
|
32
32
|
"typescript": "^5.2.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
36
|
-
"@typescript-eslint/parser": "^6.
|
|
37
|
-
"bun-types": "^1.0.
|
|
38
|
-
"eslint": "^8.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
36
|
+
"@typescript-eslint/parser": "^6.9.1",
|
|
37
|
+
"bun-types": "^1.0.9",
|
|
38
|
+
"eslint": "^8.53.0",
|
|
39
39
|
"prettier": "^3.0.3"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/scripts/release.sh
CHANGED
package/scripts/snts.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { Workspace } from './workspace.js';
|
|
|
11
11
|
|
|
12
12
|
async function doBuild() {
|
|
13
13
|
const s = startPrompts('Installing configs', 'Build started');
|
|
14
|
-
return await execFile(getFilePath('init.rb'), (stdout) => {
|
|
14
|
+
return await execFile(getFilePath('init.rb'), (stdout: unknown) => {
|
|
15
15
|
stopPrompt(s, 'Configs installed');
|
|
16
16
|
runSync();
|
|
17
17
|
return stdout;
|
|
@@ -20,7 +20,7 @@ async function doBuild() {
|
|
|
20
20
|
|
|
21
21
|
async function doCompile() {
|
|
22
22
|
const s = startPrompts('Processing', 'Compile started');
|
|
23
|
-
return await execFile(getFilePath('compile.rb'), (stdout) => {
|
|
23
|
+
return await execFile(getFilePath('compile.rb'), (stdout: unknown) => {
|
|
24
24
|
stopPrompt(s, 'Completed');
|
|
25
25
|
return stdout;
|
|
26
26
|
});
|
|
@@ -48,7 +48,7 @@ function doOptions(program: any) {
|
|
|
48
48
|
|
|
49
49
|
async function doSync() {
|
|
50
50
|
const s = startPrompts('Processing', 'Sync started');
|
|
51
|
-
return await execFile(getFilePath('sync.sh'), (stdout:
|
|
51
|
+
return await execFile(getFilePath('sync.sh'), (stdout: unknown) => {
|
|
52
52
|
stopPrompt(s, 'Completed');
|
|
53
53
|
return stdout;
|
|
54
54
|
});
|
|
@@ -115,7 +115,7 @@ function introPrompt(msg: string) {
|
|
|
115
115
|
|
|
116
116
|
async function runSync() {
|
|
117
117
|
const s = startPrompts('Syncing', null);
|
|
118
|
-
return await execFile(getFilePath('sync.sh'), (stdout) => {
|
|
118
|
+
return await execFile(getFilePath('sync.sh'), (stdout: unknown) => {
|
|
119
119
|
stopPrompt(s, 'Sync completed');
|
|
120
120
|
outro('Completed');
|
|
121
121
|
return stdout;
|