Permalink
Browse files

fix bug when package has no files definition

  • Loading branch information...
1 parent 22d5fc2 commit d54669c5ac2adf006b4ab25cea7109cb8dd89353 @mateuszwozniak committed Apr 26, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 src/BundleParser.js
View
@@ -1,6 +1,6 @@
{
"name": "glint",
- "version": "0.0.24",
+ "version": "0.0.25",
"author": "Mateusz Wozniak <mateusz@wozniak.io>",
"description": "Glint is an asset (css, js, whatever-you-need) management that helps you organize and manage your client side files",
"keywords": ["packer", "build", "compress", "glint", "assets"],
View
@@ -16,7 +16,7 @@ function BundleParser(rawBundle, assetsDir) {
}
function updateFilesPathsInPackage(pkg) {
- var files = pkg.files.map(function updateFilePath(filePath) {
+ var files = (pkg.files || []).map(function updateFilePath(filePath) {
var pth = path.join(assetsDir, filePath);
return path.normalize(pth);
});

0 comments on commit d54669c

Please sign in to comment.