The emdash CLI creates the database at ./data.db relative to the workspace root (/app/emdash/data.db), but the Astro config was pointing to ./storage/data.db. This caused getEmDashEntry() to return null since the database used at runtime was empty. Change db.ts to use file:./data.db instead of file:./storage/data.db Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
1.1 KiB
Bash
Executable File
22 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
|
|
case `uname` in
|
|
*CYGWIN*|*MINGW*|*MSYS*)
|
|
if command -v cygpath > /dev/null 2>&1; then
|
|
basedir=`cygpath -w "$basedir"`
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
if [ -z "$NODE_PATH" ]; then
|
|
export NODE_PATH="/app/emdash/node_modules/.pnpm/oxlint@1.49.0_oxlint-tsgolint@0.15.0/node_modules/oxlint/bin/node_modules:/app/emdash/node_modules/.pnpm/oxlint@1.49.0_oxlint-tsgolint@0.15.0/node_modules/oxlint/node_modules:/app/emdash/node_modules/.pnpm/oxlint@1.49.0_oxlint-tsgolint@0.15.0/node_modules:/app/emdash/node_modules/.pnpm/node_modules"
|
|
else
|
|
export NODE_PATH="/app/emdash/node_modules/.pnpm/oxlint@1.49.0_oxlint-tsgolint@0.15.0/node_modules/oxlint/bin/node_modules:/app/emdash/node_modules/.pnpm/oxlint@1.49.0_oxlint-tsgolint@0.15.0/node_modules/oxlint/node_modules:/app/emdash/node_modules/.pnpm/oxlint@1.49.0_oxlint-tsgolint@0.15.0/node_modules:/app/emdash/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
fi
|
|
if [ -x "$basedir/node" ]; then
|
|
exec "$basedir/node" "$basedir/../oxlint/bin/oxlint" "$@"
|
|
else
|
|
exec node "$basedir/../oxlint/bin/oxlint" "$@"
|
|
fi
|