mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +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'] = {
|
const locationsFullPaths: RC['locations'] = {
|
||||||
base: locations.base,
|
base: locations.base,
|
||||||
output: locations.output,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const i in locations) {
|
for (const i in locations) {
|
||||||
const key = i as keyof typeof locations;
|
const key = i as keyof typeof locations;
|
||||||
const location = locations[key];
|
const location = locations[key];
|
||||||
if (key in locationsFullPaths) continue;
|
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;
|
else locationsFullPaths[key] = location as any;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -521,10 +520,8 @@ export interface StartOptions {
|
|||||||
|
|
||||||
interface RCLocations extends ExtendedRCLocations {
|
interface RCLocations extends ExtendedRCLocations {
|
||||||
base: string;
|
base: string;
|
||||||
output: string;
|
|
||||||
commands?: string;
|
commands?: string;
|
||||||
langs?: string;
|
langs?: string;
|
||||||
templates?: string;
|
|
||||||
events?: string;
|
events?: string;
|
||||||
components?: string;
|
components?: string;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user