@kubb/core
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
@@ -227,3 +227,3 @@ import { DirectoryTreeOptions } from 'directory-tree'; | ||
type Import = { | ||
name: string | string[]; | ||
name: string | string[] | readonly string[]; | ||
path: string; | ||
@@ -230,0 +230,0 @@ isTypeOnly?: boolean; |
@@ -272,3 +272,6 @@ import { createRequire } from 'module'; | ||
if (!exists) { | ||
imports.push(curr); | ||
imports.push({ | ||
...curr, | ||
name: Array.isArray(curr.name) ? uniq(curr.name) : curr.name | ||
}); | ||
return; | ||
@@ -275,0 +278,0 @@ } |
{ | ||
"name": "@kubb/core", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"description": "Generator core", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -48,3 +48,6 @@ import uniq from 'lodash.uniq' | ||
if (!exists) { | ||
imports.push(curr) | ||
imports.push({ | ||
...curr, | ||
name: Array.isArray(curr.name) ? uniq(curr.name) : curr.name, | ||
}) | ||
return | ||
@@ -51,0 +54,0 @@ } |
type Import = { | ||
name: string | string[] | ||
name: string | string[] | readonly string[] | ||
path: string | ||
@@ -4,0 +4,0 @@ isTypeOnly?: boolean |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
189162
2961