forked from opentiny/tiny-engine
parent
233ec2a75b
commit
db1033835e
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "designer-demo",
|
||||
"private": true,
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "cross-env vite",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-mock",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-block-compiler",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-block-build",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"description": "translate block to webcomponent template",
|
||||
"main": "./dist/web-components.es.js",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-vite-config",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"main": "./index.js",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-vite-plugin-meta-comments",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"main": "dist/index.cjs",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-builtin-component",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"description": "",
|
||||
"main": "dist/index.mjs",
|
||||
"module": "dist/index.mjs",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-canvas",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-common",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-configurator",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"type": "module",
|
||||
"description": "TinyEngine enables developers to customize low-code platforms, build low-bit platforms online in real time, and support secondary development or integration of low-bit platform capabilities.",
|
||||
"homepage": "https://opentiny.design/tiny-engine",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-cli",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
# alpha mode, used by the "build:alpha" script
|
||||
|
||||
NODE_ENV=production
|
||||
# VITE_CDN_DOMAIN=https://unpkg.com
|
||||
VITE_CDN_DOMAIN=https://registry.npmmirror.com
|
||||
# 使用npmmirror的cdn 时,需要声明 VITE_CDN_TYPE=npmmirror
|
||||
VITE_CDN_TYPE=npmmirror
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
# development mode, used by the "vite" command
|
||||
|
||||
NODE_ENV=development
|
||||
# VITE_CDN_DOMAIN=https://unpkg.com
|
||||
VITE_CDN_DOMAIN=https://registry.npmmirror.com
|
||||
# 使用npmmirror的cdn 时,需要声明 VITE_CDN_TYPE=npmmirror
|
||||
VITE_CDN_TYPE=npmmirror
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
# CDN 本地化配置示例
|
||||
|
||||
# 将画布、页面预览需要的 vue、vue-i18n 等等依赖复制到构建产物中
|
||||
VITE_LOCAL_IMPORT_MAPS=true
|
||||
|
||||
# 将本地物料 bundle.json 的 script 和 css 复制到构建产物中
|
||||
VITE_LOCAL_BUNDLE_DEPS=true
|
||||
|
||||
# 将 VITE_LOCAL_BUNDLE_DEPS 复制到构建产物中的目录名称,默认为 local-cdn-static
|
||||
VITE_LOCAL_IMPORT_PATH=local-cdn-static
|
||||
|
|
@ -5,14 +5,14 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "concurrently 'pnpm:serve:mock' 'pnpm:serve:frontend'",
|
||||
"build:alpha": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode alpha",
|
||||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build",
|
||||
"build:alpha": "cross-env NODE_OPTIONS=--max-old-space-size=10240 vite build --mode alpha",
|
||||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=10240 vite build",
|
||||
"serve:frontend": "cross-env vite",
|
||||
"serve:mock": "node node_modules/@opentiny/tiny-engine-mock/dist/app.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@opentiny/tiny-engine": "2.5.0-rc.0",
|
||||
"@opentiny/tiny-engine-utils": "2.5.0-rc.0",
|
||||
"@opentiny/tiny-engine": "^2.5.0",
|
||||
"@opentiny/tiny-engine-utils": "^2.5.0",
|
||||
"@opentiny/vue": "~3.20.0",
|
||||
"@opentiny/vue-design-smb": "~3.20.0",
|
||||
"@opentiny/vue-icon": "~3.20.0",
|
||||
|
|
@ -23,8 +23,8 @@
|
|||
"vue": "^3.4.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@opentiny/tiny-engine-mock": "2.5.0-rc.0",
|
||||
"@opentiny/tiny-engine-vite-config": "2.5.0-rc.0",
|
||||
"@opentiny/tiny-engine-mock": "^2.5.0",
|
||||
"@opentiny/tiny-engine-vite-config": "^2.5.0",
|
||||
"@vitejs/plugin-vue": "^5.1.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"vite": "^5.4.2",
|
||||
|
|
|
|||
|
|
@ -10166,7 +10166,8 @@
|
|||
"devMode": "proCode",
|
||||
"npm": {
|
||||
"package": "@opentiny/vue",
|
||||
"exportName": "TinyGridColumn"
|
||||
"exportName": "TinyGridColumn",
|
||||
"destructuring": true
|
||||
},
|
||||
"group": "component",
|
||||
"priority": 2,
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@
|
|||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@opentiny/tiny-engine": "^2.0.0-alpha.3"
|
||||
"@opentiny/tiny-engine": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-i18n-host",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-layout",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"scripts": {
|
||||
"build": "vite build"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-block",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-bridge",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-datasource",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-help",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-i18n",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-materials",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-page",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-robot",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-schema",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-script",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-state",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-tree",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-plugin-tutorial",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-meta-register",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-setting-design",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-setting-events",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-settings-panel",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-setting-props",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-setting-styles",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-svgs",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-theme-base",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-breadcrumb",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-clean",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-collaboration",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-fullscreen",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-generate-code",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-lang",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-lock",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-logo",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-logout",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-media",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-preview",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-redoundo",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-refresh",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-save",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-setting",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-theme-switch",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-toolbar-view-setting",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-utils",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-dsl-vue",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@opentiny/tiny-engine-webcomponent-core",
|
||||
"version": "2.5.0-rc.5",
|
||||
"version": "2.5.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -51,6 +51,36 @@ async function copyTemplate() {
|
|||
}
|
||||
}
|
||||
|
||||
function removePkgDependencies(pkg, { dependencies = [], devDependencies = [] } = {}) {
|
||||
dependencies?.forEach((name) => delete pkg.dependencies[name])
|
||||
devDependencies?.forEach((name) => delete pkg.devDependencies[name])
|
||||
}
|
||||
|
||||
function removePkgScripts(pkg, scripts) {
|
||||
if (!scripts || !scripts.length) {
|
||||
return
|
||||
}
|
||||
scripts.forEach((name) => delete pkg.scripts[name])
|
||||
}
|
||||
|
||||
async function removeFiles(files) {
|
||||
if (!files || !files.length) {
|
||||
return
|
||||
}
|
||||
for (const file of files) {
|
||||
const filePath = path.resolve(templateDistPath, file)
|
||||
if (await fs.pathExists(filePath)) {
|
||||
await fs.remove(filePath)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function removeVitest(pkg) {
|
||||
removePkgDependencies(pkg, { devDependencies: ['vitest', 'vite-plugin-vitest']})
|
||||
removePkgScripts(pkg, ['test', 'test:watch'])
|
||||
await removeFiles(['vitest.config.js', 'tests'])
|
||||
}
|
||||
|
||||
async function updatePkgJson() {
|
||||
const { version } = pkg
|
||||
const pkgJsonPath = path.resolve(templateDistPath, 'package.json')
|
||||
|
|
@ -76,12 +106,13 @@ async function updatePkgJson() {
|
|||
Object.keys(deps)
|
||||
.filter((name) => name.includes('@opentiny/tiny-engine'))
|
||||
.forEach((name) => {
|
||||
deps[name] = version
|
||||
deps[name] = `^${version}`
|
||||
})
|
||||
}
|
||||
updateDependencyVersions(pkgData.dependencies)
|
||||
updateDependencyVersions(pkgData.devDependencies)
|
||||
|
||||
await removeVitest(pkgData)
|
||||
await fs.writeJSON(pkgJsonPath, pkgData, { spaces: 2 })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue