Skip to content

Commit b0f6317

Browse files
authored
Support subfolders in common folder (#852) (#853)
1 parent 87f9e56 commit b0f6317

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/devextreme-react-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Developer Express Inc.",
33
"name": "devextreme-react-generator",
4-
"version": "4.1.2",
4+
"version": "4.1.3",
55
"description": "DevExtreme React UI and Visualization Components",
66
"repository": {
77
"type": "git",

packages/devextreme-react-generator/src/generator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,10 @@ function generate({
521521
}
522522
Object.keys(rawData.commonReexports).forEach((key) => {
523523
const targetFileName = key === commonTargetFolderName ? 'index.ts' : `${key.replace(`${commonTargetFolderName}/`, '')}.ts`;
524+
const fullPath = joinPaths(commonPath, targetFileName);
525+
mkdirSync(getDirName(fullPath), { recursive: true });
524526
writeFile(
525-
joinPaths(commonPath, targetFileName),
527+
fullPath,
526528
generateCommonReexports(key, rawData.commonReexports[key]),
527529
{ encoding: 'utf8' },
528530
);

packages/devextreme-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@types/react": "^16.14.28",
3737
"@types/react-dom": "^16.9.16",
3838
"del": "^3.0.0",
39-
"devextreme-react-generator": "^4.1.2",
39+
"devextreme-react-generator": "^4.1.3",
4040
"gulp": "^4.0.2",
4141
"gulp-header": "^2.0.9",
4242
"gulp-shell": "^0.8.0",

0 commit comments

Comments
 (0)