@@ -9,7 +9,7 @@ const { isReadyToRelease } = require('../shared/utils');
99const { execSync } = require ( 'child_process' ) ;
1010const { volarSupport } = require ( './build-volar-support' ) ;
1111const logger = require ( '../shared/logger' ) ;
12- const replaceIdentifierPath = path . resolve ( __dirname , '../replaceIdentifer.json' ) ;
12+ const replaceIdentifierPath = path . resolve ( __dirname , '../replaceIdentifer.json' ) ;
1313const replaceIdentifier = JSON . parse ( fs . readFileSync ( replaceIdentifierPath ) . toString ( ) ) ;
1414const entryDir = path . resolve ( __dirname , '../../devui' ) ;
1515const outputDir = path . resolve ( __dirname , '../../build' ) ;
@@ -21,7 +21,7 @@ const baseConfig = defineConfig({
2121} ) ;
2222
2323const rollupOptions = {
24- external : [ 'vue' , 'vue-router' , '@vueuse/core' , '@floating-ui/dom' ] ,
24+ external : [ 'vue' , 'vue-router' , '@vueuse/core' , '@floating-ui/dom' , 'monaco-editor' ] ,
2525 output : {
2626 globals : {
2727 vue : 'Vue' ,
@@ -103,12 +103,15 @@ exports.build = async () => {
103103 nuxtBuild . createNuxtPlugin ( ) ;
104104 logger . success ( '准备生成global.d.ts' ) ;
105105 const volarSupportbuildState = volarSupport ( replaceIdentifier , readyToReleaseComponentName ) ;
106- fs . writeFileSync ( './build/index.d.ts' , `
106+ fs . writeFileSync (
107+ './build/index.d.ts' ,
108+ `
107109export * from './types/vue-devui';
108110import _default from './types/vue-devui';
109111export default _default;
110- ` ) ;
111- if ( volarSupportbuildState ) {
112+ `
113+ ) ;
114+ if ( volarSupportbuildState ) {
112115 logger . success ( 'global.d.ts生成成功' ) ;
113116 } else {
114117 logger . error ( 'global.d.ts生成失败, 因为发生错误' ) ;
0 commit comments