-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature/Enhancement] 请教一下 cli程序是否可以自行编译,如何编译? #1448
Comments
可以拉取代码后进入 apps/cli 目录下,先执行 pnpm i,再执行 pnpm build 进行编译 |
[root@iZj6cdk86wk0jx4xwoxunrZ cli]# pnpm i dependencies:
devDependencies:
../.. prepare$ node -e "try { import('husky').then((d) => console.log(d.default())) } catch (e) {if (e.code !== 'MODULE_NOT_FOUND' && !e.message.startsWith('.git')) throw e}"
src/cmd/checkConfig.ts:13:29 - error TS2307: Cannot find module '@scow/config/build/ai' or its corresponding type declarations. 13 import { getAiConfig } from "@scow/config/build/ai"; src/cmd/checkConfig.ts:14:31 - error TS2307: Cannot find module '@scow/config/build/app' or its corresponding type declarations. 14 import { getAppConfigs } from "@scow/config/build/app"; src/cmd/checkConfig.ts:15:35 - error TS2307: Cannot find module '@scow/config/build/cluster' or its corresponding type declarations. 15 import { getClusterConfigs } from "@scow/config/build/cluster"; src/cmd/checkConfig.ts:16:39 - error TS2307: Cannot find module '@scow/config/build/clusterTexts' or its corresponding type declarations. 16 import { getClusterTextsConfig } from "@scow/config/build/clusterTexts"; src/cmd/checkConfig.ts:17:33 - error TS2307: Cannot find module '@scow/config/build/common' or its corresponding type declarations. 17 import { getCommonConfig } from "@scow/config/build/common"; src/cmd/checkConfig.ts:18:30 - error TS2307: Cannot find module '@scow/config/build/mis' or its corresponding type declarations. 18 import { getMisConfig } from "@scow/config/build/mis"; src/cmd/checkConfig.ts:19:33 - error TS2307: Cannot find module '@scow/config/build/portal' or its corresponding type declarations. 19 import { getPortalConfig } from "@scow/config/build/portal"; src/cmd/checkConfig.ts:20:29 - error TS2307: Cannot find module '@scow/config/build/ui' or its corresponding type declarations. 20 import { getUiConfig } from "@scow/config/build/ui"; src/config/env.ts:13:38 - error TS2307: Cannot find module '@scow/lib-config' or its corresponding type declarations. 13 import { bool, envConfig, str } from "@scow/lib-config"; src/config/install.ts:13:27 - error TS2307: Cannot find module '@scow/lib-config/build/fileConfig' or its corresponding type declarations. 13 import { getConfig } from "@scow/lib-config/build/fileConfig"; Found 10 errors in 3 files. Errors Files |
当 docker build -f docker/Dockerfile.scow -t scow . 的编译过程中 看到有cli的 build过程,就是没有找到exe目录和其生成的文件 |
1 similar comment
当 docker build -f docker/Dockerfile.scow -t scow . 的编译过程中 看到有cli的 build过程,就是没有找到exe目录和其生成的文件 |
不好意思,之前的回复有部分错误,由于项目时 monorepo 的所以直接在 cli 目录下执行 pnpm i 会有问题
pnpm i --frozen-lockfile --filter @scow/cli...
pnpm build "--filter=@scow/cli"
|
为何需要此功能 | Why is this needed
请教一下 cli程序是否可以自行编译,如何编译?
希望增加什么 | What would you like to be added
No response
此功能为谁设计? | Who is this feature for?
No response
The text was updated successfully, but these errors were encountered: