difit 0.0.2 → 0.0.3
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/README.md +1 -1
- package/dist/server/comment-store.js +1 -1
- package/dist/server/server.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/server/server.js
CHANGED
|
@@ -70,10 +70,10 @@ export async function startServer(options) {
|
|
|
70
70
|
res.status(500).json({ error: 'Failed to generate prompt' });
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
// CLI
|
|
73
|
+
// Always runs in production mode when distributed as a CLI tool
|
|
74
74
|
const isProduction = process.env.NODE_ENV === 'production' || process.env.NODE_ENV !== 'development';
|
|
75
75
|
if (isProduction) {
|
|
76
|
-
// CLI
|
|
76
|
+
// Find client files relative to the CLI executable location
|
|
77
77
|
const distPath = join(__dirname, '..', 'client');
|
|
78
78
|
app.use(express.static(distPath));
|
|
79
79
|
app.get('*', (_req, res) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "difit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "https://github.com/yoshiko-pg/difit/issues"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
-
"dev": "concurrently \"pnpm run dev:cli HEAD --no-open\" \"sleep
|
|
22
|
+
"dev": "concurrently \"pnpm run dev:cli HEAD --no-open\" \"sleep 1 && vite --open\"",
|
|
23
23
|
"dev:cli": "tsc --project tsconfig.cli.json && NODE_ENV=development node dist/cli/index.js",
|
|
24
24
|
"build": "tsc && vite build",
|
|
25
25
|
"build:cli": "tsc --project tsconfig.cli.json",
|