Skip to content

Commit 228252a

Browse files
authored
release v1.5.4-alpha.0 (#1592)
1 parent 2b759f5 commit 228252a

File tree

1 file changed

+8
-5
lines changed
  • packages/devui-vue/devui-cli/commands

1 file changed

+8
-5
lines changed

packages/devui-vue/devui-cli/commands/build.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { isReadyToRelease } = require('../shared/utils');
99
const { execSync } = require('child_process');
1010
const { volarSupport } = require('./build-volar-support');
1111
const logger = require('../shared/logger');
12-
const replaceIdentifierPath = path.resolve(__dirname,'../replaceIdentifer.json');
12+
const replaceIdentifierPath = path.resolve(__dirname, '../replaceIdentifer.json');
1313
const replaceIdentifier = JSON.parse(fs.readFileSync(replaceIdentifierPath).toString());
1414
const entryDir = path.resolve(__dirname, '../../devui');
1515
const outputDir = path.resolve(__dirname, '../../build');
@@ -21,7 +21,7 @@ const baseConfig = defineConfig({
2121
});
2222

2323
const 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+
`
107109
export * from './types/vue-devui';
108110
import _default from './types/vue-devui';
109111
export 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

Comments
 (0)