Skip to content

Commit

Permalink
Re-enable redirecting directories to index.js files inside and bump v…
Browse files Browse the repository at this point in the history
…ersion.
  • Loading branch information
jjrv committed Nov 21, 2017
1 parent 20a89a4 commit 211e1cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cbuild",
"version": "0.1.6",
"version": "0.1.7",
"description": "Use SystemJS with npm instead of jspm",
"main": "dist/cbuild.js",
"typings": "dist/cbuild.d.ts",
Expand Down
9 changes: 3 additions & 6 deletions src/cbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,15 @@ function writeConfig(
node = node[part];
}

const packageName = node['/name'];
let packageName = node['/name'];

/*
if(!packageName) {
console.log('PACKAGE NAME:');
packageName = path2url(path.dirname(path.relative(basePath, fix)));
const spec = packageTbl[packageName] || (packageTbl[packageName] = {
rootPath: '',
fullRootPath: path.dirname(fix)
fullRootPath: path.dirname(fix),
rootPath: ''
});
}
*/

if(packageName) {
const spec = packageTbl[packageName];
Expand Down

0 comments on commit 211e1cd

Please sign in to comment.