Skip to content

Commit

Permalink
feat(dojo-bindgen): signed integers & typescript (#2191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo authored Jul 20, 2024
1 parent 729f46f commit b2a7855
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 100 deletions.
17 changes: 8 additions & 9 deletions bin/sozo/src/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ const CONTRACT_NAME_LABEL: &str = "Contract";

#[derive(Debug, Args)]
pub struct BuildArgs {
// Should we deprecate typescript bindings codegen?
// Disabled due to lack of support in dojo.js
// #[arg(long)]
// #[arg(help = "Generate Typescript bindings.")]
// pub typescript: bool,
#[arg(long)]
#[arg(help = "Generate Typescript bindings.")]
pub typescript: bool,

#[arg(long)]
#[arg(help = "Generate Typescript bindings.")]
pub typescript_v2: bool,
Expand Down Expand Up @@ -92,10 +91,9 @@ impl BuildArgs {

let mut builtin_plugins = vec![];

// Disable typescript for now. Due to lack of support and maintenance in dojo.js
// if self.typescript {
// builtin_plugins.push(BuiltinPlugins::Typescript);
// }
if self.typescript {
builtin_plugins.push(BuiltinPlugins::Typescript);
}

if self.typescript_v2 {
builtin_plugins.push(BuiltinPlugins::TypeScriptV2);
Expand Down Expand Up @@ -164,6 +162,7 @@ impl Default for BuildArgs {

Self {
features,
typescript: false,
typescript_v2: false,
unity: false,
bindings_output: "bindings".to_string(),
Expand Down
Loading

0 comments on commit b2a7855

Please sign in to comment.