Comparing version
@@ -0,1 +1,4 @@ | ||
## Version 0.9.3 | ||
- Fix `--output` command line option failing. See https://github.com/merklejerk/solpp/pull/2. | ||
## Version 0.9.2 | ||
@@ -2,0 +5,0 @@ - Fix bug where `pragma` strings being rendered without whitespace. |
{ | ||
"name": "solpp", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "A solidity preprocessor and flattener CLI and library", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/merklejerk/solpp", |
@@ -36,3 +36,3 @@ #!/usr/bin/env node | ||
.arguments('<source-file>') | ||
.option('-o, --output <file>', 'write output to a file (instead of stdout)', path.resolve) | ||
.option('-o, --output <file>', 'write output to a file (instead of stdout)') | ||
.option('--no-flatten', 'do not flatten (include) naked imports') | ||
@@ -55,3 +55,3 @@ .option('--no-pp', 'disable the preprocessor (just flatten)') | ||
if (this.output) | ||
await fs.writeFile(this.output, output, 'utf-8'); | ||
await fs.writeFile(path.resolve(this.output), output, 'utf-8'); | ||
else | ||
@@ -58,0 +58,0 @@ console.log(output); |
413103
-4.41%37
-2.63%