Skip to content

Commit

Permalink
hi-cocos 依赖更新
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc committed Aug 16, 2024
1 parent 1c14f5f commit 6d09a6a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 51 deletions.
62 changes: 22 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions packages/hello-build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cocos-fe/hello-build",
"version": "1.0.0",
"version": "1.0.1",
"description": "cocos editor 插件构建工具",
"type": "module",
"module": "src/core.js",
Expand All @@ -14,13 +14,13 @@
"hi-cocos-icns": "shell/icns.sh"
},
"dependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue": "^5.1.2",
"@vitejs/plugin-vue2": "^2.3.1",
"chokidar": "^3.6.0",
"commander": "^12.0.0",
"commander": "^12.1.0",
"less": "^4.2.0",
"vite": "^5.2.6",
"webpack-merge": "^5.10.0"
"rollup-plugin-node-externals": "^7.1.2",
"vite": "^5.4.1"
},
"publishConfig": {
"access": "public",
Expand All @@ -29,9 +29,6 @@
"engines": {
"node": ">=18"
},
"devDependencies": {
"rollup-plugin-node-externals": "^7.1.1"
},
"files": [
"src",
"shell",
Expand Down
5 changes: 2 additions & 3 deletions packages/hello-build/src/core.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { build, defineConfig } from 'vite';
import { build, defineConfig, mergeConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vue2 from '@vitejs/plugin-vue2';
import { resolve } from 'path';
import { statSync, existsSync } from 'fs';
import { nodeExternals } from 'rollup-plugin-node-externals';
import { merge } from 'webpack-merge';
import { pathToFileURL } from 'node:url';

export { defineConfig } from 'vite';
Expand Down Expand Up @@ -58,7 +57,7 @@ export function createViteBuild(taskConfig) {

// 原则上,这些配置应该是由外面传进来,内部不做 default 的配置,已达到灵活的定制需求
// 但是我们业务形态比较固定,灵活性 < 简单化
const c = merge(
const c = mergeConfig(
defineConfig({
plugins: plugins,
base: './',
Expand Down

0 comments on commit 6d09a6a

Please sign in to comment.