tiny-engine
tiny-engine copied to clipboard
fix: change namespace 2 export module
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our Commit Message Guidelines
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
- [ ] Built its own designer, fully self-validated
PR Type
What kind of change does this PR introduce?
- [x] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:
Background and solution
webservice 项目运行 npm run tsc
的时候,报错:
app/service/app-center/generate.ts:15:22 - error TS2306: File '/lowcode-webservice/node_modules/@opentiny/tiny-engine-dsl-vue/dist/index.d.ts' is not a module.
15 import * as dsl from '@opentiny/tiny-engine-dsl-vue';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in app/service/app-center/generate.ts:15
What is the current behavior?
index.d.ts
文件导出 module 可以解决
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
Other information
Summary by CodeRabbit
-
New Features
- Introduced a new function
generateCode
for enhanced code generation capabilities. - Improved handling of global state with a more structured approach in store file generation.
- Introduced a new function
-
Documentation
- Updated JSDoc comments across various plugins to clarify type annotations for the
schema
parameter, enhancing type safety and clarity.
- Updated JSDoc comments across various plugins to clarify type annotations for the
-
Refactor
- Transitioned to a more modular structure with explicit imports for types, improving overall code organization and maintainability.