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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @draft-ui/cli
2
2
 
3
+ ## 0.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - e968792: fix components.josn verify failed error
8
+
9
+ ## 0.1.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 1352364: fix draft-cli not command error
14
+
3
15
  ## 0.1.3
4
16
 
5
17
  ### Patch Changes
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
- style: z.string(),
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.3",
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.mjs"
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 src/bin/index.ts --format esm --clean --dts",
47
- "dev": "tsup src/bin/index.ts --format esm --watch --clean"
46
+ "build": "tsup",
47
+ "dev": "tsup --watch"
48
48
  }
49
49
  }
@@ -4,9 +4,7 @@ import fs from 'fs-extra'
4
4
  import { z } from 'zod'
5
5
 
6
6
  export const configSchema = z.object({
7
- style: z.string(),
8
- rsc: z.boolean(),
9
- tsx: z.boolean(),
7
+ typescript: z.boolean(),
10
8
  tailwind: z.object({
11
9
  config: z.string(),
12
10
  css: z.string(),
package/tsup.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from 'tsup'
2
+
3
+ export default defineConfig({
4
+ entry: ['src/bin/index.ts'],
5
+ format: ['esm'],
6
+ clean: true,
7
+ dts: true,
8
+ banner: {
9
+ js: '#!/usr/bin/env node',
10
+ },
11
+ })