create-tsdown 0.21.0-beta.4 → 0.21.0

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/index.mjs CHANGED
@@ -3,7 +3,6 @@ import { styleText } from "node:util";
3
3
  import { cancel, intro, isCancel, outro, select, spinner, text } from "@clack/prompts";
4
4
  import { downloadTemplate } from "giget";
5
5
  import { getUserAgent } from "package-manager-detector";
6
-
7
6
  //#region src/index.ts
8
7
  const templateOptions = [
9
8
  {
@@ -89,6 +88,5 @@ async function resolveOptions(options) {
89
88
  template
90
89
  };
91
90
  }
92
-
93
91
  //#endregion
94
- export { create, resolveOptions, templateOptions };
92
+ export { create, resolveOptions, templateOptions };
package/dist/run.mjs CHANGED
@@ -3,14 +3,9 @@ import { create, templateOptions } from "./index.mjs";
3
3
  import process from "node:process";
4
4
  import { log } from "@clack/prompts";
5
5
  import { cac } from "cac";
6
-
7
- //#region package.json
8
- var name = "create-tsdown";
9
- var version = "0.21.0-beta.4";
10
-
11
6
  //#endregion
12
7
  //#region src/cli.ts
13
- const cli = cac(name).version(version).help();
8
+ const cli = cac("create-tsdown").version("0.21.0").help();
14
9
  cli.command("[path]", "Create a tsdown project").option("-t, --template <template>", `Available templates: ${templateOptions.map((option) => option.value).join(", ")}`).action((path, options) => create(path, options));
15
10
  async function runCLI() {
16
11
  cli.parse(process.argv, { run: false });
@@ -21,10 +16,8 @@ async function runCLI() {
21
16
  process.exit(1);
22
17
  }
23
18
  }
24
-
25
19
  //#endregion
26
20
  //#region src/run.ts
27
21
  runCLI();
28
-
29
22
  //#endregion
30
- export { };
23
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-tsdown",
3
3
  "type": "module",
4
- "version": "0.21.0-beta.4",
4
+ "version": "0.21.0",
5
5
  "description": "Create a new tsdown project",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",