Skip to content

Commit d6c00ed

Browse files
authored
Merge pull request #252 from sCrypt-Inc/env
Env
2 parents eae3ce9 + df70825 commit d6c00ed

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
4+
## 2.1.36
5+
6+
- support special sCrypt compiler by Enviroment Variables: `SCRYPTC`
7+
8+
39
## 2.1.35
410

511
- fix `findCompiler`

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scryptlib",
3-
"version": "2.1.35",
3+
"version": "2.1.36",
44
"description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.",
55
"engines": {
66
"node": ">=14.0.0"

src/findCompiler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ export function findCompiler(): string | undefined {
6969
return scryptc;
7070
}
7171

72+
// special compiler by Enviroment Variables
73+
if (process.env.SCRYPTC && existsSync(process.env.SCRYPTC)) {
74+
return process.env.SCRYPTC;
75+
}
76+
7277
scryptc = find_compiler_local();
7378

7479
if (scryptc && existsSync(scryptc)) {

0 commit comments

Comments
 (0)