mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: removed really necessary locations (#312)
* fix: removed really necessary locations * fix: use 'base' instead of 'output'
This commit is contained in:
parent
db63352dea
commit
a74452d0a0
@ -434,14 +434,13 @@ export class BaseClient {
|
||||
|
||||
const locationsFullPaths: RC['locations'] = {
|
||||
base: locations.base,
|
||||
output: locations.output,
|
||||
};
|
||||
|
||||
for (const i in locations) {
|
||||
const key = i as keyof typeof locations;
|
||||
const location = locations[key];
|
||||
if (key in locationsFullPaths) continue;
|
||||
if (typeof location === 'string') locationsFullPaths[key] = join(process.cwd(), locations.output, location);
|
||||
if (typeof location === 'string') locationsFullPaths[key] = join(process.cwd(), locations.base, location);
|
||||
else locationsFullPaths[key] = location as any;
|
||||
}
|
||||
|
||||
@ -521,10 +520,8 @@ export interface StartOptions {
|
||||
|
||||
interface RCLocations extends ExtendedRCLocations {
|
||||
base: string;
|
||||
output: string;
|
||||
commands?: string;
|
||||
langs?: string;
|
||||
templates?: string;
|
||||
events?: string;
|
||||
components?: string;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user