sn-typescript-util 1.2.7 → 1.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sn-typescript-util",
3
- "version": "1.2.7",
3
+ "version": "1.3.0",
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.5.9",
29
- "@types/servicenow": "^10.0.1",
28
+ "@types/node": "^20.7.1",
29
+ "@types/servicenow": "^10.0.2",
30
30
  "colorette": "^2.0.20",
31
31
  "commander": "^11.0.0",
32
- "nodemon": "^3.0.1",
33
32
  "npm-add-script": "^1.1.0",
34
- "prettier": "^3.0.3",
35
33
  "typescript": "^5.2.2"
36
34
  },
37
35
  "devDependencies": {
38
- "@typescript-eslint/eslint-plugin": "^6.5.0",
36
+ "@typescript-eslint/eslint-plugin": "^6.7.3",
39
37
  "@typescript-eslint/parser": "^6.5.0",
40
- "eslint": "^8.48.0"
38
+ "eslint": "^8.50.0",
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,8 +55,6 @@ module ServiceNow
64
55
 
65
56
  def transpile
66
57
  %x( tsc )
67
- %x( prettier --write "#{@out_dir}/**/*.js" )
68
- %x( rsync -au --exclude="Interfaces" "#{@out_dir}/" "#{@app}/src" )
69
58
  end
70
59
  end
71
60
  end
@@ -1,9 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  readonly packages=(
4
- 'nodemon'
5
4
  'npm-add-script'
6
- 'prettier'
7
5
  'typescript'
8
6
  )
9
7
 
@@ -12,4 +10,4 @@ do
12
10
  npm i -g $p
13
11
  done
14
12
 
15
- npmAddScript -k watch -v "nodemon --exec snts -c"
13
+ npmAddScript -k watch -v "tsc --watch"
@@ -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
  }
@@ -1,8 +0,0 @@
1
- {
2
- "verbose": true,
3
- "ignore": ["Interfaces"],
4
- "watch": [
5
- "@project/ts/**/*.ts"
6
- ],
7
- "ext": "ts"
8
- }