Skip to content

Commit

Permalink
path parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks committed May 30, 2022
1 parent 9a3026e commit ece7ba9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { babel } from '@rollup/plugin-babel';
import { rollup } from 'rollup';

import { exec as exec_ } from 'child_process';
import { path } from 'node:path';
import { promisify } from 'util';

const exec = promisify(exec_);
Expand Down Expand Up @@ -38,11 +39,8 @@ async function build(argv) {
const ARCH = await executeCommand('uname -m', true);

const SOURCE_FILE_WITH_PATH = argv.source;
// TODO: parce path
// const TARGET_DIR = getBuildDir(argv.target);
// const TARGET_FILE_NAME = getTargetFileName(argv.target);
const TARGET_DIR = 'build';
const TARGET_FILE_NAME = 'contract';
const TARGET_DIR = path.dirname(argv.target);
const TARGET_FILE_NAME = path.basename(argv.target);

const ROLLUP_TARGET = `${TARGET_DIR}${TARGET_FILE_NAME}.js`;
const QJS_TARGET = `${TARGET_DIR}/${TARGET_FILE_NAME}.h`;
Expand Down

0 comments on commit ece7ba9

Please sign in to comment.