Closed
Description
I have the following folder/package structure:
/package.json:
name: @company/main
workspaces: [ game-core/scripts, shared/schema-package ]
/game-core/scripts/package.json:
name: @company/game
dependencies: @company/schema-package
/game-core/scripts/src/tsconfig.json:
outDir: ../dist/scripts
/shared/schema-package/package.json
name: @company/schema-package
files: **/*.*
main: index.js
/shared/schema-package/index.ts/js
In strada, when I build game-core/scripts/tsconfig.json
, in the game-core/scripts/dist/scripts
I only get files from the game-core
package. Such as:
game-core
scripts
dist
scripts
main.js
game_loop.js
...etc
In corsa I instead also get the schema-package
included:
game-core
scripts
dist
scripts
game-core
scripts
src
main.js
game_loop.js
...etc
shared
schema-package
index.js
Also, in corsa the src
directory is not omitted.
My full tsconfig.json is as follows:
{
"compilerOptions": {
"rootDir": ".",
"outDir": "../dist/scripts",
"target": "esnext",
"lib": ["esnext"],
"types": [],
"module": "ESNext",
"moduleResolution": "node",
"sourceMap": true,
"strict": true
},
"include": ["**/*.ts"]
}