Skip to content

Commit 88d5c0e

Browse files
authored
Merge pull request #3432 from NativeScript/pete/rebuild-aar-patch1
fix(plugin-build): build android plugin in workstation's temp directory
2 parents d77388d + 6ca709a commit 88d5c0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/commands/plugin/build-plugin.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { EOL } from "os";
22
import * as path from "path";
33
import * as constants from "../../constants";
4+
import * as temp from "temp";
45
export class BuildPluginCommand implements ICommand {
56
public allowedParameters: ICommandParameter[] = [];
67
public pluginProjectPath: string;
@@ -28,7 +29,8 @@ export class BuildPluginCommand implements ICommand {
2829
}
2930
}
3031

31-
const tempAndroidProject = path.join(platformsAndroidPath, "android-project");
32+
temp.track();
33+
const tempAndroidProject = temp.mkdirSync("android-project");
3234

3335
const options: IBuildOptions = {
3436
aarOutputDir: platformsAndroidPath,

0 commit comments

Comments
 (0)