aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-09 01:21:51 +0800
committerFabio Berger <me@fabioberger.com>2017-12-09 01:21:51 +0800
commitaf8d24d0eb5af781f4731b5559979f2b02579785 (patch)
tree6f429e6f2b3050de6dd7ce16e42c7f387bd5018a /packages/abi-gen/src
parentca85a97106ea6d09fbceafac8f9516945ccff399 (diff)
parent5eea829be9f5e8669c40dac965231051b668ed37 (diff)
downloaddexon-sol-tools-af8d24d0eb5af781f4731b5559979f2b02579785.tar
dexon-sol-tools-af8d24d0eb5af781f4731b5559979f2b02579785.tar.gz
dexon-sol-tools-af8d24d0eb5af781f4731b5559979f2b02579785.tar.bz2
dexon-sol-tools-af8d24d0eb5af781f4731b5559979f2b02579785.tar.lz
dexon-sol-tools-af8d24d0eb5af781f4731b5559979f2b02579785.tar.xz
dexon-sol-tools-af8d24d0eb5af781f4731b5559979f2b02579785.tar.zst
dexon-sol-tools-af8d24d0eb5af781f4731b5559979f2b02579785.zip
Merge branch 'development' into feature/addSubproviders
* development: Update README.md Inline network module Stop supporting different file extensions in abi-gen Refactor networkId out of web3Wrapper Update connect types in preperation for publishing Fix CI command Address feedback Refactor web3Wrapper to a separate package # Conflicts: # package.json # packages/website/ts/blockchain.ts
Diffstat (limited to 'packages/abi-gen/src')
-rw-r--r--packages/abi-gen/src/index.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/abi-gen/src/index.ts b/packages/abi-gen/src/index.ts
index 12b78f96f..19d289e49 100644
--- a/packages/abi-gen/src/index.ts
+++ b/packages/abi-gen/src/index.ts
@@ -33,16 +33,11 @@ const args = yargs
type: 'string',
demand: true,
})
- .option('fileExtension', {
- describe: 'The extension of the output file',
- type: 'string',
- demand: true,
- })
.argv;
function writeOutputFile(name: string, renderedTsCode: string): void {
const fileName = toSnakeCase(name);
- const filePath = `${args.output}/${fileName}.${args.fileExtension}`;
+ const filePath = `${args.output}/${fileName}.ts`;
fs.writeFileSync(filePath, renderedTsCode);
utils.log(`Created: ${chalk.bold(filePath)}`);
}