Skip to content

Commit 4b7bf5f

Browse files
authored
feat: Deno support (#115) (#119)
1 parent 888c7c5 commit 4b7bf5f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

update.mjs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,14 +280,21 @@ const phoenixLiveView = [
280280
'$(capture).html.heex',
281281
]
282282

283+
const denoRuntime = [
284+
'import_map.json',
285+
'import-map.json',
286+
...tsconfig,
287+
...env
288+
]
289+
283290
const base = {
284291
'.gitignore': '.gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*',
285292
'*.css': '$(capture).css.map, $(capture).*.css',
286-
'*.js': '$(capture).js.map, $(capture).*.js',
287-
'*.jsx': '$(capture).js, $(capture).*.jsx',
288-
'*.ts': '$(capture).js, $(capture).*.ts',
293+
'*.js': '$(capture).js.map, $(capture).*.js, $(capture)_*.js',
294+
'*.jsx': '$(capture).js, $(capture).*.jsx, $(capture)_*.js, $(capture)_*.jsx',
295+
'*.ts': '$(capture).js, $(capture).*.ts, $(capture)_*.js, $(capture)_*.ts',
289296
'*.component.ts': '$(capture).component.html, $(capture).component.spec.ts, $(capture).component.css, $(capture).component.scss, $(capture).component.sass, $(capture).component.less',
290-
'*.tsx': '$(capture).ts, $(capture).*.tsx',
297+
'*.tsx': '$(capture).ts, $(capture).*.tsx, $(capture)_*.ts, $(capture)_*.tsx',
291298
'*.vue': '$(capture).*.ts, $(capture).*.js',
292299
'shims.d.ts': '*.d.ts',
293300
'*.cpp': '$(capture).hpp, $(capture).h, $(capture).hxx',
@@ -343,6 +350,7 @@ const full = sortObject({
343350
'pyproject.toml': stringify(pdm),
344351
'*.ex': stringify(phoenixLiveView),
345352
'*.tex': stringify(tex),
353+
"deno.json*": stringify(denoRuntime),
346354
...Object.fromEntries(Object.entries(frameworks).map(([n, i]) => [n, stringify([...i, ...libraries])])),
347355
})
348356

0 commit comments

Comments
 (0)