Skip to content

Commit d9dd119

Browse files
committed
chore: update after review + submodule
1 parent 2a15071 commit d9dd119

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lib/commands/plugin/build-plugin.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ export class BuildPluginCommand implements ICommand {
1111
private $fs: IFileSystem,
1212
private $options: IOptions) {
1313

14-
if (this.$options.path) {
15-
this.pluginProjectPath = path.resolve(this.$options.path);
16-
} else {
17-
this.pluginProjectPath = path.resolve(".");
18-
}
14+
this.pluginProjectPath = path.resolve(this.$options.path || ".");
1915
}
2016

2117
public async execute(args: string[]): Promise<void> {
@@ -55,7 +51,7 @@ export class BuildPluginCommand implements ICommand {
5551
}
5652

5753
public async canExecute(args: string[]): Promise<boolean> {
58-
if (!this.$fs.exists(path.join(this.pluginProjectPath, "platforms", "android"))) {
54+
if (!this.$fs.exists(path.join(this.pluginProjectPath, constants.PLATFORMS_DIR_NAME, "android"))) {
5955
this.$errors.failWithoutHelp("No plugin found at the current directory, or the plugin does not need to have its platforms/android components built into an `.aar`.");
6056
}
6157

lib/common

Submodule common updated 1 file

0 commit comments

Comments
 (0)