chore: remove build-time symlink and update install instructions
Browse filesThe project-root symlink (codev → dist/codev) is redundant for users
with a global symlink in ~/.local/bin. Cleaned up unused fs/path imports.
Co-Authored-By: Claude Big Pickle <noreply@anthropic.com>
- README.md +1 -1
- scripts/build.ts +2 -9
README.md
CHANGED
|
@@ -74,7 +74,7 @@
|
|
| 74 |
curl -fsSL https://raw.githubusercontent.com/chenbhao/Codev/main/install.sh | bash
|
| 75 |
|
| 76 |
# source install
|
| 77 |
-
git clone https://github.com/chenbhao/Codev.git && cd Codev && bun install && bun run build && bun run friend:build &&
|
| 78 |
|
| 79 |
# if want global use bin file
|
| 80 |
# cp dist/codev ~/.local/bin
|
|
|
|
| 74 |
curl -fsSL https://raw.githubusercontent.com/chenbhao/Codev/main/install.sh | bash
|
| 75 |
|
| 76 |
# source install
|
| 77 |
+
git clone https://github.com/chenbhao/Codev.git && cd Codev && bun install && bun run build && bun run friend:build && codev
|
| 78 |
|
| 79 |
# if want global use bin file
|
| 80 |
# cp dist/codev ~/.local/bin
|
scripts/build.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
import { chmodSync, cpSync, existsSync, mkdirSync
|
| 2 |
-
import { dirname, join
|
| 3 |
|
| 4 |
const pkg = await Bun.file(new URL('../package.json', import.meta.url)).json() as {
|
| 5 |
name: string
|
|
@@ -163,11 +163,4 @@ if (!existsSync(vendorDir)) {
|
|
| 163 |
console.log(`Copied vendor/ → ${vendorDir}/`)
|
| 164 |
}
|
| 165 |
|
| 166 |
-
// Create symlink at project root for convenient access
|
| 167 |
-
const symlink = join(process.cwd(), 'codev')
|
| 168 |
-
const symlinkTarget = relative(process.cwd(), outfile)
|
| 169 |
-
try { unlinkSync(symlink) } catch { /* ignore */ }
|
| 170 |
-
try { symlinkSync(symlinkTarget, symlink) } catch { /* ignore */ }
|
| 171 |
-
|
| 172 |
console.log(`Built ${outfile}`)
|
| 173 |
-
console.log(`Symlink ${symlink} → ${symlinkTarget}`)
|
|
|
|
| 1 |
+
import { chmodSync, cpSync, existsSync, mkdirSync } from 'fs'
|
| 2 |
+
import { dirname, join } from 'path'
|
| 3 |
|
| 4 |
const pkg = await Bun.file(new URL('../package.json', import.meta.url)).json() as {
|
| 5 |
name: string
|
|
|
|
| 163 |
console.log(`Copied vendor/ → ${vendorDir}/`)
|
| 164 |
}
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
console.log(`Built ${outfile}`)
|
|
|