Skip to content

Commit

Permalink
[fixed] Put AMD modules under correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Jia committed May 17, 2015
1 parent 8f74b2f commit db018fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/amd/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const license = path.join(repoRoot, 'LICENSE');

const babelOptions = '--modules amd';

const factoriesDestination = path.join(bowerRoot, 'factories');
const libDestination = path.join(bowerRoot, 'lib');
const factoriesDestination = path.join(libDestination, 'factories');

function bowerConfig() {
return Promise.all([
Expand All @@ -36,7 +37,7 @@ export default function BuildBower() {
.then(() => Promise.all([
bowerConfig(),
generateFactories(factoriesDestination, babelOptions),
exec(`babel ${babelOptions} ${srcRoot} --out-dir ${bowerRoot}`),
exec(`babel ${babelOptions} ${srcRoot} --out-dir ${libDestination}`),
copy(readme, bowerRoot),
copy(license, bowerRoot)
]))
Expand Down

0 comments on commit db018fa

Please sign in to comment.