mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
7 lines
260 B
Bash
Executable file
7 lines
260 B
Bash
Executable file
# this is a hack to invoke prettier directly from Bazel
|
|
node=$(pwd)/$1
|
|
node_dir=$(dirname $node)
|
|
export PATH="$node_dir:$PATH"
|
|
(cd "${BUILD_WORKSPACE_DIRECTORY}" && node_modules/.bin/prettier \
|
|
--config .prettierrc --write \
|
|
$BUILD_WORKING_DIRECTORY )
|