Skip to content

Commit 4ebb3b1

Browse files
committed
fixes for build and run project on macOS
1 parent 34a61f0 commit 4ebb3b1

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

bin/makeExecutable.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ IFS=$'\n\t'
55
files=("$@")
66

77
for file in ${files[*]}; do
8-
sed -i '1s|^|#!/usr/bin/env node\n\n|' $file && chmod +x $file
8+
sed -i '' '1s|^|#!/usr/bin/env node\'$'\n''\'$'\n''|' "$file" && chmod +x "$file"
99
done

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"prebuild": "npm run build:clear",
8585
"build": "tsc; echo 'Compilation completed'",
8686
"postbuild": "npm run build:rename && npm run build:remove && npm run build:copy && npm run build:init",
87-
"prebuild:rename": "mkdir --parents ./build/node_modules",
87+
"prebuild:rename": "mkdir -p ./build/node_modules",
8888
"build:rename": "mv ./build/src ./build/node_modules/e2ed",
8989
"build:remove": "npm run build:remove:empty-d-ts && npm run build:remove:types-js",
9090
"build:remove:empty-d-ts": "find ./build/node_modules/e2ed/ -name *.d.ts -size 11c -exec rm {} \\;",

src/utils/document/getDocumentUrl.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ let clientGetDocumentUrl: ClientFunction<[], Url> | undefined;
1313
*/
1414
export const getDocumentUrl = async (): Promise<Url> => {
1515
if (clientGetDocumentUrl === undefined) {
16-
clientGetDocumentUrl = createClientFunction<[], Url>(() => document.URL as Url, {
17-
name: 'getDocumentUrl',
18-
});
16+
clientGetDocumentUrl = createClientFunction<[], Url>(
17+
() => document.URL as Url,
18+
{
19+
name: 'getDocumentUrl',
20+
retries: 3,
21+
},
22+
);
1923
}
2024

2125
const url = await clientGetDocumentUrl();

0 commit comments

Comments
 (0)