sn-typescript-util 1.2.8 → 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 +1 -2
- package/scripts/build.rb +0 -10
- package/scripts/install.sh +1 -2
- package/templates/tsconfig.json +3 -8
- package/templates/nodemon.json +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sn-typescript-util",
|
|
3
|
-
"version": "1.
|
|
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"
|
|
@@ -29,7 +29,6 @@
|
|
|
29
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
33
|
"typescript": "^5.2.2"
|
|
35
34
|
},
|
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/install.sh
CHANGED
package/templates/tsconfig.json
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "es5",
|
|
4
|
-
"outDir": "
|
|
4
|
+
"outDir": "@project/src",
|
|
5
5
|
"baseUrl": ".",
|
|
6
|
-
"
|
|
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
|
}
|