mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix prettier after moving node_modules to repo dir (#1413)
This commit is contained in:
parent
dec0fbe845
commit
c63e0abd68
7 changed files with 6 additions and 10 deletions
2
.prettierignore
Normal file
2
.prettierignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
licenses.json
|
||||
vendor
|
|
@ -36,4 +36,5 @@ pkg_tar(
|
|||
exports_files([
|
||||
"defs.bzl",
|
||||
"package.json",
|
||||
".prettierrc",
|
||||
])
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
licenses.json
|
||||
vendor
|
||||
lib/translate.ts
|
||||
lib/i18n/modules.ts
|
||||
backend_proto.d.ts
|
|
@ -12,7 +12,6 @@ sql_format_setup()
|
|||
#################
|
||||
|
||||
exports_files([
|
||||
".prettierrc",
|
||||
".eslintrc.js",
|
||||
"licenses.json",
|
||||
"sql_format.ts",
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
# this is a hack to invoke prettier directly from Bazel
|
||||
ts=${BUILD_WORKSPACE_DIRECTORY}/ts
|
||||
(cd $ts && ./node_modules/.bin/prettier --config .prettierrc --write . $ts/../qt/aqt/data/web/js)
|
||||
(cd "${BUILD_WORKSPACE_DIRECTORY}" && node_modules/.bin/prettier --config .prettierrc --write ts qt/aqt/data/web/js)
|
||||
|
|
|
@ -15,11 +15,11 @@ def prettier_test(name = "format_check", srcs = None, exclude = [], **kwargs):
|
|||
name = name,
|
||||
args = [
|
||||
"--config",
|
||||
"$(location //ts:.prettierrc)",
|
||||
"$(location //:.prettierrc)",
|
||||
"--check",
|
||||
] + [native.package_name() + "/" + f for f in srcs],
|
||||
data = [
|
||||
"//ts:.prettierrc",
|
||||
"//:.prettierrc",
|
||||
"@npm//prettier-plugin-svelte",
|
||||
] + srcs,
|
||||
**kwargs
|
||||
|
|
Loading…
Reference in a new issue