Skip to content

Commit e608080

Browse files
authored
Merge pull request #41 from algorandfoundation/chore/update-dep
chore: update to use latest puya-ts, algorand-typescript and algorand-typescript-testing
2 parents c97e58f + e5fdb1f commit e608080

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
lines changed

examples/production/.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"files.eol": "\n",
3+
"algorandTypeScript.languageServer.enable": true,
34
"editor.formatOnSave": true,
45
"editor.defaultFormatter": "esbenp.prettier-vscode",
56
"editor.codeActionsOnSave": {

examples/production/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"npm": ">=9.0"
2121
},
2222
"dependencies": {
23-
"@algorandfoundation/algorand-typescript": "~1.0.0-beta.25 <1.0.0"
23+
"@algorandfoundation/algorand-typescript": "^1.0.1"
2424
},
2525
"devDependencies": {
2626
"@algorandfoundation/algokit-client-generator": "^6.0.0",
2727
"@algorandfoundation/algokit-utils": "^9.0.0",
2828
"@algorandfoundation/algokit-utils-debug": "^1.0.4",
29-
"@algorandfoundation/puya-ts": "~1.0.0-beta.50 <1.0.0",
29+
"@algorandfoundation/puya-ts": "^1.0.1",
3030
"@rollup/plugin-typescript": "^12.1.2",
3131
"@tsconfig/node22": "^22.0.0",
3232
"algosdk": "^3.0.0",
@@ -37,7 +37,7 @@
3737
"typescript-eslint": "^8.19.1",
3838
"prettier": "^3.4.2",
3939
"ts-node-dev": "^2.0.0",
40-
"@algorandfoundation/algorand-typescript-testing": "~1.0.0-beta.30 <1.0.0",
40+
"@algorandfoundation/algorand-typescript-testing": "^1.0.1",
4141
"vitest": "^2.1.8",
4242
"@vitest/coverage-v8": "^2.1.8",
4343
"typescript": "^5.7.3"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
22
"files.eol": "\n",
3+
"algorandTypeScript.languageServer.enable": true,
34
}

examples/starter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"npm": ">=9.0"
1515
},
1616
"dependencies": {
17-
"@algorandfoundation/algorand-typescript": "~1.0.0-beta.25 <1.0.0"
17+
"@algorandfoundation/algorand-typescript": "^1.0.1"
1818
},
1919
"devDependencies": {
2020
"@algorandfoundation/algokit-client-generator": "^6.0.0",
2121
"@algorandfoundation/algokit-utils": "^9.0.0",
2222
"@algorandfoundation/algokit-utils-debug": "^1.0.4",
23-
"@algorandfoundation/puya-ts": "~1.0.0-beta.50 <1.0.0",
23+
"@algorandfoundation/puya-ts": "^1.0.1",
2424
"@rollup/plugin-typescript": "^12.1.2",
2525
"@tsconfig/node22": "^22.0.0",
2626
"algosdk": "^3.0.0",

template_content/package.json.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
"npm": ">=9.0"
2929
},
3030
"dependencies": {
31-
"@algorandfoundation/algorand-typescript": "~1.0.0-beta.25 <1.0.0"
31+
"@algorandfoundation/algorand-typescript": "^1.0.1"
3232
},
3333
"devDependencies": {
3434
"@algorandfoundation/algokit-client-generator": "^6.0.0",
3535
"@algorandfoundation/algokit-utils": "^9.0.0",
3636
"@algorandfoundation/algokit-utils-debug": "^1.0.4",
37-
"@algorandfoundation/puya-ts": "~1.0.0-beta.50 <1.0.0",
37+
"@algorandfoundation/puya-ts": "^1.0.1",
3838
"@rollup/plugin-typescript": "^12.1.2",
3939
"@tsconfig/node22": "^22.0.0",
4040
"algosdk": "^3.0.0",
@@ -52,7 +52,7 @@
5252
{%- endif %}
5353
"ts-node-dev": "^2.0.0",
5454
{%- if use_vitest %}
55-
"@algorandfoundation/algorand-typescript-testing": "~1.0.0-beta.30 <1.0.0",
55+
"@algorandfoundation/algorand-typescript-testing": "^1.0.1",
5656
"vitest": "^2.1.8",
5757
"@vitest/coverage-v8": "^2.1.8",
5858
{%- endif %}

template_content/{% if ide_vscode %}.vscode{% endif %}/settings.json.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"files.eol": "\n",
3+
"algorandTypeScript.languageServer.enable": true,
34
{% if use_prettier -%}
45
"editor.formatOnSave": true,
56
"editor.defaultFormatter": "esbenp.prettier-vscode",

tests/test_templates.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
BUILD_ARGS = ["algokit", "project", "run", "build"]
2323
TEST_ARGS = ["algokit", "project", "run", "test"]
2424
LINT_ARGS = ["algokit", "project", "run", "lint"]
25+
JS_PKG_MGR_ARGS = ["algokit", "config", "js-package-manager", "npm"]
26+
PY_PKG_MGR_ARGS = ["algokit", "config", "py-package-manager", "poetry"]
2527
BOOTSTRAP_ARGS = ["algokit", "project", "bootstrap", "all", "--no-ci"]
2628

2729

@@ -121,7 +123,7 @@ def run_init(
121123
content = src_path_pattern.sub("_src_path: <src>", content)
122124
copier_answers.write_text(content, "utf-8")
123125

124-
check_args = [BOOTSTRAP_ARGS, BUILD_ARGS]
126+
check_args = [JS_PKG_MGR_ARGS, PY_PKG_MGR_ARGS, BOOTSTRAP_ARGS, BUILD_ARGS]
125127

126128
processed_questions = _load_copier_yaml(copier_answers)
127129
if processed_questions["preset_name"] == "production":

0 commit comments

Comments
 (0)