Skip to content
Merged
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: 4 additions & 4 deletions dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ check:
commands:
# Repo-wide
codegen:
desc: "Generate UCP models. Usage: dev codegen <kotlin|swift>"
syntax: "<kotlin|swift>"
desc: "Generate UCP models. Usage: dev codegen <kotlin|swift|typescript>"
syntax: "<kotlin|swift|typescript>"
run: |
case "$1" in
kotlin|swift) ./protocol/scripts/generate_models.sh --lang "$1" ;;
*) echo "Usage: dev codegen <kotlin|swift>"; exit 1 ;;
kotlin|swift|typescript|ts) ./protocol/scripts/generate_models.sh --lang "$1" ;;
*) echo "Usage: dev codegen <kotlin|swift|typescript>"; exit 1 ;;
esac
apollo:
subcommands:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"react-native": "*"
},
"devDependencies": {
"@shopify/checkout-kit-protocol": "workspace:*",
"react-native-builder-bob": "^0.23.2",
"typescript": "^5.9.2"
},
Expand Down
9 changes: 9 additions & 0 deletions platforms/react-native/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions platforms/react-native/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packages:
- sample
- 'modules/**/*'
- '../../protocol/languages/typescript'
18 changes: 18 additions & 0 deletions protocol/languages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "@shopify/checkout-kit-protocol",
"version": "0.0.0",
"private": true,
"license": "MIT",
"description": "Generated TypeScript models for the Shopify Checkout Kit protocol.",
"types": "src/index.ts",
"scripts": {
"codegen": "../../scripts/generate_models.sh --lang typescript",
"typecheck": "tsc --noEmit"
},
"files": [
"src"
],
"devDependencies": {
"typescript": "^5.9.2"
}
}
Loading
Loading