@databases/shared-print-types
Advanced tools
Comparing version 1.2.0-canary-1991 to 1.2.0-canary-1994
@@ -84,8 +84,11 @@ "use strict"; | ||
}); | ||
this._declarations.push(() => [ | ||
...declarationLines, | ||
this.getDefaultName() === identifierName | ||
? `export default ${identifierName};` | ||
: `export ${mode === 'type' ? 'type ' : ''}{${identifierName}}`, | ||
]); | ||
this._declarations.push({ | ||
name: identifierName, | ||
src: () => [ | ||
...declarationLines, | ||
this.getDefaultName() === identifierName | ||
? `export default ${identifierName};` | ||
: `export ${mode === 'type' ? 'type ' : ''}{${identifierName}}`, | ||
], | ||
}); | ||
} | ||
@@ -124,6 +127,9 @@ return { | ||
: []), | ||
...this._declarations.map((v) => v().join('\n')), | ||
...this._declarations | ||
.sort((a, b) => (a.name < b.name ? -1 : 1)) | ||
.map((v) => v.src().join('\n')), | ||
...(this._reExports.type.length | ||
? [ | ||
`export type {\n${this._reExports.type | ||
.sort((a, b) => (a.dest < b.dest ? -1 : 1)) | ||
.map((t) => t.source === t.dest | ||
@@ -138,2 +144,3 @@ ? ` ${t.source},` | ||
`export {\n${this._reExports.value | ||
.sort((a, b) => (a.dest < b.dest ? -1 : 1)) | ||
.map((t) => t.source === t.dest | ||
@@ -140,0 +147,0 @@ ? ` ${t.source},` |
{ | ||
"name": "@databases/shared-print-types", | ||
"version": "1.2.0-canary-1991", | ||
"version": "1.2.0-canary-1994", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
75431
457