Skip to content
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

修改 templatePath 对应模板中自定义接口内容,执行生成代码操作,outDir 接口文件内容不更新 #370

Open
KuangPF opened this issue Apr 4, 2023 · 1 comment
Labels
question Further information is requested

Comments

@KuangPF
Copy link

KuangPF commented Apr 4, 2023

What happens(发生了什么)?

pont-config.json 中配置 templatePath 字段,并在自定义模板中编写对应接口代码,使用 vscode 插件生成代码或者运行 pont generate命令生成代码,对应 outDir 中接口内容不更新。

How To Reproduce(如何重现)

配置 pont-config.json ,然后修改对应 templatePath 文件中接口内容,outDir 目录中接口内容不更新。

Context(上下文)

  • pont Version: 1.5.7
  • Node Version: 18.12.1
  • Platform(操作系统平台): window10 以及 mac 13.2
@KuangPF KuangPF changed the title 修改 templatePath 对应模板中自定义接口内容,执行生成代码操作,ourDir 接口文件内容不更新 修改 templatePath 对应模板中自定义接口内容,执行生成代码操作,outDir 接口文件内容不更新 Apr 4, 2023
@z979054461
Copy link
Collaborator

z979054461 commented Feb 6, 2024

建议重启vscode或者删除node_modules/.pont中的对应缓存然后重试

@z979054461 z979054461 added the question Further information is requested label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants