fix: correct working directory for gen:protobuf script
Fixes GitHub Actions workflow "Update WAProto" failure. Problem: - GenerateStatics.sh was being executed from project root - Script looks for ./WAProto.proto (relative to CWD) - This resolves to <root>/WAProto.proto (doesn't exist) - Should be <root>/WAProto/WAProto.proto Error in CI: ``` Error: ENOENT: no such file or directory, open 'WAProto.proto' Error: Cannot find module '.../fix-imports.js' ``` Solution: Change script execution to run from WAProto/ directory: - Before: "sh WAProto/GenerateStatics.sh" (runs from root) - After: "cd WAProto && sh GenerateStatics.sh" (runs from WAProto/) Now paths resolve correctly: - ./WAProto.proto → <root>/WAProto/WAProto.proto ✅ - ./fix-imports.js → <root>/WAProto/fix-imports.js ✅ https://claude.ai/code/session_01TvSrN9JmHZDdKMZDFWEcUS
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@
|
||||
"changelog:preview": "conventional-changelog -p angular -u",
|
||||
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
||||
"example": "tsx ./Example/example.ts",
|
||||
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
||||
"gen:protobuf": "cd WAProto && sh GenerateStatics.sh",
|
||||
"format": "prettier --write \"src/**/*.{ts,js,json,md}\"",
|
||||
"lint": "tsc && eslint src --ext .js,.ts",
|
||||
"lint:fix": "npm run format && npm run lint -- --fix",
|
||||
|
||||
Reference in New Issue
Block a user