mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: use pnpm as pm
This commit is contained in:
parent
9330e203c7
commit
0392de7964
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
||||
pnpm-lock.yaml
|
||||
node_modules
|
||||
lib/
|
||||
dist/
|
||||
|
1429
pnpm-lock.yaml
generated
Normal file
1429
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -265,15 +265,16 @@ class BaseCommand {
|
||||
|
||||
async reload() {
|
||||
delete require.cache[this.__filePath!];
|
||||
const __tempCommand = await magicImport(this.__filePath!).then(x => x.default ?? x);
|
||||
|
||||
Object.setPrototypeOf(this, __tempCommand.prototype);
|
||||
|
||||
for (const i of this.options ?? []) {
|
||||
if (i instanceof SubCommand && i.__filePath) {
|
||||
await i.reload();
|
||||
}
|
||||
}
|
||||
|
||||
const __tempCommand = await magicImport(this.__filePath!).then(x => x.default ?? x);
|
||||
|
||||
Object.setPrototypeOf(this, __tempCommand.prototype);
|
||||
}
|
||||
|
||||
run?(context: CommandContext<any>): any;
|
||||
|
Loading…
x
Reference in New Issue
Block a user