Skip to content

Commit a238850

Browse files
authored
#157 Create Typescript Index file when generating Typescript declarations (#160)
Signed-off-by: CTomlyn <[email protected]>
1 parent ba82410 commit a238850

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/generateTS.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ replace_string_in_file() {
3939
local file_path="$1"
4040
local url="$2"
4141

42-
local old_string="\"\$ref\": \"https:\/\/api.dataplatform.ibm.com\/schemas\/common-pipeline\/"$url"\/"
43-
local new_string="\"\$ref\": \".\/"
42+
local old_string=": \"https:\/\/api.dataplatform.ibm.com\/schemas\/common-pipeline\/"$url
43+
local new_string=": \"."
44+
45+
echo "$file_path"
46+
echo "$url"
47+
echo "$old_string"
48+
echo "$new_string"
4449

4550
sed -i '' "s/$old_string/$new_string/g" "$file_path"
4651
}

0 commit comments

Comments
 (0)