You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User accidentally specifies a custom scope in package.json, but wants to compile as a Model project. roblox-ts will infer this as a Package project due to the custom scope and emit local TS = _G[script] for RuntimeLib usage.
The user can workaround this by:
Specifying --type Model in CLI args
Removing custom scope from package.json
I think a diagnostic makes sense here. There's no reason you'd want to compile a Package project and include RuntimeLib.lua in your default.project.json. This would only ever result in either packages accidentally publishing with a RuntimeLib.lua or non-package projects compiling with local TS = _G[script] when they shouldn't.
The text was updated successfully, but these errors were encountered:
Scenario
User accidentally specifies a custom scope in package.json, but wants to compile as a Model project. roblox-ts will infer this as a Package project due to the custom scope and emit
local TS = _G[script]
for RuntimeLib usage.The user can workaround this by:
--type Model
in CLI argsI think a diagnostic makes sense here. There's no reason you'd want to compile a Package project and include RuntimeLib.lua in your
default.project.json
. This would only ever result in either packages accidentally publishing with a RuntimeLib.lua or non-package projects compiling withlocal TS = _G[script]
when they shouldn't.The text was updated successfully, but these errors were encountered: