Skip to content

fix: 🧩 修复框架没有被正常作为依赖安装的问题 #322

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

Open
wants to merge 1 commit into
base: feat/generator-upgrade
Choose a base branch
from

Conversation

mr8eight
Copy link

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation update
  • Performance improvement
  • Test related changes
  • Security fix
  • Dependency update
  • Revert changes
  • Other... Please describe:

What is the current behavior?

  • Closes #
  • Related to #

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@@ -240,7 +240,7 @@ class Generator {
// 单独处理一个框架相关依赖,主要是将框架相关的依赖包插入到pkg内,以及将需要的构建工具配置合并到构建工具模板中
async templateGenerate() {
const templatePath = `packages/core/dist/template/template-${this.templateName}/generator/index.js`;
const templateGenerator = await this.loadBase(templatePath, "");
const templateGenerator = getDefaultExport(await this.loadBase(templatePath, ""));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改动影响了其他的插件加载,所以最好回归测试一下,看看其他插件有没有被影响结果

@@ -10,116 +10,107 @@ importers:
devDependencies:
'@commitlint/cli':
specifier: ^18.4.3
version: 18.6.1(@types/[email protected])([email protected])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnpm lock 怎么会更新呢,你没改相关依赖。从改动上来看是node、pnpm版本有些问题,这个要对齐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants