Comparing version 1.0.2 to 1.0.3
@@ -11,3 +11,3 @@ 'use strict'; | ||
commander.program.option("-d, --dir <directory>", "Custom output dir", "dist").option("-i, --input <patterns...>", "Input patterns", ".").option("-f, --format <format>", "Format, it can be 'cjs', 'esm' or 'interop'", "esm").option("--cwd <dir>", "Custom target directory", process.cwd()).option("--no-clean", "No clean output dir (default: true)", true).option("-t, --target <target>", "Javascript runtime target", "node" + process.versions.node); | ||
commander.program.option("-d, --dir <directory>", "Custom output dir", "dist").option("-i, --input <patterns...>", "Input patterns", ".").option("-f, --format <format>", "Format, it can be 'cjs', 'esm' or 'interop'", "esm").option("--cwd <dir>", "Custom target directory", process.cwd()).option("--no-clean", "Don't clean output dir (default: true)", true).option("-t, --target <target>", "Javascript runtime target", "node" + process.versions.node); | ||
commander.program.parseAsync().then(async () => { | ||
@@ -14,0 +14,0 @@ const { dir, input, format, clean, cwd, target } = commander.program.opts(); |
@@ -11,3 +11,3 @@ 'use strict'; | ||
commander.program.option("-d, --dir <directory>", "Custom output dir", "dist").option("-i, --input <patterns...>", "Input patterns", ".").option("-f, --format <format>", "Format, it can be 'cjs', 'esm' or 'interop'", "esm").option("--no-clean", "No clean output dir (default: true)", true).option("--cwd <dir>", "Custom target directory", process.cwd()).option("-c, --command <cmd>", "Execute script after successful JS build").option("-t, --target <target>", "Javascript runtime target", "node" + process.versions.node); | ||
commander.program.option("-d, --dir <directory>", "Custom output dir", "dist").option("-i, --input <patterns...>", "Input patterns", ".").option("-f, --format <format>", "Format, it can be 'cjs', 'esm' or 'interop'", "esm").option("--clean", "Clean output dir", false).option("--cwd <dir>", "Custom target directory", process.cwd()).option("-c, --command <cmd>", "Execute script after successful JS build").option("-t, --target <target>", "Javascript runtime target", "node" + process.versions.node); | ||
commander.program.parseAsync().then(async () => { | ||
@@ -14,0 +14,0 @@ const { dir, input, format, clean, command, cwd, target } = commander.program.opts(); |
@@ -6,3 +6,3 @@ import type { InputOptions, OutputOptions } from 'rollup'; | ||
outDir: string; | ||
clean: boolean | undefined; | ||
clean: boolean; | ||
target: string; | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "bob-ts", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/PabloSzx/bob-esbuild", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/PabloSzx/bob-esbuild/issues", |
@@ -65,3 +65,3 @@ # bob-ts | ||
-f, --format <format> Format, it can be 'cjs', 'esm' or 'interop' (default: "esm") | ||
--no-clean No clean output dir (default: true) | ||
--clean Clean output dir (default: false) | ||
--cwd <dir> Custom target directory (default: "X") | ||
@@ -68,0 +68,0 @@ -c, --command <cmd> Execute script after successful JS build |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28543