Skip to content

Commit

Permalink
bug wrong path for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Feb 4, 2025
1 parent 6e0a850 commit 604f95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class Builder {
if (this.options.debug) {
Object.getOwnPropertyNames(ms.moduleCollection).forEach((sourcePath) => { // relative path, i.e. src/index.heta
let fullPath = path.join(this._metaDirname, sourcePath + '.json');
let str = JSON.stringify(ms.moduleCollection[name], null, 2);
let str = JSON.stringify(ms.moduleCollection[sourcePath], null, 2);
this.fileWriteHandler(fullPath, str);
this.logger.info(`Meta file was saved to ${fullPath}`);
});
Expand Down

0 comments on commit 604f95b

Please sign in to comment.