Skip to content

Commit 6ac7d86

Browse files
authored
chore: prevent gen from rerunning every time (#7985)
1 parent b70d2b1 commit 6ac7d86

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ endif
5050
# Note, all find statements should be written with `.` or `./path` as
5151
# the search path so that these exclusions match.
5252
FIND_EXCLUSIONS= \
53-
-not \( \( -path '*/.git/*' -o -path './build/*' -o -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' -o -path './site/out/*' \) -prune \)
53+
-not \( \( -path '*/.git/*' -o -path './build/*' -o -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' -o -path './site/out/*' -o -path './coderd/apidoc/*' \) -prune \)
5454
# Source files used for make targets, evaluated on use.
5555
GO_SRC_FILES = $(shell find . $(FIND_EXCLUSIONS) -type f -name '*.go')
5656
# All the shell files in the repo, excluding ignored files.
@@ -522,7 +522,7 @@ docs/admin/prometheus.md: scripts/metricsdocgen/main.go scripts/metricsdocgen/me
522522
cd site
523523
yarn run format:write:only ../docs/admin/prometheus.md
524524

525-
docs/cli.md: scripts/clidocgen/main.go $(GO_SRC_FILES) docs/manifest.json
525+
docs/cli.md: scripts/clidocgen/main.go $(GO_SRC_FILES)
526526
BASE_PATH="." go run ./scripts/clidocgen
527527
cd site
528528
yarn run format:write:only ../docs/cli.md ../docs/cli/*.md ../docs/manifest.json

site/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "Coder V2 (Workspaces V2)",
44
"repository": "https://github.com/coder/coder",
55
"private": true,
6+
"license": "AGPL-3.0",
67
"scripts": {
78
"postinstall": "yarn typegen",
89
"build": "NODE_ENV=production yarn vite build",

0 commit comments

Comments
 (0)