Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Generate JSON schema types
# Schema types are required to correctly lint the TypeScript code
run: pnpm admin build-schema
run: pnpm run build-schema
- name: Run ESLint
run: pnpm lint --cache-strategy content
- name: Validate NgBot Configuration
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Generate JSON schema types
# Schema types are required to correctly lint the TypeScript code
run: pnpm admin build-schema
run: pnpm run build-schema
- name: Run ESLint
run: pnpm lint --cache-strategy content
- name: Validate NgBot Configuration
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"bazel": "bazelisk",
"test": "bazel test //packages/...",
"build": "pnpm -s admin build",
"build-schema": "bazel build //... --build_tag_filters schema --symlink_prefix dist-schema/",
"lint": "eslint --cache --max-warnings=0 \"**/*.@(ts|mts|cts)\"",
"templates": "pnpm -s admin templates",
"validate": "pnpm -s admin validate",
Expand Down
72 changes: 0 additions & 72 deletions scripts/build-schema.mts

This file was deleted.

1 change: 1 addition & 0 deletions tools/ng_cli_schema_generator.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ def cli_json_schema(name, src, out, data = []):
js_run_binary(
name = name,
outs = [out],
tags = ["schema"],
srcs = [src] + data,
tool = "//tools:ng_cli_schema",
progress_message = "Generating CLI interface from %s" % src,
Expand Down
1 change: 1 addition & 0 deletions tools/ts_json_schema.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def ts_json_schema(name, src, data = []):
name = name + ".interface",
outs = [out],
srcs = [src] + data,
tags = ["schema"],
tool = "//tools:quicktype_runner",
progress_message = "Generating TS interface for %s" % src,
mnemonic = "TsJsonSchema",
Expand Down