Skip to content

Commit e6db647

Browse files
authored
Merge pull request #594 from Shopify/dc-pickup-point
Update pickup points
2 parents aa7b3db + 5f7c154 commit e6db647

File tree

9 files changed

+25
-11
lines changed

9 files changed

+25
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "{{name}}",
3+
"description": "{{name}}"
4+
}

order-routing/javascript/pickup-point-delivery-option-generators/default/shopify.extension.toml.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
api_version = "unstable"
22

33
[[extensions]]
4-
name = "{{name}}"
4+
name = "t:name"
55
handle = "{{handle}}"
66
type = "function"
77
{% if uid %}uid = "{{ uid }}"{% endif %}

order-routing/rust/pickup-point-delivery-option-generators/default/Cargo.toml.liquid

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
[package]
2-
name = "{{handle}}"
2+
name = "{{handle | replace: " ", "-" | downcase}}"
33
version = "1.0.0"
44
edition = "2021"
5-
rust-version = "1.62"
6-
7-
[lib]
8-
crate-type = ["cdylib"]
95

106
[dependencies]
117
serde = { version = "1.0.13", features = ["derive"] }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "{{name}}",
3+
"description": "{{name}}"
4+
}

order-routing/rust/pickup-point-delivery-option-generators/default/shopify.extension.toml.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
api_version = "unstable"
22

33
[[extensions]]
4-
name = "{{name}}"
4+
name = "t:name"
55
handle = "{{handle}}"
66
type = "function"
77
{% if uid %}uid = "{{ uid }}"{% endif %}
@@ -18,7 +18,7 @@ export = "run"
1818

1919
[extensions.build]
2020
command = "cargo build --target=wasm32-wasip1 --release"
21-
path = "target/wasm32-wasip1/release/{{handle | replace: "-", "_" | downcase}}.wasm"
21+
path = "target/wasm32-wasip1/release/{{handle | replace: " ", "_" | downcase}}.wasm"
2222
watch = ["src/**/*.rs"]
2323

2424
[extensions.ui.paths]

order-routing/rust/pickup-point-delivery-option-generators/default/src/lib.rs

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use std::process;
2+
pub mod fetch;
3+
pub mod run;
4+
5+
fn main() {
6+
eprintln!("Please invoke a named export.");
7+
process::exit(1);
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "{{name}}",
3+
"description": "{{name}}"
4+
}

order-routing/typescript/pickup-point-delivery-option-generators/default/shopify.extension.toml.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
api_version = "unstable"
22

33
[[extensions]]
4-
name = "{{name}}"
4+
name = "t:name"
55
handle = "{{handle}}"
66
type = "function"
77
{% if uid %}uid = "{{ uid }}"{% endif %}

0 commit comments

Comments
 (0)