adjust template to `import type` instead of import only

main
Laurin Weger 3 weeks ago
parent c27f939a37
commit 87c64c7f75
No known key found for this signature in database
GPG Key ID: 9B372BB0B792770F
  1. 2
      packages/cli/src/templates/schema.ejs
  2. 4
      packages/cli/src/templates/shapeTypes.compact.ejs

@ -1,4 +1,4 @@
import { Schema } from "shexj"; import type { Schema } from "shexj";
/** /**
* ============================================================================= * =============================================================================

@ -1,6 +1,6 @@
import { CompactShapeType } from "@ldo/ldo"; import type { CompactShapeType } from "@ldo/ldo";
import { <%- fileName %>Schema } from "./<%- fileName %>.schema"; import { <%- fileName %>Schema } from "./<%- fileName %>.schema";
import { import type {
<% typings.forEach((typing)=> { if (!/Id$/.test(typing.dts.name)) { -%> <% typings.forEach((typing)=> { if (!/Id$/.test(typing.dts.name)) { -%>
<%- typing.dts.name %>, <%- typing.dts.name %>,
<% } }); -%>} from "./<%- fileName %>.typings"; <% } }); -%>} from "./<%- fileName %>.typings";

Loading…
Cancel
Save