hi
- User
User: hi Assistant: HelloHello! How can I help you today? User: I have a yarn ts monorepo, it has these subdirectories
core server tests
here is my root tsconfig
{ "compilerOptions": { "target": "es2020", "module": "commonjs", "moduleResolution": "node", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "baseUrl": ".", "paths": { "@photon/core/": ["core/src/"], "@photon/server/": ["server/src/"] }, "outDir": "dist", "sourceMap": true, "inlineSources": true, "rootDir": ".", "declaration": true, "composite": true, "skipLibCheck": true }, "references": [ { "path": "./core" }, { "path": "./server" }, { "path": "./tests" } ] }
and here is tsconfig for core
{ "extends": "../tsconfig.json", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", "sourceMap": true }, "include": ["src/**/*"] }
and tests
{ "extends": "../tsconfig.json", "compilerOptions": { "outDir": "./dist", "rootDir": "./src", "composite": true, "types": ["mocha", "chai"], "sourceMap": true }, "include": ["src/**/*"], "ts-node": { "transpileOnly": true, "files": true } }
the problem is that when I run yarn tsc --build
core isn't built, I can see it by checking the global dist folder, and it's empty Assistant:
- Assistant
Thanks for the detailed info! A few things to check and try to fix why your
corepackage isn't being built:1. Check the structure and existence of
core/srcfolder and.tsfiles