Skip to content

Commit 87acfb8

Browse files
authored
feat: improved rules for Godot uid files (#288)
1 parent af61e7a commit 87acfb8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

update.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,6 @@ const gofile = [
324324
'.air*',
325325
]
326326

327-
const godot = [
328-
'$(capture).gd.uid',
329-
]
330-
331327
const gemfile = [
332328
'gemfile.lock',
333329
'.ruby-version',
@@ -466,7 +462,7 @@ const base = {
466462
'*.cjs': '$(capture).cjs.map, $(capture).*.cjs, $(capture)_*.cjs',
467463
'*.component.ts': '$(capture).component.html, $(capture).component.spec.ts, $(capture).component.css, $(capture).component.scss, $(capture).component.sass, $(capture).component.less',
468464
'*.cpp': '$(capture).hpp, $(capture).h, $(capture).hxx, $(capture).hh',
469-
'*.cs': '$(capture).*.cs',
465+
'*.cs': '$(capture).*.cs, $(capture).cs.uid',
470466
'*.cshtml': '$(capture).cshtml.cs, $(capture).cshtml.css',
471467
'*.css': '$(capture).css.map, $(capture).*.css',
472468
'*.cxx': '$(capture).hpp, $(capture).h, $(capture).hxx, $(capture).hh',
@@ -504,6 +500,9 @@ const base = {
504500
'Makefile': '*.mk',
505501
'pom.xml': 'mvnw*',
506502
'shims.d.ts': '*.d.ts',
503+
'*.gd': '$(capture).gd.uid',
504+
'*.gdshader': '$(capture).gdshader.uid',
505+
'*.gdshaderinc': '$(capture).gdshaderinc.uid'
507506
}
508507
// Based on the new SvelteKit's routing system https://kit.svelte.dev/docs/routing
509508
const svelteKitRouting = {
@@ -579,7 +578,6 @@ const full = sortObject({
579578
'*.db': stringify(sqlite),
580579
'*.razor': stringify(razor),
581580
'sanity.config.*': stringify(sanity),
582-
'*.gd': stringify(godot),
583581
...Object.fromEntries(Object.entries(frameworks).map(([n, i]) => [n, stringify([...i, ...libraries])])),
584582
...svelteKitRouting,
585583
}, (a, b) => {

0 commit comments

Comments
 (0)