Skip to content

Commit e22a10a

Browse files
committed
Add module export to exportData
1 parent 8e7ea7f commit e22a10a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/src/lib/exportData.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ module.exports = function(patternlab) {
8585
);
8686
});
8787

88-
//write all output to patternlab-data
88+
//add module.export to end of file.
89+
output +=
90+
'module.exports = { config, ishControls, navItems, patternPaths, viewAllPaths, plugins };';
8991

92+
//write all output to patternlab-data
9093
_.each(patternlab.uikits, uikit => {
9194
fs.outputFileSync(
9295
path.resolve(

0 commit comments

Comments
 (0)