zumito-framework 1.14.3 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ export type zumitoModulesDependency = {
2
+ type: 'zumitoModule';
3
+ packageName: string;
4
+ minVersion?: string;
5
+ };
6
+ export type npmDependency = {
7
+ type: 'npm';
8
+ packageName: string;
9
+ minVersion?: string;
10
+ };
11
+ export type dependency = zumitoModulesDependency | npmDependency;
12
+ export type ModuleConfig = {
13
+ environmentVariables?: {
14
+ key: string;
15
+ defaultValue?: string;
16
+ label?: string;
17
+ description?: string;
18
+ }[];
19
+ moduleConstructorConfig?: {
20
+ key: string;
21
+ defaultValue?: string;
22
+ label?: string;
23
+ description?: string;
24
+ }[];
25
+ dependencies?: dependency[];
26
+ install?: () => Promise<void> | void;
27
+ };
@@ -0,0 +1 @@
1
+ export {};
package/dist/launcher.js CHANGED
@@ -49,6 +49,7 @@ import(pathToFileURL(configFilePath).href)
49
49
  });
50
50
  })
51
51
  .catch((error) => {
52
- console.error(`Failed to load config file at ${configFilePath}:`, error.message || error);
52
+ console.error(`Failed to load config file at ${configFilePath}:`);
53
+ throw error;
53
54
  process.exit(1);
54
55
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zumito-framework",
3
- "version": "1.14.3",
3
+ "version": "1.15.0",
4
4
  "description": "Discord.js bot framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",