build: fix build scripts on macOS (#33854)
In #33823, `scripts/package-builds.sh` (which is used by both `build-packages-dist.sh` and `build-ivy-npm-packages.sh`) was updated to use `realpath`. It turns out that `realpath` does not exist on macOS, so the build scripts do not work there. In order to fix this (and also reduce the likelihood of introducing similar issues in the future), this commit changes these bash scripts to Node.js scripts (using [ShellJS](https://github.com/shelljs/shelljs) for a cross-platform implementation of Unix shell commands where necessary). PR Close #33854
This commit is contained in:

committed by
Alex Rickabaugh

parent
e641eaaae0
commit
5bfcd8231a
@ -12,7 +12,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"build-dist": "../../scripts/build-packages-dist.sh && yarn install --check-files",
|
||||
"build-dist": "node ../../scripts/build-packages-dist.js && yarn install --check-files",
|
||||
"cleanup": "rm -rf ti-*.log tsserver.log",
|
||||
"golden": "yarn build && node generate.js",
|
||||
"test": "yarn cleanup && yarn build && jasmine test.js"
|
||||
|
Reference in New Issue
Block a user