Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
ensure package-level format is respected
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 9, 2016
1 parent 3d0bab0 commit a46c934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/node-conversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,13 @@ exports.convertPackage = function(packageConfig, packageName, packageDir, ui) {
var filePath = path.resolve(packageDir, fileName);

// when generating meta, set up the empty object now
var fileFormat = systemConfig.format;
if (meta)
var curMeta = {};

// otherwise read format comprehensively from existing metadata
else
var fileFormat = readMeta(fileName, systemConfig.meta).format || systemConfig.format;
fileFormat = readMeta(fileName, systemConfig.meta).format || systemConfig.format;

var fileSource;

Expand Down

0 comments on commit a46c934

Please sign in to comment.