mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-06-17 20:00:13 +00:00
Fix dependency management
This commit is contained in:
+12
-5
@@ -118,19 +118,26 @@ git submodule update --init --recursive
|
||||
# Install dependencies from the repository root
|
||||
npm install
|
||||
|
||||
# Build the CLI from its package directory
|
||||
# Build the CLI from the repository root
|
||||
npm run build -w self-hosted-livesync-cli
|
||||
|
||||
# Or from the package directory
|
||||
cd src/apps/cli
|
||||
npm run build
|
||||
```
|
||||
|
||||
If `src/lib` is missing, `npm run build` now stops early with a targeted message
|
||||
instead of a low-level Vite `ENOENT` error.
|
||||
If `src/lib` is missing, the build process stops early with a targeted message instead of a low-level Vite `ENOENT` error.
|
||||
|
||||
Run the CLI:
|
||||
|
||||
```bash
|
||||
# Run with npm script (from repository root)
|
||||
npm run --silent cli -- [database-path] [command] [args...]
|
||||
# Run with npm workspace script (from repository root)
|
||||
npm run cli -w self-hosted-livesync-cli -- [database-path] [command] [args...]
|
||||
|
||||
# Or from the package directory
|
||||
cd src/apps/cli
|
||||
npm run cli -- [database-path] [command] [args...]
|
||||
|
||||
# Run the built executable directly
|
||||
node src/apps/cli/dist/index.cjs [database-path] [command] [args...]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user