Skip to content

Commit cbaefd5

Browse files
committed
fix: use tsconfig.runtime.json for bundled CLI build
1 parent d3b9e5b commit cbaefd5

File tree

5 files changed

+43
-6
lines changed

5 files changed

+43
-6
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.4
1+
0.5.5

npx/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asyncreview",
3-
"version": "0.5.0",
3+
"version": "0.5.4",
44
"description": "AI-powered GitHub PR/Issue reviews from the command line",
55
"type": "module",
66
"bin": {

npx/tsconfig.runtime.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"module": "ESNext",
5+
"moduleResolution": "node",
6+
"esModuleInterop": true,
7+
"strict": true,
8+
"outDir": "./dist",
9+
"rootDir": "./src",
10+
"declaration": false,
11+
"skipLibCheck": true,
12+
"resolveJsonModule": true,
13+
"sourceMap": true
14+
},
15+
"include": [
16+
"src/**/*"
17+
],
18+
"exclude": [
19+
"node_modules",
20+
"dist",
21+
"src/launcher.ts"
22+
]
23+
}

scripts/build_runtime_local.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ echo "==> Platform: $PLATFORM_KEY"
3636
echo "==> Version: $VERSION"
3737

3838
# 1) Copy Node.js CLI (compiled TypeScript from npx/dist/)
39-
echo "==> Building npx package"
40-
(cd "$ROOT_DIR/npx" && npm install && npm run build)
39+
echo "==> Building npx package for runtime"
40+
(cd "$ROOT_DIR/npx" && npm install && npx tsc -p tsconfig.runtime.json)
4141

4242
echo "==> Copying Node.js CLI"
4343
cp -R "$ROOT_DIR/npx/dist" "$STAGE_DIR/app/"
@@ -46,6 +46,20 @@ cp "$ROOT_DIR/npx/package.json" "$STAGE_DIR/app/"
4646
# Copy node_modules (npm dependencies like chalk, ora, commander, inquirer)
4747
# Install only production dependencies for the runtime
4848
echo "==> Installing Node.js runtime dependencies"
49+
# Create a package.json for runtime with all required deps
50+
cat > "$STAGE_DIR/app/package.json" <<'PKGJSON'
51+
{
52+
"name": "asyncreview-runtime",
53+
"type": "module",
54+
"dependencies": {
55+
"commander": "^12.1.0",
56+
"inquirer": "^9.2.12",
57+
"chalk": "^5.3.0",
58+
"ora": "^8.0.1",
59+
"tar": "^7.0.0"
60+
}
61+
}
62+
PKGJSON
4963
(cd "$STAGE_DIR/app" && npm install --production --no-save)
5064

5165
# 2) Copy python CLI app code (npx/python/cli/ and npx/python/cr/)

0 commit comments

Comments
 (0)