sn-typescript-util 1.2.8 → 1.3.1

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
@@ -98,19 +98,11 @@ async function init() {
98
98
  function introPrompt(msg) {
99
99
  return intro(msg);
100
100
  }
101
- async function runInstall() {
102
- const s = startPrompts('Installing packages', null);
103
- return await execFile(getFilePath('install.sh'), (stdout) => {
104
- stopPrompt(s, 'Packages installed');
105
- outro('Completed');
106
- return stdout;
107
- });
108
- }
109
101
  async function runSync() {
110
102
  const s = startPrompts('Syncing', null);
111
103
  return await execFile(getFilePath('sync.sh'), (stdout) => {
112
104
  stopPrompt(s, 'Sync completed');
113
- runInstall();
105
+ outro('Completed');
114
106
  return stdout;
115
107
  });
116
108
  }
package/bun.lockb ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sn-typescript-util",
3
- "version": "1.2.8",
3
+ "version": "1.3.1",
4
4
  "description": "A TypeScript utility for ServiceNow developers using VS Code",
5
5
  "bin": {
6
6
  "snts": "bin/snts.js"
@@ -25,18 +25,17 @@
25
25
  "type": "module",
26
26
  "dependencies": {
27
27
  "@clack/prompts": "^0.7.0",
28
- "@types/node": "^20.7.1",
29
28
  "@types/servicenow": "^10.0.2",
30
29
  "colorette": "^2.0.20",
31
30
  "commander": "^11.0.0",
32
- "nodemon": "^3.0.1",
33
31
  "npm-add-script": "^1.1.0",
34
32
  "typescript": "^5.2.2"
35
33
  },
36
34
  "devDependencies": {
37
35
  "@typescript-eslint/eslint-plugin": "^6.7.3",
38
36
  "@typescript-eslint/parser": "^6.5.0",
39
- "eslint": "^8.50.0",
37
+ "bun-types": "^1.0.5-canary.20231006T140143",
38
+ "eslint": "^8.51.0",
40
39
  "prettier": "^3.0.3"
41
40
  }
42
41
  }
package/scripts/build.rb CHANGED
@@ -6,14 +6,6 @@ module ServiceNow
6
6
  class Build
7
7
  def initialize
8
8
  @app = ServiceNow::Utils.new.get_application
9
- @out_dir = 'dist'
10
- end
11
-
12
- def create_nodemon_config
13
- config = 'nodemon.json'
14
- file = ServiceNow::Utils.new.fetch_file 'templates', config
15
- File.write(config, file)
16
- ServiceNow::Utils.new.replace_content config
17
9
  end
18
10
 
19
11
  def create_prettier_config
@@ -55,7 +47,6 @@ module ServiceNow
55
47
  end
56
48
 
57
49
  def make_configs
58
- create_nodemon_config
59
50
  create_tsconfig
60
51
  if has_prettier_config === false
61
52
  create_prettier_config
@@ -64,7 +55,6 @@ module ServiceNow
64
55
 
65
56
  def transpile
66
57
  %x( tsc )
67
- %x( rsync -au --exclude="Interfaces" "#{@out_dir}/" "#{@app}/src" )
68
58
  end
69
59
  end
70
60
  end
package/scripts/snts.ts CHANGED
@@ -113,20 +113,11 @@ function introPrompt(msg: string) {
113
113
  return intro(msg);
114
114
  }
115
115
 
116
- async function runInstall() {
117
- const s = startPrompts('Installing packages', null);
118
- return await execFile(getFilePath('install.sh'), (stdout) => {
119
- stopPrompt(s, 'Packages installed');
120
- outro('Completed');
121
- return stdout;
122
- });
123
- }
124
-
125
116
  async function runSync() {
126
117
  const s = startPrompts('Syncing', null);
127
118
  return await execFile(getFilePath('sync.sh'), (stdout) => {
128
119
  stopPrompt(s, 'Sync completed');
129
- runInstall();
120
+ outro('Completed');
130
121
  return stdout;
131
122
  });
132
123
  }
@@ -1,15 +1,10 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "es5",
4
- "outDir": "dist",
4
+ "outDir": "@project/src",
5
5
  "baseUrl": ".",
6
- "paths": {
7
- "*": ["./lib/dts/*.d.ts"]
8
- }
6
+ "skipLibCheck": true
9
7
  },
10
- "include": [
11
- "./@project/ts/**/*",
12
- "./lib/dts/*.d.ts"
13
- ],
8
+ "include": ["@project/ts/**/*", "lib/dts/*.d.ts"],
14
9
  "exclude": ["node_modules"]
15
10
  }
package/tsconfig.json CHANGED
@@ -6,7 +6,8 @@
6
6
  "esModuleInterop": true,
7
7
  "outDir": "bin",
8
8
  "resolveJsonModule": true,
9
- "skipLibCheck": true
9
+ "skipLibCheck": true,
10
+ "types": ["bun-types"]
10
11
  },
11
12
  "include": ["scripts"]
12
13
  }
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- readonly packages=(
4
- 'nodemon'
5
- 'npm-add-script'
6
- 'typescript'
7
- )
8
-
9
- for p in "${packages[@]}"
10
- do
11
- npm i -g $p
12
- done
13
-
14
- npmAddScript -k watch -v "nodemon --exec snts -c"
@@ -1,8 +0,0 @@
1
- {
2
- "verbose": true,
3
- "ignore": ["Interfaces"],
4
- "watch": [
5
- "@project/ts/**/*.ts"
6
- ],
7
- "ext": "ts"
8
- }