create-tsdown 0.17.0-beta.1 → 0.17.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/run.mjs +4 -7
- package/package.json +1 -1
package/dist/run.mjs
CHANGED
|
@@ -5,16 +5,13 @@ import { log } from "@clack/prompts";
|
|
|
5
5
|
import { cac } from "cac";
|
|
6
6
|
|
|
7
7
|
//#region package.json
|
|
8
|
-
var
|
|
8
|
+
var name = "create-tsdown";
|
|
9
|
+
var version = "0.17.0-beta.2";
|
|
9
10
|
|
|
10
11
|
//#endregion
|
|
11
12
|
//#region src/cli.ts
|
|
12
|
-
const cli = cac(
|
|
13
|
-
cli.
|
|
14
|
-
cli.command("[path]", "Create a tsdown project", {
|
|
15
|
-
ignoreOptionDefaultValue: true,
|
|
16
|
-
allowUnknownOptions: true
|
|
17
|
-
}).option("-t, --template <template>", `Available templates: ${templateOptions.map((option) => option.value).join(", ")}`, { default: "default" }).action((path, options) => create(path, options));
|
|
13
|
+
const cli = cac(name).version(version).help();
|
|
14
|
+
cli.command("[path]", "Create a tsdown project", { ignoreOptionDefaultValue: true }).option("-t, --template <template>", `Available templates: ${templateOptions.map((option) => option.value).join(", ")}`).action((path, options) => create(path, options));
|
|
18
15
|
async function runCLI() {
|
|
19
16
|
cli.parse(process.argv, { run: false });
|
|
20
17
|
try {
|