Ignore unused folders inside src/

Here's my folder structure:
src
├── game
│   ├── client
│   │   ├── character
│   │   │   └── main.client.ts
│   │   └── player
│   │   └── main.client.ts
│   ├── gui
│   │   └── gui.model.json
│   ├── server
│   │   └── main.server.ts
│   ├── shared
│   └── workspace.rbxmx
├── menu
│   ├── client
│   │   ├── character
│   │   │   └── main.client.ts
│   │   └── player
│   │   └── main.client.ts
│   ├── gui
│   │   └── gui.model.json
│   ├── server
│   │   └── main.server.ts
│   ├── shared
│   └── workspace.rbxmx
└── shared
├── client
│   ├── character
│   │   └── main.client.ts
│   └── player
│   └── main.client.ts
├── gui
│   └── gui.model.json
├── server
│   └── main.server.ts
├── shared
│   └── module.ts
└── workspace.rbxmx
src
├── game
│   ├── client
│   │   ├── character
│   │   │   └── main.client.ts
│   │   └── player
│   │   └── main.client.ts
│   ├── gui
│   │   └── gui.model.json
│   ├── server
│   │   └── main.server.ts
│   ├── shared
│   └── workspace.rbxmx
├── menu
│   ├── client
│   │   ├── character
│   │   │   └── main.client.ts
│   │   └── player
│   │   └── main.client.ts
│   ├── gui
│   │   └── gui.model.json
│   ├── server
│   │   └── main.server.ts
│   ├── shared
│   └── workspace.rbxmx
└── shared
├── client
│   ├── character
│   │   └── main.client.ts
│   └── player
│   └── main.client.ts
├── gui
│   └── gui.model.json
├── server
│   └── main.server.ts
├── shared
│   └── module.ts
└── workspace.rbxmx
What I'm trying to do is to have multiple project.json files (game.project.json and menu.project.json in this case) sync up only their folder and the shared folder (for example, game.project.json would only sync the game folder and the shared folder, not the menu folder) It was going fine until I've created the second project.json, now rbxtsc complains that I'm not syncing the menu folder.
> bun watch
$ rbxtsc -w
Compiler Warning: Multiple *.project.json files found, using /home/***/Documents/Projects/***/game.project.json
[7:58:25 AM] Starting compilation in watch mode...

src/menu/client/character/main.client.ts:1:1 - error TS roblox-ts: Could not find Rojo data. There is no $path in your Rojo config that covers out/menu/client/character/main.client.luau

1 import { makeHello } from "shared/shared/module";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2

3 print(makeHello("character main.client.ts"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4


[7:58:25 AM] Found 1 error. Watching for file changes.
> bun watch
$ rbxtsc -w
Compiler Warning: Multiple *.project.json files found, using /home/***/Documents/Projects/***/game.project.json
[7:58:25 AM] Starting compilation in watch mode...

src/menu/client/character/main.client.ts:1:1 - error TS roblox-ts: Could not find Rojo data. There is no $path in your Rojo config that covers out/menu/client/character/main.client.luau

1 import { makeHello } from "shared/shared/module";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2

3 print(makeHello("character main.client.ts"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4


[7:58:25 AM] Found 1 error. Watching for file changes.
Is there a way I can tell rbxtsc to not compile the menu folder when I'm using the game.project.json?
1 Reply
okunamayanad
okunamayanadOP2mo ago
that seems to fix my issue thx didn't come up to my mind

Did you find this page helpful?