chore: format

This commit is contained in:
cha0s 2022-02-28 21:05:08 -06:00
parent f15e3edf8e
commit 3ad81146a4

View File

@ -426,25 +426,6 @@ export default class ServerFlecks extends Flecks {
return this.rcs;
}
sourcepath(fleck) {
return this.constructor.sourcepath(fleck);
}
static sourcepath(path) {
let sourcepath = realpathSync(path);
const parts = sourcepath.split('/');
const indexOf = parts.lastIndexOf('dist');
if (-1 !== indexOf) {
parts.splice(indexOf, 1, 'src');
sourcepath = parts.join('/');
sourcepath = join(dirname(sourcepath), basename(sourcepath, extname(sourcepath)));
}
else {
sourcepath = join(sourcepath, 'src');
}
return sourcepath;
}
resolve(path) {
return this.constructor.resolve(this.resolver, path);
}
@ -529,6 +510,25 @@ export default class ServerFlecks extends Flecks {
}
}
sourcepath(fleck) {
return this.constructor.sourcepath(fleck);
}
static sourcepath(path) {
let sourcepath = realpathSync(path);
const parts = sourcepath.split('/');
const indexOf = parts.lastIndexOf('dist');
if (-1 !== indexOf) {
parts.splice(indexOf, 1, 'src');
sourcepath = parts.join('/');
sourcepath = join(dirname(sourcepath), basename(sourcepath, extname(sourcepath)));
}
else {
sourcepath = join(sourcepath, 'src');
}
return sourcepath;
}
stubs() {
return this.constructor.stubs(this.platforms, this.rcs);
}