CLI: Fix bin directive on index file

This commit is contained in:
fuma-nama
2024-10-22 19:51:09 +08:00
parent e983433f15
commit 75af7bc0b3
3 changed files with 7 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs': patch
---
Fix bin directive on index file
+1 -3
View File
@@ -19,9 +19,7 @@
}
},
"main": "./dist/index.js",
"bin": {
"fumadocs": "./dist/index.js"
},
"bin": "./dist/index.js",
"files": [
"dist/*"
],
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import fs from 'node:fs/promises';
import path from 'node:path';
import { Command } from 'commander';