chore: format
This commit is contained in:
parent
f15e3edf8e
commit
3ad81146a4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user