From db018fa20fd47db678b51cff94d27978a4c64719 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Sun, 17 May 2015 00:09:45 -0400 Subject: [PATCH] [fixed] Put AMD modules under correct path Fixes #679 --- tools/amd/build.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/amd/build.js b/tools/amd/build.js index 70b12d7f3c..4544c74522 100644 --- a/tools/amd/build.js +++ b/tools/amd/build.js @@ -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([ @@ -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) ]))