Skip to content

Commit

Permalink
Merge pull request #252 from sCrypt-Inc/env
Browse files Browse the repository at this point in the history
Env
  • Loading branch information
zhfnjust authored Nov 14, 2023
2 parents eae3ce9 + df70825 commit d6c00ed
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG


## 2.1.36

- support special sCrypt compiler by Enviroment Variables: `SCRYPTC`


## 2.1.35

- fix `findCompiler`
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scryptlib",
"version": "2.1.35",
"version": "2.1.36",
"description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.",
"engines": {
"node": ">=14.0.0"
Expand Down
5 changes: 5 additions & 0 deletions src/findCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ export function findCompiler(): string | undefined {
return scryptc;
}

// special compiler by Enviroment Variables
if (process.env.SCRYPTC && existsSync(process.env.SCRYPTC)) {
return process.env.SCRYPTC;
}

scryptc = find_compiler_local();

if (scryptc && existsSync(scryptc)) {
Expand Down

0 comments on commit d6c00ed

Please sign in to comment.