Three coordinated fixes so 'docker compose up cosmos-emulator platform-service cowork-service --wait' completes end-to-end (pre-existing blocker surfaced by W1 post-push review). 1. Remove harmful prepare:tsc from @bytelyst/react-native-platform-sdk package.json. The hook fires during pnpm install --frozen-lockfile against an empty src/ tree (because Dockerfiles COPY package.jsons before sources), tsc aborts, install fails. Canonical monorepo build flow is pnpm -r build using the existing build:tsc script; prepare only runs for git+ URL installs (which this published package doesn't use), so removing it is lossless. 2. Add --ignore-scripts to platform-service + mcp-server Dockerfile install steps. Mirrors the pattern already used by extraction-service/Dockerfile, dashboards/admin-web/Dockerfile, dashboards/tracker-web/Dockerfile. Belt-and-braces against future prepare-hook regressions in any workspace package. 3. Expand .dockerignore node_modules/dist/.next/coverage to **/ globs. Docker's .dockerignore with bare 'node_modules' only matches root-level; nested packages/*/node_modules/ were being COPY'd into images, poisoning them with host-absolute-path .bin shims (e.g. @bytelyst/storage's tsc shim resolved to /learning_voice_ai_agent/node_modules/.pnpm/... which doesn't exist in the container → MODULE_NOT_FOUND). The glob fix makes COPY packages/ packages/ deliver source only. Gap: INFRA-gap-02 Verified: pnpm install --frozen-lockfile ✅ pnpm --filter @bytelyst/react-native-platform-sdk build ✅ pnpm --filter @bytelyst/react-native-platform-sdk typecheck ✅ docker compose build platform-service ✅ (previously failed) docker compose build mcp-server ✅ docker compose build extraction-service ✅
67 lines
1.5 KiB
JSON
67 lines
1.5 KiB
JSON
{
|
|
"name": "@bytelyst/react-native-platform-sdk",
|
|
"version": "1.0.0",
|
|
"description": "React Native SDK for ByteLyst platform services",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./auth": {
|
|
"import": "./dist/auth.js",
|
|
"types": "./dist/auth.d.ts"
|
|
},
|
|
"./telemetry": {
|
|
"import": "./dist/telemetry.js",
|
|
"types": "./dist/telemetry.d.ts"
|
|
},
|
|
"./feature-flags": {
|
|
"import": "./dist/feature-flags.js",
|
|
"types": "./dist/feature-flags.d.ts"
|
|
},
|
|
"./kill-switch": {
|
|
"import": "./dist/kill-switch.js",
|
|
"types": "./dist/kill-switch.d.ts"
|
|
},
|
|
"./broadcasts": {
|
|
"import": "./dist/broadcasts.js",
|
|
"types": "./dist/broadcasts.d.ts"
|
|
},
|
|
"./surveys": {
|
|
"import": "./dist/surveys.js",
|
|
"types": "./dist/surveys.d.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run --pool forks",
|
|
"lint": "eslint src/**/*.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {},
|
|
"peerDependencies": {
|
|
"react": ">=18.0.0",
|
|
"react-native": ">=0.72.0",
|
|
"expo": ">=49.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^19.0.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.0.0"
|
|
},
|
|
"keywords": [
|
|
"react-native",
|
|
"bytelyst",
|
|
"platform",
|
|
"expo",
|
|
"mobile"
|
|
],
|
|
"license": "MIT",
|
|
"publishConfig": {
|
|
"registry": "https://gitea.bytelyst.com/api/packages/ByteLyst/npm/"
|
|
}
|
|
}
|