indexer-cli 0.2.2 → 0.2.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/package.json +2 -4
- package/scripts/postinstall.js +0 -15
- package/scripts/publish.sh +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "indexer-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Lightweight CLI project indexer with semantic search via Ollama",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"bin",
|
|
12
12
|
"dist",
|
|
13
|
-
"scripts",
|
|
14
13
|
"README.md"
|
|
15
14
|
],
|
|
16
15
|
"engines": {
|
|
@@ -27,8 +26,7 @@
|
|
|
27
26
|
"install:global": "npm run build && npm link --force",
|
|
28
27
|
"uninstall:global": "npm unlink -g indexer-cli",
|
|
29
28
|
"test": "vitest run",
|
|
30
|
-
"test:watch": "vitest"
|
|
31
|
-
"postinstall": "node scripts/postinstall.js"
|
|
29
|
+
"test:watch": "vitest"
|
|
32
30
|
},
|
|
33
31
|
"dependencies": {
|
|
34
32
|
"@apache-arrow/ts": "^18.1.0",
|
package/scripts/postinstall.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
require("better-sqlite3");
|
|
3
|
-
} catch {
|
|
4
|
-
console.error(
|
|
5
|
-
[
|
|
6
|
-
"",
|
|
7
|
-
"\u26A0 indexer-cli: native modules could not be loaded.",
|
|
8
|
-
" This usually means build tools (python3, make, C++ compiler) are missing.",
|
|
9
|
-
"",
|
|
10
|
-
" Install build tools, then run:",
|
|
11
|
-
" npm install -g indexer-cli",
|
|
12
|
-
"",
|
|
13
|
-
].join("\n"),
|
|
14
|
-
);
|
|
15
|
-
}
|
package/scripts/publish.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
|
|
4
|
-
echo "→ Building..."
|
|
5
|
-
npm run build
|
|
6
|
-
|
|
7
|
-
echo "→ Running tests..."
|
|
8
|
-
npm test
|
|
9
|
-
|
|
10
|
-
echo "→ Bumping patch version..."
|
|
11
|
-
npm version patch -m "chore(release): %s"
|
|
12
|
-
|
|
13
|
-
echo "→ Publishing to npm..."
|
|
14
|
-
npm publish --access public
|
|
15
|
-
|
|
16
|
-
VERSION=$(node -p "require('./package.json').version")
|
|
17
|
-
echo "✓ Published indexer-cli@${VERSION}"
|