File tree Expand file tree Collapse file tree 2 files changed +26
-12
lines changed
sample-apps/bundles-cart-transform/extensions Expand file tree Collapse file tree 2 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 1
- name = " test-demo"
2
- type = " cart_transform"
3
- title = " cart transform"
4
1
api_version = " 2024-04"
5
2
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"
Original file line number Diff line number Diff line change 1
- name = " cart merge expand"
2
- type = " cart_transform"
3
- title = " cart merge expand"
1
+
4
2
api_version = " 2024-04"
5
3
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" ]
You can’t perform that action at this time.
0 commit comments