Skip to content

Commit

Permalink
Support subfolders in common folder (#852) (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
const314 committed Jul 11, 2023
1 parent 87f9e56 commit b0f6317
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/devextreme-react-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Developer Express Inc.",
"name": "devextreme-react-generator",
"version": "4.1.2",
"version": "4.1.3",
"description": "DevExtreme React UI and Visualization Components",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion packages/devextreme-react-generator/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,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-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/react": "^16.14.28",
"@types/react-dom": "^16.9.16",
"del": "^3.0.0",
"devextreme-react-generator": "^4.1.2",
"devextreme-react-generator": "^4.1.3",
"gulp": "^4.0.2",
"gulp-header": "^2.0.9",
"gulp-shell": "^0.8.0",
Expand Down

0 comments on commit b0f6317

Please sign in to comment.