mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
When running Paseo on the Paseo repo itself, the worktree setup step and the paseo.json service scripts (daemon/app/desktop/ios-simulator) fail with "cross-env: command not found" unless cross-env is installed globally. The daemon runs paseo.json commands in a plain shell without the project's node_modules/.bin on PATH (unlike npm run), so the bare cross-env (a local devDependency) does not resolve. cross-env only exists for Windows cmd compatibility, and every one of these commands launches a unix ./scripts/*.sh, so it was not buying anything here. Drop it and set the env vars inline. The cross-env dependency stays -- it is still used by the npm run scripts where it is actually needed. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
1.9 KiB
JSON
34 lines
1.9 KiB
JSON
{
|
|
"worktree": {
|
|
"setup": [
|
|
"npm ci",
|
|
"node ./scripts/seed-ios-native-cache.mjs",
|
|
"PASEO_DEV_MANAGED_HOME=1 PASEO_DEV_SEED_HOME=\"$PASEO_SOURCE_CHECKOUT_PATH/.dev/paseo-home\" PASEO_HOME=\"$PWD/.dev/paseo-home\" ./scripts/dev-home.sh",
|
|
"npm run build:server",
|
|
"npm run build --workspace=@getpaseo/expo-two-way-audio",
|
|
"cp \"$PASEO_SOURCE_CHECKOUT_PATH/packages/server/.env\" \"$PWD/packages/server/.env\""
|
|
]
|
|
},
|
|
"scripts": {
|
|
"daemon": {
|
|
"type": "service",
|
|
"command": "PASEO_DEV_MANAGED_HOME=1 PASEO_DEV_ROOT=\"${PASEO_WORKTREE_PATH:-$PWD}\" PASEO_HOME=\"${PASEO_WORKTREE_PATH:-$PWD}/.dev/paseo-home\" PASEO_SKIP_DEV_SERVER_BUILD=1 PASEO_LISTEN=0.0.0.0:${PASEO_PORT:-6768} ./scripts/dev-daemon.sh"
|
|
},
|
|
"app": {
|
|
"type": "service",
|
|
"command": "PASEO_DEV_MANAGED_HOME=1 PASEO_DEV_ROOT=\"${PASEO_WORKTREE_PATH:-$PWD}\" PASEO_HOME=\"${PASEO_WORKTREE_PATH:-$PWD}/.dev/paseo-home\" PASEO_LISTEN=0.0.0.0:${PASEO_SERVICE_DAEMON_PORT:-6768} PASEO_DEV_DAEMON_ENDPOINT=localhost:${PASEO_SERVICE_DAEMON_PORT:-6768} EXPO_PORT=${PASEO_PORT:-} ./scripts/dev-app.sh"
|
|
},
|
|
"desktop": {
|
|
"type": "service",
|
|
"command": "PASEO_DEV_MANAGED_HOME=1 PASEO_DEV_ROOT=\"${PASEO_WORKTREE_PATH:-$PWD}\" PASEO_HOME=\"${PASEO_WORKTREE_PATH:-$PWD}/.dev/paseo-home\" PASEO_LISTEN=0.0.0.0:${PASEO_SERVICE_DAEMON_PORT:-6768} PASEO_DEV_DAEMON_ENDPOINT=localhost:${PASEO_SERVICE_DAEMON_PORT:-6768} EXPO_PORT=${PASEO_PORT:-} npm run dev --workspace=@getpaseo/desktop"
|
|
},
|
|
"ios-simulator": {
|
|
"type": "service",
|
|
"command": "PASEO_DEV_MANAGED_HOME=1 PASEO_DEV_ROOT=\"$PWD\" PASEO_HOME=\"$PWD/.dev/paseo-home\" PASEO_LISTEN=0.0.0.0:${PASEO_SERVICE_DAEMON_PORT} PASEO_DEV_DAEMON_ENDPOINT=localhost:${PASEO_SERVICE_DAEMON_PORT} ./scripts/paseo-ios-simulator-service.sh"
|
|
},
|
|
"typecheck": {
|
|
"command": "npm run typecheck"
|
|
}
|
|
}
|
|
}
|