create-tsdown 0.0.1 → 0.0.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # create-tsdown [![npm](https://img.shields.io/npm/v/tsdown.svg)](https://npmjs.com/package/tsdown) [![Unit Test](https://github.com/rolldown/tsdown/actions/workflows/tests.yml/badge.svg)](https://github.com/rolldown/tsdown/actions/workflows/tests.yml) [![JSR](https://jsr.io/badges/@sxzz/tsdown)](https://jsr.io/@sxzz/tsdown) [![tsdown-starter-stackblitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](https://stackblitz.com/github/rolldown/tsdown-starter-stackblitz)
1
+ # create-tsdown [![npm](https://img.shields.io/npm/v/create-tsdown.svg)](https://npmjs.com/package/create-tsdown) [![Unit Test](https://github.com/rolldown/tsdown/actions/workflows/tests.yml/badge.svg)](https://github.com/gugustinette/create-tsdown/actions/workflows/tests.yml) [![tsdown-starter-stackblitz](https://developer.stackblitz.com/img/open_in_stackblitz_small.svg)](https://stackblitz.com/github/rolldown/tsdown-starter-stackblitz)
2
2
 
3
3
  **create-tsdown** is the cli tool to create a new project using [tsdown](https://tsdown.dev). It provides a simple and efficient way to set up a TypeScript project with all the necessary configurations and dependencies.
4
4
 
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ interface Options {
16
16
  * The template to use.
17
17
  * @default 'default'
18
18
  */
19
- template?: "default" | "vue" | "react";
19
+ template?: "default" | "minimal" | "vue" | "react";
20
20
  /** @default false */
21
21
  silent?: boolean;
22
22
  /** @default false */
@@ -32,7 +32,7 @@ type ResolvedOptions = Overwrite<Options, {
32
32
  * The template to use.
33
33
  * @default 'default'
34
34
  */
35
- template: "default" | "vue" | "react";
35
+ template: "default" | "minimal" | "vue" | "react";
36
36
  /** @default false */
37
37
  silent: boolean;
38
38
  /** @default false */
@@ -1,5 +1,5 @@
1
1
  import { logger } from "./logger-0-2qD2tL.js";
2
- import { version } from "./package-DN7qLXAi.js";
2
+ import { version } from "./package-Cz8SzpOI.js";
3
3
  import process from "node:process";
4
4
  import { existsSync } from "node:fs";
5
5
  import { readFile, unlink, writeFile } from "node:fs/promises";
@@ -0,0 +1,5 @@
1
+ //#region package.json
2
+ var version = "0.0.2";
3
+
4
+ //#endregion
5
+ export { version };
package/dist/run.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { logger, resolveComma, toArray } from "./logger-0-2qD2tL.js";
3
- import { version } from "./package-DN7qLXAi.js";
3
+ import { version } from "./package-Cz8SzpOI.js";
4
4
  import module from "node:module";
5
5
  import { green, underline } from "ansis";
6
6
  import process$1 from "node:process";
@@ -33,6 +33,7 @@ async function resolveOptions(options) {
33
33
  resolvedTemplate = options.template;
34
34
  if (![
35
35
  "default",
36
+ "minimal",
36
37
  "vue",
37
38
  "react"
38
39
  ].includes(resolvedTemplate)) throw new Error(`Invalid template "${resolvedTemplate}". Available templates: default, vue, react`);
@@ -43,6 +44,10 @@ async function resolveOptions(options) {
43
44
  value: "default",
44
45
  label: "Default"
45
46
  },
47
+ {
48
+ value: "minimal",
49
+ label: "Minimal"
50
+ },
46
51
  {
47
52
  value: "vue",
48
53
  label: "Vue"
@@ -100,7 +105,7 @@ cli.command("migrate", "Migrate from tsup to tsdown").option("-c, --cwd <dir>",
100
105
  }
101
106
  const s = spinner();
102
107
  s.start("Migrating from tsup to tsdown...");
103
- const { migrate } = await import("./migrate-C-3eL652.js");
108
+ const { migrate } = await import("./migrate-B3JazpZr.js");
104
109
  await migrate({
105
110
  cwd: args.cwd,
106
111
  dryRun: !!args.dryRun
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "create-tsdown",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "The Elegant Bundler for Libraries",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
- "homepage": "https://github.com/rolldown/tsdown#readme",
7
+ "homepage": "https://github.com/gugustinette/create-tsdown#readme",
8
8
  "bugs": {
9
- "url": "https://github.com/rolldown/tsdown/issues"
9
+ "url": "https://github.com/gugustinette/create-tsdown/issues"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/rolldown/tsdown.git"
13
+ "url": "git+https://github.com/gugustinette/create-tsdown.git"
14
14
  },
15
15
  "author": "三咲智子 Kevin Deng <sxzz@sxzz.moe>",
16
16
  "funding": "https://github.com/sponsors/sxzz",
@@ -1,5 +0,0 @@
1
- //#region package.json
2
- var version = "0.0.1";
3
-
4
- //#endregion
5
- export { version };