draft-cli 0.1.3 → 0.1.5
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/CHANGELOG.md +12 -0
- package/dist/index.js +3 -3
- package/package.json +4 -4
- package/src/utils/config.ts +1 -3
- package/tsup.config.ts +11 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
// src/bin/index.ts
|
|
2
4
|
import { createRequire as createRequire2 } from "module";
|
|
3
5
|
import { Command } from "commander";
|
|
@@ -14,9 +16,7 @@ import path from "path";
|
|
|
14
16
|
import fs from "fs-extra";
|
|
15
17
|
import { z } from "zod";
|
|
16
18
|
var configSchema = z.object({
|
|
17
|
-
|
|
18
|
-
rsc: z.boolean(),
|
|
19
|
-
tsx: z.boolean(),
|
|
19
|
+
typescript: z.boolean(),
|
|
20
20
|
tailwind: z.object({
|
|
21
21
|
config: z.string(),
|
|
22
22
|
css: z.string(),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "draft-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "A command-line tool for adding components to your Vue and React projects. Inspired by shadcn/ui.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"shadcn"
|
|
20
20
|
],
|
|
21
21
|
"bin": {
|
|
22
|
-
"draft-cli": "./dist/index.
|
|
22
|
+
"draft-cli": "./dist/index.js"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"register": "https://raw.githubusercontent.com/preflower/draft-ui/main",
|
|
45
45
|
"scripts": {
|
|
46
|
-
"build": "tsup
|
|
47
|
-
"dev": "tsup
|
|
46
|
+
"build": "tsup",
|
|
47
|
+
"dev": "tsup --watch"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/utils/config.ts
CHANGED