rojo-rbx / rojo

Rojo enables Roblox developers to use professional-grade software engineering tools
https://rojo.space
Mozilla Public License 2.0
908 stars 172 forks source link

Optional top-level default.project.json "name" field #858

Closed osyrisrblx closed 4 months ago

osyrisrblx commented 4 months ago

If a user does not fill in the "name" field of default.project.json file, it should default to the name of the parent folder.


To provide more context: this would be useful for roblox-ts npm packages.

Imagine as a user you:

  1. Clone roblox-ts package template, this creates a package.json + default.project.json + etc.
  2. You set the name of your package in package.json
  3. You forgot to rename "name" in default.project.json!
  4. Now when we load it into Studio, it has some generic name on it.

roblox-ts can resolve this path correctly by looking in default.project.json..

but it could cause conflicts between multiple packages with the same default.project.json "name" field