This repository was archived by the owner on Jun 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ sources := src build/src/managed
7
7
8
8
src_managed := build/src/managed
9
9
managed_attachments := ${src_managed}/modules/${module}/attachments
10
+ managed_ts_attachments := ${src_managed}/modules/typescript/attachments
10
11
managed_examples := ${src_managed}/modules/${module}/examples
11
12
managed_partials := ${src_managed}/modules/${module}/partials
12
13
@@ -38,8 +39,10 @@ attributes:
38
39
apidocs :
39
40
cd ../sdk && npm ci && npm run typedoc
40
41
mkdir -p " ${managed_attachments} "
42
+ mkdir -p " ${managed_ts_attachments} "
41
43
rsync -a ../sdk/apidocs/ " ${managed_attachments} /api/"
42
44
bin/version.sh > " ${managed_attachments} /latest-version.txt"
45
+ cp " ${managed_attachments} /latest-version.txt" " ${managed_ts_attachments} /latest-version.txt"
43
46
44
47
examples :
45
48
mkdir -p " ${managed_examples} "
Original file line number Diff line number Diff line change @@ -90,7 +90,12 @@ class ServiceInfo {
90
90
91
91
private loadFromPkg ( filename : string = userPkgJson ) {
92
92
const json = loadJson ( filename ) ;
93
- this . pkgName = json . name ;
93
+ // try to detect if ts or js through process starting points
94
+ if ( process . argv . find ( ( arg : string ) => arg . endsWith ( '.ts' ) ) ) {
95
+ this . pkgName = json . name . replace ( 'javascript' , 'typescript' ) ;
96
+ } else {
97
+ this . pkgName = json . name ;
98
+ }
94
99
this . pkgVersion = json . version ;
95
100
}
96
101
}
You can’t perform that action at this time.
0 commit comments