fix: d.ts生成時にexport defaultを生成するように
This commit is contained in:
parent
96242e97ab
commit
6ae47bfeb8
|
@ -51,11 +51,7 @@ export default function generateDTS() {
|
||||||
ts.NodeFlags.Const | ts.NodeFlags.Ambient | ts.NodeFlags.ContextFlags,
|
ts.NodeFlags.Const | ts.NodeFlags.Ambient | ts.NodeFlags.ContextFlags,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ts.factory.createExportAssignment(
|
ts.factory.createExportDefault(ts.factory.createIdentifier('locales')),
|
||||||
undefined,
|
|
||||||
true,
|
|
||||||
ts.factory.createIdentifier('locales'),
|
|
||||||
),
|
|
||||||
];
|
];
|
||||||
const printed = ts.createPrinter({
|
const printed = ts.createPrinter({
|
||||||
newLine: ts.NewLineKind.LineFeed,
|
newLine: ts.NewLineKind.LineFeed,
|
||||||
|
|
|
@ -2159,4 +2159,4 @@ export interface Locale {
|
||||||
declare const locales: {
|
declare const locales: {
|
||||||
[lang: string]: Locale;
|
[lang: string]: Locale;
|
||||||
};
|
};
|
||||||
export = locales;
|
export default locales;
|
||||||
|
|
Loading…
Reference in New Issue