draft-cli 0.1.3 → 0.1.4

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,11 @@
1
1
  # @draft-ui/cli
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 1352364: fix draft-cli not command error
8
+
3
9
  ## 0.1.3
4
10
 
5
11
  ### 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";
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.4",
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
  }
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
+ })