mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-10 03:28:14 +00:00
chore(docs): run Mintlify development with Node 22 (#1692)
This commit is contained in:
parent
e47336737e
commit
ec8e3aedb4
2 changed files with 18 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
"portless": { "name": "docs.dev.supermemory", "script": "dev:app", "appPort": 3003 },
|
||||
"scripts": {
|
||||
"dev": "portless",
|
||||
"dev:app": "bunx mintlify@latest dev --no-open --port 3003"
|
||||
"dev:app": "bash scripts/dev.sh"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
|
|
|
|||
17
apps/docs/scripts/dev.sh
Normal file
17
apps/docs/scripts/dev.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
docs_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
docs_port="${PORT:-3003}"
|
||||
mintlify_args=(dev --no-open --port "$docs_port")
|
||||
|
||||
printf -v docs_dir_escaped "%q" "$docs_dir"
|
||||
printf -v mintlify_args_escaped " %q" "${mintlify_args[@]}"
|
||||
|
||||
# Run outside the monorepo so npx does not pick up Mintlify's Bun-installed
|
||||
# dependency tree, which is incompatible with its Node-based schema compiler.
|
||||
cd /tmp
|
||||
exec npx --yes \
|
||||
--package node@22 \
|
||||
--package mintlify@latest \
|
||||
--call "cd $docs_dir_escaped && mintlify$mintlify_args_escaped"
|
||||
Loading…
Add table
Reference in a new issue