mirror of
https://github.com/0x5eal/terracotta.git
synced 2024-12-12 12:50:35 +00:00
fix(codegen): exclude lune types in bundling
This commit is contained in:
parent
7dc0020fa5
commit
4218024182
2 changed files with 2 additions and 48 deletions
|
@ -42,7 +42,7 @@ export type Options = {
|
|||
return function(opts: Options): string
|
||||
local generator: Generators = opts.generator or "retain_lines"
|
||||
local encodedExcludes = JSONEncode(opts.excludes)
|
||||
local excludes = (encodedExcludes == "null" and "[]") or encodedExcludes
|
||||
local excludes = (encodedExcludes == "null" and '["@lune/**"]') or encodedExcludes
|
||||
local requireMode = opts.requireMode or "path"
|
||||
local moduleFolderName = opts.moduleFolderName or "init"
|
||||
local sources = JSONEncode(opts.sources or { ["@terracotta"] = "./.terracotta" })
|
||||
|
|
|
@ -1,47 +1 @@
|
|||
{
|
||||
"name": "terracotta",
|
||||
"className": "Folder",
|
||||
"filePaths": [
|
||||
"default.project.json"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "darklua",
|
||||
"className": "Folder",
|
||||
"children": [
|
||||
{
|
||||
"name": "bundler",
|
||||
"className": "ModuleScript",
|
||||
"filePaths": [
|
||||
"darklua/bundler.luau"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cmd",
|
||||
"className": "ModuleScript",
|
||||
"filePaths": [
|
||||
"darklua/cmd.luau"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "codegen",
|
||||
"className": "ModuleScript",
|
||||
"filePaths": [
|
||||
"darklua/codegen.luau"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "minifier",
|
||||
"className": "ModuleScript",
|
||||
"filePaths": [
|
||||
"darklua/minifier.luau"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "terracotta",
|
||||
"className": "Folder"
|
||||
}
|
||||
]
|
||||
}
|
||||
{"name":"terracotta","className":"Folder","filePaths":["default.project.json"],"children":[{"name":"darklua","className":"Folder","children":[{"name":"bundler","className":"ModuleScript","filePaths":["darklua/bundler.luau"]},{"name":"cmd","className":"ModuleScript","filePaths":["darklua/cmd.luau"]},{"name":"codegen","className":"ModuleScript","filePaths":["darklua/codegen.luau"]},{"name":"minifier","className":"ModuleScript","filePaths":["darklua/minifier.luau"]}]},{"name":"terracotta","className":"Folder"}]}
|
Loading…
Reference in a new issue