diff --git a/cli/cli.js b/cli/cli.js index aa9df4271..542864f46 100755 --- a/cli/cli.js +++ b/cli/cli.js @@ -40,7 +40,7 @@ async function build(argv) { const SOURCE_FILE_WITH_PATH = argv.source; const TARGET_DIR = path.dirname(argv.target); - const TARGET_FILE_NAME = path.basename(argv.target); + const TARGET_FILE_NAME = path.basename(argv.target, false); const ROLLUP_TARGET = `${TARGET_DIR}${TARGET_FILE_NAME}.js`; const QJS_TARGET = `${TARGET_DIR}/${TARGET_FILE_NAME}.h`;