From 2215bf726a962dd9acf80aa57db1097cf8b3bd4c Mon Sep 17 00:00:00 2001 From: Neil Campbell Date: Sat, 23 Mar 2024 00:35:51 +0800 Subject: [PATCH] chore: fix up the ts deployer build command --- .../.algokit.toml | 4 ++-- .../starter_beaker_smart_contract_typescript/.algokit.toml | 4 ++-- template_content/.algokit.toml.jinja | 6 ------ 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/examples/generators/production_beaker_smart_contract_typescript/.algokit.toml b/examples/generators/production_beaker_smart_contract_typescript/.algokit.toml index 4f22bf7..2e4df76 100644 --- a/examples/generators/production_beaker_smart_contract_typescript/.algokit.toml +++ b/examples/generators/production_beaker_smart_contract_typescript/.algokit.toml @@ -22,8 +22,8 @@ environment_secrets = [] [project.run] # Commands intented for use locally and in CI -build = { commands = [ - 'npm run build', +build = { commands = [ + 'poetry run python -m smart_contracts build', ], description = 'Build all smart contracts in the project' } test = { commands = [ 'npm run test', diff --git a/examples/generators/starter_beaker_smart_contract_typescript/.algokit.toml b/examples/generators/starter_beaker_smart_contract_typescript/.algokit.toml index 43c2ec2..75dfc52 100644 --- a/examples/generators/starter_beaker_smart_contract_typescript/.algokit.toml +++ b/examples/generators/starter_beaker_smart_contract_typescript/.algokit.toml @@ -21,8 +21,8 @@ environment_secrets = [] [project.run] # Commands intented for use locally and in CI -build = { commands = [ - 'npm run build', +build = { commands = [ + 'poetry run python -m smart_contracts build', ], description = 'Build all smart contracts in the project' } lint = { commands = [ ], description = 'Perform linting' } diff --git a/template_content/.algokit.toml.jinja b/template_content/.algokit.toml.jinja index c36b1bb..fbfe692 100644 --- a/template_content/.algokit.toml.jinja +++ b/template_content/.algokit.toml.jinja @@ -28,15 +28,9 @@ environment_secrets = [] [project.run] # Commands intented for use locally and in CI -{%- if deployment_language == 'python' %} build = { commands = [ 'poetry run python -m smart_contracts build', ], description = 'Build all smart contracts in the project' } -{%- elif deployment_language == 'typescript' %} -build = { commands = [ - 'npm run build', -], description = 'Build all smart contracts in the project' } -{%- endif %} {%- if deployment_language == 'python' and use_python_pytest %} test = { commands = [ 'poetry run pytest',