50
50
# Note, all find statements should be written with `.` or `./path` as
51
51
# the search path so that these exclusions match.
52
52
FIND_EXCLUSIONS = \
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 \)
53
+ -not \( \( -path '*/.git/*' -o -path './build/*' -o -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' -o -path '*/ out/*' -o -path './coderd/apidoc/*' -o -path '*/.next /*' \) -prune \)
54
54
# Source files used for make targets, evaluated on use.
55
55
GO_SRC_FILES := $(shell find . $(FIND_EXCLUSIONS ) -type f -name '* .go' -not -name '* _test.go')
56
56
# All the shell files in the repo, excluding ignored files.
@@ -357,13 +357,13 @@ build/coder_helm_$(VERSION).tgz:
357
357
358
358
site/out/index.html : site/package.json $(shell find ./site $(FIND_EXCLUSIONS ) -type f \( -name '* .ts' -o -name '* .tsx' \) )
359
359
cd site
360
- ../scripts/yarn_install .sh
361
- yarn build
360
+ ../scripts/pnpm_install .sh
361
+ pnpm build
362
362
363
363
offlinedocs/out/index.html : $(shell find ./offlinedocs $(FIND_EXCLUSIONS ) -type f) $(shell find ./docs $(FIND_EXCLUSIONS ) -type f | sed 's: :\\ :g')
364
364
cd offlinedocs
365
- ../scripts/yarn_install .sh
366
- yarn export
365
+ ../scripts/pnpm_install .sh
366
+ pnpm export
367
367
368
368
build/coder_docs_$(VERSION ) .tgz : offlinedocs/out/index.html
369
369
tar -czf " $@ " -C offlinedocs/out .
@@ -390,9 +390,9 @@ fmt/prettier:
390
390
cd site
391
391
# Avoid writing files in CI to reduce file write activity
392
392
ifdef CI
393
- yarn run format:check
393
+ pnpm run format:check
394
394
else
395
- yarn run format:write
395
+ pnpm run format:write
396
396
endif
397
397
.PHONY : fmt/prettier
398
398
@@ -420,7 +420,7 @@ lint/site-icons:
420
420
421
421
lint/ts :
422
422
cd site
423
- yarn && yarn lint
423
+ pnpm i && pnpm lint
424
424
.PHONY : lint/ts
425
425
426
426
lint/go :
@@ -532,29 +532,26 @@ provisionerd/proto/provisionerd.pb.go: provisionerd/proto/provisionerd.proto
532
532
site/src/api/typesGenerated.ts : scripts/apitypings/main.go $(shell find ./codersdk $(FIND_EXCLUSIONS ) -type f -name '* .go')
533
533
go run scripts/apitypings/main.go > site/src/api/typesGenerated.ts
534
534
cd site
535
- yarn run format:types
535
+ pnpm run format:types
536
536
537
537
coderd/rbac/object_gen.go : scripts/rbacgen/main.go coderd/rbac/object.go
538
538
go run scripts/rbacgen/main.go ./coderd/rbac > coderd/rbac/object_gen.go
539
539
540
540
docs/admin/prometheus.md : scripts/metricsdocgen/main.go scripts/metricsdocgen/metrics
541
541
go run scripts/metricsdocgen/main.go
542
- cd site
543
- yarn run format:write:only ../docs/admin/prometheus.md
542
+ pnpm run format:write:only ./docs/admin/prometheus.md
544
543
545
544
docs/cli.md : scripts/clidocgen/main.go $(GO_SRC_FILES )
546
545
BASE_PATH=" ." go run ./scripts/clidocgen
547
- cd site
548
- yarn run format:write:only ../docs/cli.md ../docs/cli/* .md ../docs/manifest.json
546
+ pnpm run format:write:only ./docs/cli.md ./docs/cli/* .md ./docs/manifest.json
549
547
550
548
docs/admin/audit-logs.md : scripts/auditdocgen/main.go enterprise/audit/table.go coderd/rbac/object_gen.go
551
549
go run scripts/auditdocgen/main.go
552
- cd site
553
- yarn run format:write:only ../docs/admin/audit-logs.md
550
+ pnpm run format:write:only ./docs/admin/audit-logs.md
554
551
555
552
coderd/apidoc/swagger.json : $(shell find ./scripts/apidocgen $(FIND_EXCLUSIONS ) -type f) $(wildcard coderd/* .go) $(wildcard enterprise/coderd/* .go) $(wildcard codersdk/* .go) $(wildcard enterprise/wsproxy/wsproxysdk/* .go) $(DB_GEN_FILES ) .swaggo docs/manifest.json coderd/rbac/object_gen.go
556
553
./scripts/apidocgen/generate.sh
557
- yarn run --cwd=site format:write:only .. /docs/api .. /docs/manifest.json . ./coderd/apidoc/swagger.json
554
+ pnpm run format:write:only ./docs/api ./docs/manifest.json ./coderd/apidoc/swagger.json
558
555
559
556
update-golden-files : cli/testdata/.gen-golden helm/tests/testdata/.gen-golden scripts/ci-report/testdata/.gen-golden enterprise/cli/testdata/.gen-golden
560
557
.PHONY : update-golden-files
0 commit comments