Skip to content

Commit 90f9b15

Browse files
authored
Bundle copilot-client with tsup including all dependencies and integrate into recompile (#15599)
1 parent a984013 commit 90f9b15

8 files changed

Lines changed: 5956 additions & 7 deletions

File tree

.github/workflows/copilot-sdk-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ jobs:
9898
}
9999
EOF
100100
101-
# Run the client
102-
DEBUG=copilot-client cat /tmp/test/config.json | node dist/cli.js
101+
# Run the client (using index.js which exports main())
102+
DEBUG=copilot-client cat /tmp/test/config.json | node -e "import('./dist/index.js').then(m => m.main())"
103103
104104
# Verify event log was created
105105
if [ ! -f /tmp/test/events.jsonl ]; then

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ sync-action-scripts:
651651

652652
# Recompile all workflow files
653653
.PHONY: recompile
654-
recompile: build
654+
recompile: build copilot-client
655655
./$(BINARY_NAME) init --codespaces
656656
./$(BINARY_NAME) compile --validate --verbose --purge --stats
657657
# ./$(BINARY_NAME) compile --dir pkg/cli/workflows --validate --verbose --purge

0 commit comments

Comments
 (0)