mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Do not explicitly require modules from project directory (#713)
* Allow to pass-through projectPath to Builder * Do not explicitly require modules from project directory
This commit is contained in:
committed by
GitHub
parent
b177f84825
commit
4cf3dcfaae
+2
-2
@@ -142,8 +142,8 @@ function writeProjectProperties (projectPath, target_api) {
|
||||
|
||||
// This makes no sense, what if you're building with a different build system?
|
||||
function prepBuildFiles (projectPath) {
|
||||
var buildModule = require(path.resolve(projectPath, 'cordova/lib/builders/builders'));
|
||||
buildModule.getBuilder().prepBuildFiles();
|
||||
var buildModule = require('../templates/cordova/lib/builders/builders');
|
||||
buildModule.getBuilder(projectPath).prepBuildFiles();
|
||||
}
|
||||
|
||||
function copyBuildRules (projectPath, isLegacy) {
|
||||
|
||||
Reference in New Issue
Block a user