Skip to content

Commit 051571d

Browse files
committed
Merge branch 'main' into weswigham/negated-types
2 parents be90172 + 050fb36 commit 051571d

365 files changed

Lines changed: 17730 additions & 2033 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/copilot-instructions.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ It is fine to implement more and more of a feature across commits, but be sure t
107107
- Do not add or change existing dependencies unless asked to.
108108
- Do not remove any debug assertions or panic calls. Existing assertions are never too strict or incorrect.
109109
- Do not use the `timeout` command when running tests or other commands, unless specifically debugging a hanging issue. Commands should be run directly without timeout wrappers in normal operation.
110+
- Do not summarize new changes in any markdown files in the repo. Specifically:
111+
- `tsc/CHANGES.md` is a historical artifact for the 6.0 to 7.0 migration, not a live document.
112+
- `CONTRIBUTING.md` only documents high-level build tool instructions, not their implementation details.
110113

111114
# PR Template
112115

‎CONTRIBUTING.md‎

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ The repository uses a Go workspace with modules in `tsc/` and `tools/`.
102102
npx hereby build # Build the native compiler into built/local/tsc
103103
npx hereby test # Run compiler and language-service Go tests
104104
npx hereby test:all # Also run benchmarks, tools, and API tests
105+
npx hereby test:codegen # Run codegen tests without regenerating source outputs
105106
npx hereby lint # Run custom golangci-lint for both Go modules
106107
npx hereby generate:go # Run the generators also exposed through go generate
107108
npx hereby generate # Regenerate all sources, assets, localization, and vendored files
@@ -116,6 +117,14 @@ Generation is owned by `Herebyfile.mjs`; Go directives forward to the same
116117
to bypass incremental caches. `generate` includes every generator and fetches
117118
the pinned LSP model when its local cache is missing or stale. Use
118119
`generate:go` for the narrower scope of `go generate ./...` in the `tsc` module.
120+
Up-to-date generators emit no status messages.
121+
122+
`npx hereby build` runs `generate` before compiling; a separate generation step
123+
is not needed. The API and package build tasks share this prerequisite, and
124+
`build:watch` runs the full incremental generation suite before every rebuild.
125+
Each watch pass clears cached input fingerprints and runs generation in-process.
126+
Restart the watcher after editing generator implementations. Generator-owned outputs are
127+
excluded from watch events to avoid regeneration loops.
119128

120129
Package-specific commands:
121130

@@ -142,19 +151,8 @@ go -C ./tsc test -run='TestLocal/<test name>' ./internal/testrunner
142151
Run:
143152

144153
```bash
145-
npx hereby generate
146-
npx hereby build
147-
npx hereby test
148-
npx hereby test:all
149-
npx hereby lint
150-
npx hereby format
151-
npx hereby check:format
152-
npm run -w @typescript/typescript build
153-
npm run -w @typescript/typescript test
154-
npm run -w native-preview build
155-
go -C ./tsc mod tidy -diff
156-
go -C ./tools mod tidy -diff
157-
go work sync
154+
npx hereby validate --all
155+
npx hereby tidy
158156
git diff --exit-code
159157
```
160158

0 commit comments

Comments
 (0)