Skip to content

Commit

Permalink
fix: bugs
Browse files Browse the repository at this point in the history
chore: bump version, changelog
  • Loading branch information
krigga committed Jul 8, 2024
1 parent 31fdb57 commit ff18038
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 142 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## [0.22.0] - 2024-07-08

### Added

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ton/blueprint",
"version": "0.21.0",
"version": "0.22.0",
"description": "Framework for development of TON smart contracts",
"main": "dist/index.js",
"bin": "./dist/cli/cli.js",
Expand Down Expand Up @@ -35,7 +35,7 @@
},
"dependencies": {
"@orbs-network/ton-access": "^2.3.3",
"@tact-lang/compiler": "^1.3.0",
"@tact-lang/compiler": "^1.4.0",
"@ton-community/func-js": "^0.7.0",
"@tonconnect/sdk": "^2.2.0",
"arg": "^5.0.2",
Expand Down
6 changes: 3 additions & 3 deletions src/cli/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ List of available commands:
- create
- run
- build
- custom
- set
- help
- test
- verify
Expand Down Expand Up @@ -69,9 +69,9 @@ Flags:
set: `Usage: blueprint set <key> [value]
Available keys:
- func - overrides @ton-community/func-js-bin version, effectively setting the func version. The required version may be passed as the value, otherwise available versions will be displayed.`,
test: `Usage: blueprint test
test: `Usage: blueprint test [...args]
Just runs \`npm test\`, which by default runs \`jest\`.`,
Just runs \`npm test [...args]\`, which by default runs \`jest\`.`,
verify: `Usage: blueprint verify [contract name] [flags]
Builds a contract (similar to build command) and verifies it on https://verifier.ton.org. The contract must be already deployed on the network. If the contract's name is not specified on the command line, it will be asked interactively.
Expand Down
2 changes: 1 addition & 1 deletion src/cli/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const test: Runner = async (args, ui) => {
ui.write(helpMessages['test']);
return;
}

const testArgs = args._.slice(1); // first argument is `test`, need to get rid of it
execSync(`npm test ${testArgs.join(' ')}`, { stdio: 'inherit' });
};
125 changes: 0 additions & 125 deletions src/utils.ts

This file was deleted.

10 changes: 5 additions & 5 deletions src/utils/selection.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { COMPILE_END, getCompilablesDirectory } from '../compile/compile';
import { File } from '../types/file';

export const findCompiles = async (directory?: string): Promise<File[]> => {
directory ??= await getCompilablesDirectory();
const files = await fs.readdir(directory);
const dir = directory ?? await getCompilablesDirectory();
const files = await fs.readdir(dir);
const compilables = files.filter((file) => file.endsWith(COMPILE_END));
return compilables.map((file) => ({
path: path.join(directory, file),
path: path.join(dir, file),
name: file.slice(0, file.length - COMPILE_END.length),
}));
};
Expand All @@ -21,8 +21,8 @@ export const findScripts = async (): Promise<File[]> => {

return scripts
.map((script) => ({
name: path.join(script.path.slice(SCRIPTS_DIR.length), script.name),
path: path.join(SCRIPTS_DIR, script.path, script.name),
name: path.join(script.path.slice(SCRIPTS_DIR.length+1), path.parse(script.name).name),
path: path.join(script.path, script.name),
}))
.sort((a, b) => (a.name >= b.name ? 1 : -1));
};
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ __metadata:
languageName: node
linkType: hard

"@tact-lang/compiler@npm:^1.3.0":
version: 1.3.0
resolution: "@tact-lang/compiler@npm:1.3.0"
"@tact-lang/compiler@npm:^1.4.0":
version: 1.4.0
resolution: "@tact-lang/compiler@npm:1.4.0"
dependencies:
"@ipld/dag-pb": 2.1.18
"@tact-lang/opcode": ^0.0.14
Expand All @@ -174,7 +174,7 @@ __metadata:
zod: ^3.22.4
bin:
tact: bin/tact
checksum: d5f1b33750f852835a63f49c41ce96186e8f00b3cc8b13a0070e46441453cca984c67c3431db0d17851c1789ad8830397e4276a6965a0754193843b7e3c4d98e
checksum: 7f01eb44de22b52f884f45f90637660009e1882ab341bde21eaea0ab26273dc4757638a713ed7f363d5097c64fa5a680109cb753abcc17e5a47242fc91d59296
languageName: node
linkType: hard

Expand Down Expand Up @@ -212,7 +212,7 @@ __metadata:
resolution: "@ton/blueprint@workspace:."
dependencies:
"@orbs-network/ton-access": ^2.3.3
"@tact-lang/compiler": ^1.3.0
"@tact-lang/compiler": ^1.4.0
"@ton-community/func-js": ^0.7.0
"@ton/core": ^0.56.0
"@ton/crypto": ^3.2.0
Expand Down

0 comments on commit ff18038

Please sign in to comment.