@karmaniverous/jeeves-watcher 0.6.6 → 0.6.8
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
2
3
|
import { Command } from '@commander-js/extra-typings';
|
|
3
4
|
import { readdir, stat, writeFile, rm, readFile, mkdir } from 'node:fs/promises';
|
|
4
5
|
import { resolve, dirname, join, extname, basename, relative } from 'node:path';
|
|
@@ -6071,10 +6072,12 @@ async function writeJsonFile(path, data) {
|
|
|
6071
6072
|
*
|
|
6072
6073
|
* jeeves-watcher CLI entrypoint.
|
|
6073
6074
|
*/
|
|
6075
|
+
const require$1 = createRequire(import.meta.url);
|
|
6076
|
+
const { version } = require$1('../../../package.json');
|
|
6074
6077
|
const cli = new Command()
|
|
6075
6078
|
.name('jeeves-watcher')
|
|
6076
6079
|
.description('Filesystem watcher that keeps a Qdrant vector store in sync with document changes')
|
|
6077
|
-
.version(
|
|
6080
|
+
.version(version);
|
|
6078
6081
|
cli
|
|
6079
6082
|
.command('start')
|
|
6080
6083
|
.description('Start the filesystem watcher')
|
package/package.json
CHANGED