Skip to content

Commit

Permalink
typescript: Update template for new variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlsh committed Mar 11, 2024
1 parent b351d72 commit 27a576e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": { <% girModules.forEach(function(module, idx) { %>
"paths": { <% registry.all().forEach(function(module, idx, arr) { %>
<%_ const pkg = dep.get(module.namespace, module.version) _%>
<%_ const path = package ? join(typeDir, pkg.importName, pkg.importName) : join(typeDir, pkg.importName) _%>
"gi://<%= module.namespace %>?version=<%= module.version %>": ["<%= path %>.d.ts"]<% if (idx < girModules.length - 1) { %>,<% } %><% }); %>
<%_ const path = pkg ? join(typeDir, pkg.importName, pkg.importName) : join(typeDir, pkg.importName) _%>
"gi://<%= module.namespace %>?version=<%= module.version %>": ["<%= path %>.d.ts"]<% if (idx < arr.length - 1) { %>,<% } %><% }); %>
}
},
"include": ["<%= typeDir %>/*.ts"]
Expand Down

0 comments on commit 27a576e

Please sign in to comment.