Skip to content

Commit c6530db

Browse files
authored
Merge pull request #628 from Shopify/cart-transform/outdated-toml-template
[CartTransform] Correct outdated TOML templates
2 parents c2aacf2 + 48f6ebb commit c6530db

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
name = "test-demo"
2-
type = "cart_transform"
3-
title = "cart transform"
41
api_version = "2024-04"
52

6-
[build]
7-
command = ""
8-
path = "dist/function.wasm"
3+
[[extensions]]
4+
name = "test-demo"
5+
type = "function"
6+
7+
[[extensions.targeting]]
8+
target = "purchase.cart-transform.run"
9+
input_query = "src/run.graphql"
10+
export = "run"
11+
12+
[extensions.build]
13+
command = ""
14+
path = "dist/function.wasm"
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
name = "cart merge expand"
2-
type = "cart_transform"
3-
title = "cart merge expand"
1+
42
api_version = "2024-04"
53

6-
[build]
7-
command = "cargo build --target=wasm32-wasip1 --release"
8-
path = "target/wasm32-wasip1/release/bundle_cart_transform.wasm"
4+
[[extensions]]
5+
name = "cart merge expand"
6+
type = "function"
7+
8+
[[extensions.targeting]]
9+
target = "purchase.cart-transform.run"
10+
input_query = "src/run.graphql"
11+
export = "run"
12+
13+
[extensions.build]
14+
command = "cargo build --target=wasm32-wasip1 --release"
15+
path = "target/wasm32-wasip1/release/bundle_cart_transform.wasm"
16+
watch = [ "src/**/*.rs" ]

0 commit comments

Comments
 (0)