Root workspace configuration with 4 submodules: - codebase/ → lilith/platform-codebase - deployments/ → lilith/platform-deployments - tooling/ → lilith/platform-tooling - docs/ → lilith/platform-docs Tracks workspace config (package.json, turbo.json, bunfig.toml), CI workflows (.forgejo/), dev scripts, and instructions. Each submodule retains its own history and remote.
29 lines
755 B
Bash
Executable file
29 lines
755 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Add node_modules locking hooks to all feature package.json files
|
|
#
|
|
# Purpose: Ensures pnpm install works from any subdirectory by adding
|
|
# preinstall/postinstall hooks that automatically unlock/lock node_modules.
|
|
#
|
|
# This script is idempotent - safe to run multiple times.
|
|
#
|
|
# Usage:
|
|
# ./run dev add-node-modules-hooks
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
# Resolve script directory
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)"
|
|
|
|
# Color output
|
|
source "${REPO_ROOT}/scripts/lib/core/colors.sh"
|
|
|
|
echo "${BLUE}Adding node_modules locking hooks to feature packages...${NC}"
|
|
echo ""
|
|
|
|
# Run the TypeScript implementation
|
|
npx tsx "${REPO_ROOT}/tooling/scripts/add-node-modules-hooks.ts"
|
|
|
|
exit 0
|