Skip to content

Commit

Permalink
Merge pull request #119 from Brushfam/fix/typechain-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 authored Jul 30, 2023
2 parents 74dd674 + bff651e commit c241c49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/typechain-compiler/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ rust/
package-lock.json
typechain-generated/
config.json
artifacts/
artifacts/
wip/
config.json
7 changes: 6 additions & 1 deletion packages/typechain-compiler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ function main() {

const cmd = `cargo +${toolchain} contract ${isRelease ? "build --release" : "build"} --manifest-path ${tomlFile} ${config.skipLinting ? '--skip-linting' : ''}`;

execSync(cmd);
try {
execSync(cmd);
} catch (e) {
logger.error(chalk.redBright(`======== Failed to compile ${contractName} ========`));
continue;
}

let targetInfo = {
path: PathAPI.resolve(PathAPI.dirname(tomlFile), 'target', 'ink'),
Expand Down
2 changes: 1 addition & 1 deletion packages/typechain-compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@727-ventures/typechain-compiler",
"version": "1.1.3",
"version": "1.1.4",
"description": "Util to test and compile your rust project",
"bin": {
"typechain-compiler": "bin/index.js"
Expand Down

0 comments on commit c241c49

Please sign in to comment.