@blockstack/clarity-native-bin
Advanced tools
Comparing version 0.1.13-alpha.6 to 0.1.13
@@ -15,1 +15,6 @@ import { ILogger } from "./logger"; | ||
export declare function verifyOutputFile(logger: ILogger, overwriteExisting: boolean, outputFilePath: string): boolean; | ||
export declare const moveFromPath: (opts: { | ||
logger: ILogger; | ||
outputFilePath: string; | ||
inputFilePAth: string; | ||
}) => boolean; |
@@ -76,2 +76,7 @@ "use strict"; | ||
exports.verifyOutputFile = verifyOutputFile; | ||
exports.moveFromPath = (opts) => { | ||
opts.logger.log(`Moving ${opts.inputFilePAth} to ${opts.outputFilePath}`); | ||
fs.moveSync(opts.inputFilePAth, opts.outputFilePath); | ||
return true; | ||
}; | ||
//# sourceMappingURL=fsUtil.js.map |
@@ -6,5 +6,6 @@ import { ILogger } from "./logger"; | ||
*/ | ||
export declare const CORE_SDK_TAG = "clarity-sdk-v0.0.5"; | ||
export declare const CORE_SDK_TAG = "clarity-sdk-v0.0.8"; | ||
export declare const BLOCKSTACK_CORE_SOURCE_TAG_ENV_VAR = "BLOCKSTACK_CORE_SOURCE_TAG"; | ||
export declare const BLOCKSTACK_CORE_SOURCE_BRANCH_ENV_VAR = "BLOCKSTACK_CORE_SOURCE_BRANCH"; | ||
export declare const BLOCKSTACK_CORE_SOURCE_PATH_ENV_VAR = "BLOCKSTACK_CORE_SOURCE_PATH"; | ||
/** | ||
@@ -11,0 +12,0 @@ * Returns the full file path of the native clarity-cli executable. |
@@ -20,5 +20,6 @@ "use strict"; | ||
*/ | ||
exports.CORE_SDK_TAG = "clarity-sdk-v0.0.5"; | ||
exports.CORE_SDK_TAG = "clarity-sdk-v0.0.8"; | ||
exports.BLOCKSTACK_CORE_SOURCE_TAG_ENV_VAR = "BLOCKSTACK_CORE_SOURCE_TAG"; | ||
exports.BLOCKSTACK_CORE_SOURCE_BRANCH_ENV_VAR = "BLOCKSTACK_CORE_SOURCE_BRANCH"; | ||
exports.BLOCKSTACK_CORE_SOURCE_PATH_ENV_VAR = "BLOCKSTACK_CORE_SOURCE_PATH"; | ||
/** | ||
@@ -42,2 +43,5 @@ * A git tag or branch name can be specified as an env var. | ||
} | ||
else if (keyStr === exports.BLOCKSTACK_CORE_SOURCE_PATH_ENV_VAR) { | ||
return { specifier: "path", value: val }; | ||
} | ||
} | ||
@@ -81,3 +85,3 @@ return false; | ||
const sourceOverride = getOverriddenCoreSource(); | ||
if (sourceOverride !== false) { | ||
if (sourceOverride !== false && sourceOverride.specifier !== "path") { | ||
logger.log(`Found git source env var ${sourceOverride.specifier}=${sourceOverride.value}`); | ||
@@ -113,2 +117,9 @@ fromSource = true; | ||
} | ||
else if (sourceOverride && sourceOverride.specifier === "path") { | ||
success = fsUtil_1.moveFromPath({ | ||
logger, | ||
outputFilePath: installPath, | ||
inputFilePAth: sourceOverride.value, | ||
}); | ||
} | ||
else { | ||
@@ -115,0 +126,0 @@ success = await fetchDist_1.fetchDistributable({ |
{ | ||
"name": "@blockstack/clarity-native-bin", | ||
"version": "0.1.13-alpha.6", | ||
"version": "0.1.13", | ||
"description": "Library for providing the native Clarity CLI binary", | ||
@@ -75,3 +75,3 @@ "author": "Blockstack <engineering@blockstack.com> (https://blockstack.com/)", | ||
}, | ||
"gitHead": "20f7d9ffcd4901e77dfcfdd3b45e2316131227f7" | ||
"gitHead": "a49e1e3f2f687c1f1d5c246c74d0591483698c4e" | ||
} |
@@ -19,2 +19,4 @@ # @blockstack/clarity-native-bin | ||
To move a local copy of the `clarity-cli` binary from a different folder on your machine, include the environment variable `BLOCKSTACK_CORE_SOURCE_PATH`. | ||
For example, the following commands test a blockstack-core repo feature branch using the `clarity-tutorials` package: | ||
@@ -21,0 +23,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57975
929
50