From 4cd731b5c19c10c09400a89a642bba2f01951fad Mon Sep 17 00:00:00 2001 From: Kagol Date: Wed, 1 Nov 2023 21:16:36 -0700 Subject: [PATCH] fix: fix cannot find module tiny-engine-dsl-vue error when download code or preview --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7829e7b220..48acad2a3a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "scripts": { "preinstall": "npx only-allow pnpm", - "dev": "concurrently 'pnpm:serve:backend' 'pnpm:serve:frontend'", + "dev": "concurrently 'pnpm:serve:backend' 'pnpm:serve:frontend' 'pnpm:build:dsl'", "dev:mock": "pnpm --filter @opentiny/tiny-engine dev", "serve:frontend": "pnpm --filter @opentiny/tiny-engine serve", "serve:backend": "pnpm --filter @opentiny/tiny-engine-mock dev", @@ -11,6 +11,7 @@ "build:alpha": "pnpm --filter @opentiny/tiny-engine build:alpha", "build:prod": "pnpm --filter @opentiny/tiny-engine build:prod", "buildComponentSchemas": "node scripts/buildComponentSchemas.js", + "build:dsl": "pnpm -F @opentiny/tiny-engine-dsl-vue build", "preview": "pnpm --filter @opentiny/tiny-engine preview", "lint": "eslint . --ext .js,.vue,.jsx --fix", "format": "prettier --write **/*{.vue,.js,.ts,.html,.json}",