Skip to content
Open
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
8 changes: 8 additions & 0 deletions .github/workflows/conventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,13 @@ jobs:
- name: Compile all non-rust code
run: pnpm --recursive --stream --filter '!@temporalio/core-bridge' --filter '!typescript-sdk' run build

- name: Check generated payload visitor is up to date
run: |
pnpm run gen:payload-visitor
if ! git diff --exit-code -- packages/proto/src/payload-visitor.generated.ts; then
echo "::error::payload-visitor.generated.ts is out of date with the protos. Run 'pnpm run gen:payload-visitor' and commit the result."
exit 1
fi
Comment on lines +54 to +60

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

safeguard to make sure generated protos stay up to data


- run: pnpm run lint:check
- run: pnpm run lint:prune
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import importPlugin from 'eslint-plugin-import';
import prettierConfig from 'eslint-config-prettier';

export default tseslint.config(
{ ignores: ['**/node_modules/**', '**/lib/**', '**/*.js', '**/*.mjs', '**/*.cjs'] },
{ ignores: ['**/node_modules/**', '**/lib/**', '**/*.js', '**/*.mjs', '**/*.cjs', '**/*.generated.ts'] },
{
files: ['packages/*/src/**/*.ts', 'contrib/*/src/**/*.ts'],
extends: [js.configs.recommended, ...tseslint.configs.recommended, prettierConfig],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
"scripts": {
"rebuild": "pnpm run clean && pnpm run build",
"build": "pnpm --recursive --stream run build",
"build:watch": "pnpm run build:protos && tsc --build --watch packages/*/tsconfig.json",
"build:watch": "pnpm run build:protos && pnpm run gen:payload-visitor && tsc --build --watch packages/*/tsconfig.json",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building the protos package now builds the payload visitor as well. I can't think of a reason why you wouldn't want to keep them in sync but you can still run build:protos to just build the protos.

"build:protos": "tsx ./packages/proto/scripts/compile-proto.ts",
"gen:payload-visitor": "pnpm --filter @temporalio/proto run gen:payload-visitor",
"test": "pnpm --recursive --parallel --workspace-concurrency=1 --stream run test",
"test:watch": "pnpm --recursive --stream run test:watch",
"ci-stress": "node ./packages/test/lib/load/run-all-stress-ci-scenarios.js",
Expand Down
Loading
Loading