chore: debug statements

This commit is contained in:
zhom
2025-05-29 12:00:06 +04:00
parent 2c837477fe
commit 257d6c3f92
2 changed files with 79 additions and 0 deletions
+41
View File
@@ -58,17 +58,58 @@ jobs:
- name: Install nodecar dependencies
working-directory: ./nodecar
run: |
echo "DEBUG: Installing nodecar dependencies..."
echo "DEBUG: Current directory: $(pwd)"
echo "DEBUG: Contents of nodecar directory:"
ls -la
echo "DEBUG: Checking if package.json exists:"
cat package.json | head -20
echo "DEBUG: Checking pnpm version and cache:"
pnpm --version
echo "DEBUG: Running pnpm install..."
pnpm install --frozen-lockfile
echo "DEBUG: After pnpm install - checking node_modules:"
ls -la node_modules/ | head -20
echo "DEBUG: Checking if specific dependencies exist:"
ls -la node_modules/commander || echo "commander not found"
ls -la node_modules/get-port || echo "get-port not found"
ls -la node_modules/proxy-chain || echo "proxy-chain not found"
echo "DEBUG: Checking get-port package.json type:"
cat node_modules/get-port/package.json | grep -E '"type":|"main":|"module":|"exports":' || echo "No ESM info found"
echo "DEBUG: Checking what TypeScript can resolve:"
npx tsc --noEmit --listFiles | head -20 || echo "TypeScript check failed"
- name: Build nodecar binary
shell: bash
working-directory: ./nodecar
run: |
echo "DEBUG: Building nodecar binary..."
echo "DEBUG: Current directory: $(pwd)"
echo "DEBUG: Contents of nodecar directory:"
ls -la
echo "DEBUG: Checking if node_modules still exists:"
ls -la node_modules/ | head -10 || echo "node_modules not found!"
echo "DEBUG: Checking TypeScript config:"
cat tsconfig.json
echo "DEBUG: Checking src directory:"
ls -la src/
echo "DEBUG: Testing individual imports:"
echo "import { program } from 'commander';" > test-import.ts
npx tsc --noEmit test-import.ts || echo "Commander import failed"
echo "import getPort from 'get-port';" > test-import.ts
npx tsc --noEmit test-import.ts || echo "get-port import failed"
echo "import * as ProxyChain from 'proxy-chain';" > test-import.ts
npx tsc --noEmit test-import.ts || echo "proxy-chain import failed"
rm test-import.ts
echo "DEBUG: Running build script based on OS..."
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
echo "DEBUG: Running Linux x64 build..."
pnpm run build:linux-x64
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
echo "DEBUG: Running macOS aarch64 build..."
pnpm run build:aarch64
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
echo "DEBUG: Running Windows x64 build..."
pnpm run build:win-x64
fi
+38
View File
@@ -89,12 +89,50 @@ jobs:
- name: Install nodecar dependencies
working-directory: ./nodecar
run: |
echo "DEBUG: Installing nodecar dependencies..."
echo "DEBUG: Current directory: $(pwd)"
echo "DEBUG: Contents of nodecar directory:"
ls -la
echo "DEBUG: Checking if package.json exists:"
cat package.json | head -20
echo "DEBUG: Checking pnpm version and cache:"
pnpm --version
echo "DEBUG: Running pnpm install..."
pnpm install --frozen-lockfile
echo "DEBUG: After pnpm install - checking node_modules:"
ls -la node_modules/ | head -20
echo "DEBUG: Checking if specific dependencies exist:"
ls -la node_modules/commander || echo "commander not found"
ls -la node_modules/get-port || echo "get-port not found"
ls -la node_modules/proxy-chain || echo "proxy-chain not found"
echo "DEBUG: Checking get-port package.json type:"
cat node_modules/get-port/package.json | grep -E '"type":|"main":|"module":|"exports":' || echo "No ESM info found"
echo "DEBUG: Checking what TypeScript can resolve:"
npx tsc --noEmit --listFiles | head -20 || echo "TypeScript check failed"
- name: Build nodecar sidecar
shell: bash
working-directory: ./nodecar
run: |
echo "DEBUG: Building nodecar sidecar..."
echo "DEBUG: Current directory: $(pwd)"
echo "DEBUG: Contents of nodecar directory:"
ls -la
echo "DEBUG: Checking if node_modules still exists:"
ls -la node_modules/ | head -10 || echo "node_modules not found!"
echo "DEBUG: Checking TypeScript config:"
cat tsconfig.json
echo "DEBUG: Checking src directory:"
ls -la src/
echo "DEBUG: Testing individual imports:"
echo "import { program } from 'commander';" > test-import.ts
npx tsc --noEmit test-import.ts || echo "Commander import failed"
echo "import getPort from 'get-port';" > test-import.ts
npx tsc --noEmit test-import.ts || echo "get-port import failed"
echo "import * as ProxyChain from 'proxy-chain';" > test-import.ts
npx tsc --noEmit test-import.ts || echo "proxy-chain import failed"
rm test-import.ts
echo "DEBUG: Running nodecar build script..."
pnpm run ${{ matrix.nodecar_script }}
- name: Copy nodecar binary to Tauri binaries