Skip to content

Commit

Permalink
Support subfolders in common folder (#740) (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
const314 committed Jul 11, 2023
1 parent fe49d8a commit 70549ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/devextreme-vue-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Developer Express Inc.",
"name": "devextreme-vue-generator",
"version": "3.0.2",
"version": "3.0.3",
"description": "DevExtreme Vue UI and Visualization Components",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion packages/devextreme-vue-generator/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ function generate(
}
Object.keys(rawData.commonReexports).forEach((key) => {
const targetFileName = key === commonTargetFolderName ? "index.ts" : `${key.replace(`${commonTargetFolderName}/`, "")}.ts`;
const fullPath = joinPaths(commonPath, targetFileName);
mkdirSync(getDirName(fullPath), { recursive: true });
writeFile(
joinPaths(commonPath, targetFileName),
fullPath,
generateCommonReexports(key, rawData.commonReexports[key]),
{ encoding: "utf8" },
);
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@vue/compiler-sfc": "^3.0.0",
"@vue/test-utils": "2.0.0-beta.7",
"del": "^3.0.0",
"devextreme-vue-generator": "^3.0.1",
"devextreme-vue-generator": "^3.0.3",
"devextreme-vue2-strategy": "~23.2.0",
"gulp": "^4.0.2",
"gulp-header": "^2.0.9",
Expand Down

0 comments on commit 70549ba

Please sign in to comment.