reciple 9.9.0 → 10.0.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.
- package/assets/config/reciple.config.js +87 -0
- package/assets/config/reciple.config.ts +80 -0
- package/assets/global/README.md +1 -0
- package/assets/global/gitignore +121 -0
- package/assets/global/nodemon.json +13 -0
- package/assets/modules/javascript/Base.js +21 -0
- package/assets/modules/javascript/ClientEvent.js +14 -0
- package/assets/modules/javascript/ContextMenuCommand.js +17 -0
- package/assets/modules/javascript/Event.js +17 -0
- package/assets/modules/javascript/MessageCommand.js +16 -0
- package/assets/modules/javascript/RESTEvent.js +14 -0
- package/assets/modules/javascript/SlashCommand.js +16 -0
- package/assets/modules/typescript/Base.ts +17 -0
- package/assets/modules/typescript/ClientEvent.ts +15 -0
- package/assets/modules/typescript/ContextMenuCommand.ts +15 -0
- package/assets/modules/typescript/Event.ts +16 -0
- package/assets/modules/typescript/MessageCommand.ts +14 -0
- package/assets/modules/typescript/RESTEvent.ts +15 -0
- package/assets/modules/typescript/SlashCommand.ts +14 -0
- package/assets/templates/javascript/jsconfig.json +17 -0
- package/assets/templates/typescript/tsconfig.json +17 -0
- package/dist/_virtual/_@oxc-project_runtime@0.99.0/helpers/decorate.mjs +10 -0
- package/dist/bin/commands/build.d.mts +16 -0
- package/dist/bin/commands/build.mjs +24 -0
- package/dist/bin/commands/build.mjs.map +1 -0
- package/dist/bin/commands/create.d.mts +23 -0
- package/dist/bin/commands/create.mjs +48 -0
- package/dist/bin/commands/create.mjs.map +1 -0
- package/dist/bin/commands/createModule.d.mts +21 -0
- package/dist/bin/commands/createModule.mjs +40 -0
- package/dist/bin/commands/createModule.mjs.map +1 -0
- package/dist/bin/commands/start.d.mts +18 -0
- package/dist/bin/commands/start.mjs +104 -0
- package/dist/bin/commands/start.mjs.map +1 -0
- package/dist/bin/reciple.d.mts +1 -0
- package/dist/bin/reciple.mjs +9 -0
- package/dist/bin/reciple.mjs.map +1 -0
- package/dist/classes/NotAnError.d.mts +7 -0
- package/dist/classes/NotAnError.mjs +11 -0
- package/dist/classes/NotAnError.mjs.map +1 -0
- package/dist/classes/cli/CLI.d.mts +54 -0
- package/dist/classes/cli/CLI.mjs +156 -0
- package/dist/classes/cli/CLI.mjs.map +1 -0
- package/dist/classes/cli/CLISubcommand.d.mts +27 -0
- package/dist/classes/cli/CLISubcommand.mjs +23 -0
- package/dist/classes/cli/CLISubcommand.mjs.map +1 -0
- package/dist/classes/cli/ConfigReader.d.mts +81 -0
- package/dist/classes/cli/ConfigReader.mjs +141 -0
- package/dist/classes/cli/ConfigReader.mjs.map +1 -0
- package/dist/classes/cli/RuntimeEnvironment.d.mts +14 -0
- package/dist/classes/cli/RuntimeEnvironment.mjs +36 -0
- package/dist/classes/cli/RuntimeEnvironment.mjs.map +1 -0
- package/dist/classes/client/EventListeners.d.mts +26 -0
- package/dist/classes/client/EventListeners.mjs +103 -0
- package/dist/classes/client/EventListeners.mjs.map +1 -0
- package/dist/classes/client/ModuleLoader.d.mts +55 -0
- package/dist/classes/client/ModuleLoader.mjs +152 -0
- package/dist/classes/client/ModuleLoader.mjs.map +1 -0
- package/dist/classes/managers/ModuleManager.d.mts +55 -0
- package/dist/classes/managers/ModuleManager.mjs +107 -0
- package/dist/classes/managers/ModuleManager.mjs.map +1 -0
- package/dist/classes/modules/BaseModule.d.mts +34 -0
- package/dist/classes/modules/BaseModule.mjs +33 -0
- package/dist/classes/modules/BaseModule.mjs.map +1 -0
- package/dist/classes/modules/PostconditionModule.d.mts +20 -0
- package/dist/classes/modules/PostconditionModule.mjs +24 -0
- package/dist/classes/modules/PostconditionModule.mjs.map +1 -0
- package/dist/classes/modules/PreconditionModule.d.mts +20 -0
- package/dist/classes/modules/PreconditionModule.mjs +24 -0
- package/dist/classes/modules/PreconditionModule.mjs.map +1 -0
- package/dist/classes/modules/commands/ContextMenuCommandModule.d.mts +24 -0
- package/dist/classes/modules/commands/ContextMenuCommandModule.mjs +27 -0
- package/dist/classes/modules/commands/ContextMenuCommandModule.mjs.map +1 -0
- package/dist/classes/modules/commands/MessageCommandModule.d.mts +24 -0
- package/dist/classes/modules/commands/MessageCommandModule.mjs +27 -0
- package/dist/classes/modules/commands/MessageCommandModule.mjs.map +1 -0
- package/dist/classes/modules/commands/SlashCommandModule.d.mts +24 -0
- package/dist/classes/modules/commands/SlashCommandModule.mjs +27 -0
- package/dist/classes/modules/commands/SlashCommandModule.mjs.map +1 -0
- package/dist/classes/modules/events/ClientEventModule.d.mts +11 -0
- package/dist/classes/modules/events/ClientEventModule.mjs +10 -0
- package/dist/classes/modules/events/ClientEventModule.mjs.map +1 -0
- package/dist/classes/modules/events/EventModule.d.mts +29 -0
- package/dist/classes/modules/events/EventModule.mjs +26 -0
- package/dist/classes/modules/events/EventModule.mjs.map +1 -0
- package/dist/classes/modules/events/RESTEventModule.d.mts +11 -0
- package/dist/classes/modules/events/RESTEventModule.mjs +10 -0
- package/dist/classes/modules/events/RESTEventModule.mjs.map +1 -0
- package/dist/classes/templates/ModuleTemplateBuilder.d.mts +84 -0
- package/dist/classes/templates/ModuleTemplateBuilder.mjs +288 -0
- package/dist/classes/templates/ModuleTemplateBuilder.mjs.map +1 -0
- package/dist/classes/templates/TemplateBuilder.d.mts +78 -0
- package/dist/classes/templates/TemplateBuilder.mjs +351 -0
- package/dist/classes/templates/TemplateBuilder.mjs.map +1 -0
- package/dist/classes/validation/BaseModuleValidator.d.mts +23 -0
- package/dist/classes/validation/BaseModuleValidator.mjs +46 -0
- package/dist/classes/validation/BaseModuleValidator.mjs.map +1 -0
- package/dist/classes/validation/CommandModuleValidator.d.mts +12 -0
- package/dist/classes/validation/CommandModuleValidator.mjs +16 -0
- package/dist/classes/validation/CommandModuleValidator.mjs.map +1 -0
- package/dist/classes/validation/EventModuleValidator.d.mts +21 -0
- package/dist/classes/validation/EventModuleValidator.mjs +42 -0
- package/dist/classes/validation/EventModuleValidator.mjs.map +1 -0
- package/dist/classes/validation/PostconditionModule.d.mts +18 -0
- package/dist/classes/validation/PostconditionModule.mjs +34 -0
- package/dist/classes/validation/PostconditionModule.mjs.map +1 -0
- package/dist/classes/validation/PreconditionModule.d.mts +16 -0
- package/dist/classes/validation/PreconditionModule.mjs +29 -0
- package/dist/classes/validation/PreconditionModule.mjs.map +1 -0
- package/dist/helpers/constants.d.mts +19 -0
- package/dist/helpers/constants.mjs +28 -0
- package/dist/helpers/constants.mjs.map +1 -0
- package/dist/helpers/types.d.mts +20 -0
- package/dist/helpers/types.mjs +1 -0
- package/dist/index.d.mts +39 -0
- package/dist/index.mjs +39 -0
- package/dist/index.mjs.map +1 -0
- package/dist/package.mjs +79 -0
- package/dist/package.mjs.map +1 -0
- package/package.json +80 -66
- package/LICENSE +0 -674
- package/README.md +0 -206
- package/dist/bin.d.ts +0 -2
- package/dist/bin.js +0 -4
- package/dist/bin.js.map +0 -1
- package/dist/classes/CLI.d.ts +0 -55
- package/dist/classes/CLI.js +0 -191
- package/dist/classes/CLI.js.map +0 -1
- package/dist/classes/Config.d.ts +0 -26
- package/dist/classes/Config.js +0 -73
- package/dist/classes/Config.js.map +0 -1
- package/dist/classes/EventHandlers.d.ts +0 -9
- package/dist/classes/EventHandlers.js +0 -71
- package/dist/classes/EventHandlers.js.map +0 -1
- package/dist/classes/ModuleLoader.d.ts +0 -25
- package/dist/classes/ModuleLoader.js +0 -91
- package/dist/classes/ModuleLoader.js.map +0 -1
- package/dist/commands/init.d.ts +0 -7
- package/dist/commands/init.js +0 -10
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/modules.d.ts +0 -9
- package/dist/commands/modules.js +0 -33
- package/dist/commands/modules.js.map +0 -1
- package/dist/commands/shard.d.ts +0 -9
- package/dist/commands/shard.js +0 -102
- package/dist/commands/shard.js.map +0 -1
- package/dist/commands/start.d.ts +0 -9
- package/dist/commands/start.js +0 -95
- package/dist/commands/start.js.map +0 -1
- package/dist/exports.d.ts +0 -6
- package/dist/exports.js +0 -7
- package/dist/exports.js.map +0 -1
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -8
- package/dist/index.js.map +0 -1
- package/dist/types/constants.d.ts +0 -6
- package/dist/types/constants.js +0 -29
- package/dist/types/constants.js.map +0 -1
- package/dist/types/structures.d.ts +0 -36
- package/dist/types/structures.js +0 -2
- package/dist/types/structures.js.map +0 -1
- package/static/config.d.mts +0 -5
- package/static/config.mjs +0 -105
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseModuleValidator } from "./BaseModuleValidator.mjs";
|
|
2
|
+
import { CommandPostconditionReason, CommandType, Validator } from "@reciple/core";
|
|
3
|
+
|
|
4
|
+
//#region src/classes/validation/PostconditionModule.ts
|
|
5
|
+
var PostconditionModuleValidator = class PostconditionModuleValidator extends Validator {
|
|
6
|
+
static scope = Validator.s.nativeEnum(CommandType).array().optional();
|
|
7
|
+
static accepts = Validator.s.nativeEnum(CommandPostconditionReason).array().optional();
|
|
8
|
+
static execute = Validator.s.instance(Function);
|
|
9
|
+
static object = Validator.s.object({
|
|
10
|
+
scope: PostconditionModuleValidator.scope,
|
|
11
|
+
execute: PostconditionModuleValidator.execute
|
|
12
|
+
});
|
|
13
|
+
static resolvable = Validator.s.union([PostconditionModuleValidator.object, PostconditionModuleValidator.jsonEncodable]);
|
|
14
|
+
static isValidScope(scope) {
|
|
15
|
+
PostconditionModuleValidator.scope.setValidationEnabled(PostconditionModuleValidator.isValidationEnabled).parse(scope);
|
|
16
|
+
}
|
|
17
|
+
static isValidAccepts(accepts) {
|
|
18
|
+
PostconditionModuleValidator.accepts.setValidationEnabled(PostconditionModuleValidator.isValidationEnabled).parse(accepts);
|
|
19
|
+
}
|
|
20
|
+
static isValidExecute(execute) {
|
|
21
|
+
PostconditionModuleValidator.execute.setValidationEnabled(PostconditionModuleValidator.isValidationEnabled).parse(execute);
|
|
22
|
+
}
|
|
23
|
+
static isValid(value) {
|
|
24
|
+
const data = value;
|
|
25
|
+
BaseModuleValidator.isValid(data);
|
|
26
|
+
PostconditionModuleValidator.isValidScope(data.scope);
|
|
27
|
+
PostconditionModuleValidator.isValidAccepts(data.accepts);
|
|
28
|
+
PostconditionModuleValidator.isValidExecute(data.execute);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { PostconditionModuleValidator };
|
|
34
|
+
//# sourceMappingURL=PostconditionModule.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostconditionModule.mjs","names":[],"sources":["../../../src/classes/validation/PostconditionModule.ts"],"sourcesContent":["import { CommandPostconditionReason, CommandType, Validator } from '@reciple/core';\nimport { BaseModuleValidator } from './BaseModuleValidator.js';\nimport type { PostconditionModule } from '../modules/PostconditionModule.js';\n\nexport class PostconditionModuleValidator extends Validator {\n public static scope = Validator.s.nativeEnum(CommandType).array().optional();\n public static accepts = Validator.s.nativeEnum(CommandPostconditionReason).array().optional();\n public static execute = Validator.s.instance(Function);\n\n public static object = Validator.s.object({\n scope: PostconditionModuleValidator.scope,\n execute: PostconditionModuleValidator.execute\n });\n\n public static resolvable = Validator.s.union([PostconditionModuleValidator.object, PostconditionModuleValidator.jsonEncodable]);\n\n public static isValidScope(scope: unknown): asserts scope is CommandType[] {\n PostconditionModuleValidator.scope.setValidationEnabled(PostconditionModuleValidator.isValidationEnabled).parse(scope);\n }\n\n public static isValidAccepts(accepts: unknown): asserts accepts is CommandPostconditionReason[] {\n PostconditionModuleValidator.accepts.setValidationEnabled(PostconditionModuleValidator.isValidationEnabled).parse(accepts);\n }\n\n public static isValidExecute(execute: unknown): asserts execute is (...args: unknown[]) => Promise<void> {\n PostconditionModuleValidator.execute.setValidationEnabled(PostconditionModuleValidator.isValidationEnabled).parse(execute);\n }\n\n public static isValid(value: unknown): asserts value is PostconditionModule.Data {\n const data = value as PostconditionModule.Data;\n\n BaseModuleValidator.isValid(data);\n PostconditionModuleValidator.isValidScope(data.scope);\n PostconditionModuleValidator.isValidAccepts(data.accepts);\n PostconditionModuleValidator.isValidExecute(data.execute);\n }\n}\n"],"mappings":";;;;AAIA,IAAa,+BAAb,MAAa,qCAAqC,UAAU;CACxD,OAAc,QAAQ,UAAU,EAAE,WAAW,YAAY,CAAC,OAAO,CAAC,UAAU;CAC5E,OAAc,UAAU,UAAU,EAAE,WAAW,2BAA2B,CAAC,OAAO,CAAC,UAAU;CAC7F,OAAc,UAAU,UAAU,EAAE,SAAS,SAAS;CAEtD,OAAc,SAAS,UAAU,EAAE,OAAO;EACtC,OAAO,6BAA6B;EACpC,SAAS,6BAA6B;EACzC,CAAC;CAEF,OAAc,aAAa,UAAU,EAAE,MAAM,CAAC,6BAA6B,QAAQ,6BAA6B,cAAc,CAAC;CAE/H,OAAc,aAAa,OAAgD;AACvE,+BAA6B,MAAM,qBAAqB,6BAA6B,oBAAoB,CAAC,MAAM,MAAM;;CAG1H,OAAc,eAAe,SAAmE;AAC5F,+BAA6B,QAAQ,qBAAqB,6BAA6B,oBAAoB,CAAC,MAAM,QAAQ;;CAG9H,OAAc,eAAe,SAA4E;AACrG,+BAA6B,QAAQ,qBAAqB,6BAA6B,oBAAoB,CAAC,MAAM,QAAQ;;CAG9H,OAAc,QAAQ,OAA2D;EAC7E,MAAM,OAAO;AAEb,sBAAoB,QAAQ,KAAK;AACjC,+BAA6B,aAAa,KAAK,MAAM;AACrD,+BAA6B,eAAe,KAAK,QAAQ;AACzD,+BAA6B,eAAe,KAAK,QAAQ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PreconditionModule } from "../modules/PreconditionModule.mjs";
|
|
2
|
+
import { CommandType, Validator } from "@reciple/core";
|
|
3
|
+
|
|
4
|
+
//#region src/classes/validation/PreconditionModule.d.ts
|
|
5
|
+
declare class PreconditionModuleValidator extends Validator {
|
|
6
|
+
static scope: any;
|
|
7
|
+
static execute: any;
|
|
8
|
+
static object: any;
|
|
9
|
+
static resolvable: any;
|
|
10
|
+
static isValidScope(scope: unknown): asserts scope is CommandType[];
|
|
11
|
+
static isValidExecute(execute: unknown): asserts execute is (...args: unknown[]) => Promise<void>;
|
|
12
|
+
static isValid(value: unknown): asserts value is PreconditionModule.Data;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { PreconditionModuleValidator };
|
|
16
|
+
//# sourceMappingURL=PreconditionModule.d.mts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseModuleValidator } from "./BaseModuleValidator.mjs";
|
|
2
|
+
import { CommandType, Validator } from "@reciple/core";
|
|
3
|
+
|
|
4
|
+
//#region src/classes/validation/PreconditionModule.ts
|
|
5
|
+
var PreconditionModuleValidator = class PreconditionModuleValidator extends Validator {
|
|
6
|
+
static scope = Validator.s.nativeEnum(CommandType).array().optional();
|
|
7
|
+
static execute = Validator.s.instance(Function);
|
|
8
|
+
static object = Validator.s.object({
|
|
9
|
+
scope: PreconditionModuleValidator.scope,
|
|
10
|
+
execute: PreconditionModuleValidator.execute
|
|
11
|
+
});
|
|
12
|
+
static resolvable = Validator.s.union([PreconditionModuleValidator.object, PreconditionModuleValidator.jsonEncodable]);
|
|
13
|
+
static isValidScope(scope) {
|
|
14
|
+
PreconditionModuleValidator.scope.setValidationEnabled(PreconditionModuleValidator.isValidationEnabled).parse(scope);
|
|
15
|
+
}
|
|
16
|
+
static isValidExecute(execute) {
|
|
17
|
+
PreconditionModuleValidator.execute.setValidationEnabled(PreconditionModuleValidator.isValidationEnabled).parse(execute);
|
|
18
|
+
}
|
|
19
|
+
static isValid(value) {
|
|
20
|
+
const data = value;
|
|
21
|
+
BaseModuleValidator.isValid(data);
|
|
22
|
+
PreconditionModuleValidator.isValidScope(data.scope);
|
|
23
|
+
PreconditionModuleValidator.isValidExecute(data.execute);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { PreconditionModuleValidator };
|
|
29
|
+
//# sourceMappingURL=PreconditionModule.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreconditionModule.mjs","names":[],"sources":["../../../src/classes/validation/PreconditionModule.ts"],"sourcesContent":["import { CommandType, Validator } from '@reciple/core';\nimport type { PreconditionModule } from '../modules/PreconditionModule.js';\nimport { BaseModuleValidator } from './BaseModuleValidator.js';\n\nexport class PreconditionModuleValidator extends Validator {\n public static scope = Validator.s.nativeEnum(CommandType).array().optional();\n public static execute = Validator.s.instance(Function);\n\n public static object = Validator.s.object({\n scope: PreconditionModuleValidator.scope,\n execute: PreconditionModuleValidator.execute\n });\n\n public static resolvable = Validator.s.union([PreconditionModuleValidator.object, PreconditionModuleValidator.jsonEncodable]);\n\n public static isValidScope(scope: unknown): asserts scope is CommandType[] {\n PreconditionModuleValidator.scope.setValidationEnabled(PreconditionModuleValidator.isValidationEnabled).parse(scope);\n }\n\n public static isValidExecute(execute: unknown): asserts execute is (...args: unknown[]) => Promise<void> {\n PreconditionModuleValidator.execute.setValidationEnabled(PreconditionModuleValidator.isValidationEnabled).parse(execute);\n }\n\n public static isValid(value: unknown): asserts value is PreconditionModule.Data {\n const data = value as PreconditionModule.Data;\n\n BaseModuleValidator.isValid(data);\n PreconditionModuleValidator.isValidScope(data.scope);\n PreconditionModuleValidator.isValidExecute(data.execute);\n }\n}\n"],"mappings":";;;;AAIA,IAAa,8BAAb,MAAa,oCAAoC,UAAU;CACvD,OAAc,QAAQ,UAAU,EAAE,WAAW,YAAY,CAAC,OAAO,CAAC,UAAU;CAC5E,OAAc,UAAU,UAAU,EAAE,SAAS,SAAS;CAEtD,OAAc,SAAS,UAAU,EAAE,OAAO;EACtC,OAAO,4BAA4B;EACnC,SAAS,4BAA4B;EACxC,CAAC;CAEF,OAAc,aAAa,UAAU,EAAE,MAAM,CAAC,4BAA4B,QAAQ,4BAA4B,cAAc,CAAC;CAE7H,OAAc,aAAa,OAAgD;AACvE,8BAA4B,MAAM,qBAAqB,4BAA4B,oBAAoB,CAAC,MAAM,MAAM;;CAGxH,OAAc,eAAe,SAA4E;AACrG,8BAA4B,QAAQ,qBAAqB,4BAA4B,oBAAoB,CAAC,MAAM,QAAQ;;CAG5H,OAAc,QAAQ,OAA0D;EAC5E,MAAM,OAAO;AAEb,sBAAoB,QAAQ,KAAK;AACjC,8BAA4B,aAAa,KAAK,MAAM;AACpD,8BAA4B,eAAe,KAAK,QAAQ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CLI } from "../classes/cli/CLI.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/constants.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
declare const packageJSON: any;
|
|
9
|
+
declare const cli: CLI;
|
|
10
|
+
declare enum ModuleType {
|
|
11
|
+
Base = 1,
|
|
12
|
+
Command = 2,
|
|
13
|
+
Event = 3,
|
|
14
|
+
Precondition = 4,
|
|
15
|
+
Postcondition = 5,
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ModuleType, cli, packageJSON };
|
|
19
|
+
//# sourceMappingURL=constants.d.mts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CLI } from "../classes/cli/CLI.mjs";
|
|
2
|
+
import { logger } from "prtyprnt";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
|
|
5
|
+
//#region src/helpers/constants.ts
|
|
6
|
+
/**
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
const packageJSON = await import("../../package.json", { with: { type: "json" } }).then((m) => m.default);
|
|
10
|
+
const cli = new CLI({
|
|
11
|
+
name: packageJSON.name ?? "reciple",
|
|
12
|
+
description: packageJSON.description ?? "",
|
|
13
|
+
build: packageJSON.version ?? "0.0.0",
|
|
14
|
+
subcommandsDir: path.join(path.dirname(CLI.bin), "./commands"),
|
|
15
|
+
logger
|
|
16
|
+
});
|
|
17
|
+
let ModuleType = /* @__PURE__ */ function(ModuleType$1) {
|
|
18
|
+
ModuleType$1[ModuleType$1["Base"] = 1] = "Base";
|
|
19
|
+
ModuleType$1[ModuleType$1["Command"] = 2] = "Command";
|
|
20
|
+
ModuleType$1[ModuleType$1["Event"] = 3] = "Event";
|
|
21
|
+
ModuleType$1[ModuleType$1["Precondition"] = 4] = "Precondition";
|
|
22
|
+
ModuleType$1[ModuleType$1["Postcondition"] = 5] = "Postcondition";
|
|
23
|
+
return ModuleType$1;
|
|
24
|
+
}({});
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ModuleType, cli, packageJSON };
|
|
28
|
+
//# sourceMappingURL=constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.mjs","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":["import { CLI } from '../classes/cli/CLI.js';\nimport path from 'node:path';\nimport { logger } from 'prtyprnt';\nimport type { PackageJson } from '@reciple/utils';\n\n/**\n * @private\n */\nexport const packageJSON = await import('../../package.json', { with: { type: 'json' } }).then(m => m.default as PackageJson);\n\nexport const cli = new CLI({\n name: packageJSON.name ?? 'reciple',\n description: packageJSON.description ?? '',\n build: packageJSON.version ?? '0.0.0',\n subcommandsDir: path.join(path.dirname(CLI.bin), './commands'),\n logger\n});\n\nexport enum ModuleType {\n Base = 1,\n Command,\n Event,\n Precondition,\n Postcondition\n}\n"],"mappings":";;;;;;;;AAQA,MAAa,cAAc,MAAM,OAAO,sBAAsB,EAAE,MAAM,EAAE,MAAM,QAAQ,EAAE,EAAE,MAAK,MAAK,EAAE,QAAuB;AAE7H,MAAa,MAAM,IAAI,IAAI;CACvB,MAAM,YAAY,QAAQ;CAC1B,aAAa,YAAY,eAAe;CACxC,OAAO,YAAY,WAAW;CAC9B,gBAAgB,KAAK,KAAK,KAAK,QAAQ,IAAI,IAAI,EAAE,aAAa;CAC9D;CACH,CAAC;AAEF,IAAY,oDAAL;AACH;AACA;AACA;AACA;AACA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModule } from "../classes/modules/BaseModule.mjs";
|
|
2
|
+
import { ContextMenuCommandModule } from "../classes/modules/commands/ContextMenuCommandModule.mjs";
|
|
3
|
+
import { EventModule } from "../classes/modules/events/EventModule.mjs";
|
|
4
|
+
import { MessageCommandModule } from "../classes/modules/commands/MessageCommandModule.mjs";
|
|
5
|
+
import { PostconditionModule } from "../classes/modules/PostconditionModule.mjs";
|
|
6
|
+
import { PreconditionModule } from "../classes/modules/PreconditionModule.mjs";
|
|
7
|
+
import { SlashCommandModule } from "../classes/modules/commands/SlashCommandModule.mjs";
|
|
8
|
+
import { CommandType } from "@reciple/core";
|
|
9
|
+
import { UserConfig } from "tsdown";
|
|
10
|
+
|
|
11
|
+
//#region src/helpers/types.d.ts
|
|
12
|
+
type AnyCommandBuilderMethods = 'setCommand' | 'setCommand' | 'setCooldown' | 'addPreconditions' | 'setPreconditions' | 'addPostconditions' | 'setPostconditions' | 'addDisabledPreconditions' | 'setDisabledPreconditions' | 'addDisabledPostconditions' | 'setDisabledPostconditions' | 'setExecute';
|
|
13
|
+
type AnyModule = BaseModule | AnyCommandModule | PreconditionModule | PostconditionModule | EventModule;
|
|
14
|
+
type AnyModuleData = BaseModule.Data | AnyCommandModuleData | PreconditionModule.Data | PostconditionModule.Data | EventModule.Data;
|
|
15
|
+
type AnyCommandModule<T extends CommandType = CommandType> = T extends CommandType.Message ? MessageCommandModule : T extends CommandType.Slash ? SlashCommandModule : T extends CommandType.ContextMenu ? ContextMenuCommandModule : MessageCommandModule | SlashCommandModule | ContextMenuCommandModule;
|
|
16
|
+
type AnyCommandModuleData<T extends CommandType = CommandType> = T extends CommandType.Message ? MessageCommandModule.Data : T extends CommandType.Slash ? SlashCommandModule.Data : T extends CommandType.ContextMenu ? ContextMenuCommandModule.Data : MessageCommandModule.Data | SlashCommandModule.Data | ContextMenuCommandModule.Data;
|
|
17
|
+
type BuildConfig = Omit<UserConfig, 'watch' | 'skipNodeModulesBundle' | 'platform' | 'format' | 'unbundle' | 'skipNodeModulesBundle' | 'cjsDefault' | 'workspace' | 'customLogger' | 'logLevel'>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { AnyCommandBuilderMethods, AnyCommandModule, AnyCommandModuleData, AnyModule, AnyModuleData, BuildConfig };
|
|
20
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CLI } from "./classes/cli/CLI.mjs";
|
|
2
|
+
import { CLISubcommand } from "./classes/cli/CLISubcommand.mjs";
|
|
3
|
+
import { NotAnError } from "./classes/NotAnError.mjs";
|
|
4
|
+
import { ModuleType, cli, packageJSON } from "./helpers/constants.mjs";
|
|
5
|
+
import { BaseModule } from "./classes/modules/BaseModule.mjs";
|
|
6
|
+
import { ContextMenuCommandModule } from "./classes/modules/commands/ContextMenuCommandModule.mjs";
|
|
7
|
+
import { EventModule } from "./classes/modules/events/EventModule.mjs";
|
|
8
|
+
import { MessageCommandModule } from "./classes/modules/commands/MessageCommandModule.mjs";
|
|
9
|
+
import { PostconditionModule } from "./classes/modules/PostconditionModule.mjs";
|
|
10
|
+
import { PreconditionModule } from "./classes/modules/PreconditionModule.mjs";
|
|
11
|
+
import { SlashCommandModule } from "./classes/modules/commands/SlashCommandModule.mjs";
|
|
12
|
+
import { AnyCommandBuilderMethods, AnyCommandModule, AnyCommandModuleData, AnyModule, AnyModuleData, BuildConfig } from "./helpers/types.mjs";
|
|
13
|
+
import { ModuleLoader } from "./classes/client/ModuleLoader.mjs";
|
|
14
|
+
import { ModuleManager } from "./classes/managers/ModuleManager.mjs";
|
|
15
|
+
import { EventListeners } from "./classes/client/EventListeners.mjs";
|
|
16
|
+
import { ConfigReader } from "./classes/cli/ConfigReader.mjs";
|
|
17
|
+
import { RuntimeEnvironment } from "./classes/cli/RuntimeEnvironment.mjs";
|
|
18
|
+
import { ClientEventModule } from "./classes/modules/events/ClientEventModule.mjs";
|
|
19
|
+
import { RESTEventModule } from "./classes/modules/events/RESTEventModule.mjs";
|
|
20
|
+
import { ModuleTemplateBuilder } from "./classes/templates/ModuleTemplateBuilder.mjs";
|
|
21
|
+
import { TemplateBuilder } from "./classes/templates/TemplateBuilder.mjs";
|
|
22
|
+
import { BaseModuleValidator } from "./classes/validation/BaseModuleValidator.mjs";
|
|
23
|
+
import { CommandModuleValidator } from "./classes/validation/CommandModuleValidator.mjs";
|
|
24
|
+
import { EventModuleValidator } from "./classes/validation/EventModuleValidator.mjs";
|
|
25
|
+
import { PostconditionModuleValidator } from "./classes/validation/PostconditionModule.mjs";
|
|
26
|
+
import { PreconditionModuleValidator } from "./classes/validation/PreconditionModule.mjs";
|
|
27
|
+
import * as Prtyprnt from "prtyprnt";
|
|
28
|
+
import { Logger } from "prtyprnt";
|
|
29
|
+
import { Client } from "@reciple/core";
|
|
30
|
+
export * from "@reciple/core";
|
|
31
|
+
|
|
32
|
+
//#region src/index.d.ts
|
|
33
|
+
declare global {
|
|
34
|
+
var useClient: () => Client;
|
|
35
|
+
var useLogger: () => Logger;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { AnyCommandBuilderMethods, AnyCommandModule, AnyCommandModuleData, AnyModule, AnyModuleData, BaseModule, BaseModuleValidator, BuildConfig, CLI, CLISubcommand, ClientEventModule, CommandModuleValidator, ConfigReader, ContextMenuCommandModule, EventListeners, EventModule, EventModuleValidator, MessageCommandModule, ModuleLoader, ModuleManager, ModuleTemplateBuilder, ModuleType, NotAnError, PostconditionModule, PostconditionModuleValidator, PreconditionModule, PreconditionModuleValidator, Prtyprnt, RESTEventModule, RuntimeEnvironment, SlashCommandModule, TemplateBuilder, cli, packageJSON };
|
|
39
|
+
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { NotAnError } from "./classes/NotAnError.mjs";
|
|
2
|
+
import { CLISubcommand } from "./classes/cli/CLISubcommand.mjs";
|
|
3
|
+
import { CLI } from "./classes/cli/CLI.mjs";
|
|
4
|
+
import { ConfigReader } from "./classes/cli/ConfigReader.mjs";
|
|
5
|
+
import { RuntimeEnvironment } from "./classes/cli/RuntimeEnvironment.mjs";
|
|
6
|
+
import { ModuleType, cli, packageJSON } from "./helpers/constants.mjs";
|
|
7
|
+
import { BaseModule } from "./classes/modules/BaseModule.mjs";
|
|
8
|
+
import { EventListeners } from "./classes/client/EventListeners.mjs";
|
|
9
|
+
import { BaseModuleValidator } from "./classes/validation/BaseModuleValidator.mjs";
|
|
10
|
+
import { PostconditionModule } from "./classes/modules/PostconditionModule.mjs";
|
|
11
|
+
import { PreconditionModule } from "./classes/modules/PreconditionModule.mjs";
|
|
12
|
+
import { EventModule } from "./classes/modules/events/EventModule.mjs";
|
|
13
|
+
import { MessageCommandModule } from "./classes/modules/commands/MessageCommandModule.mjs";
|
|
14
|
+
import { SlashCommandModule } from "./classes/modules/commands/SlashCommandModule.mjs";
|
|
15
|
+
import { ContextMenuCommandModule } from "./classes/modules/commands/ContextMenuCommandModule.mjs";
|
|
16
|
+
import { CommandModuleValidator } from "./classes/validation/CommandModuleValidator.mjs";
|
|
17
|
+
import { EventModuleValidator } from "./classes/validation/EventModuleValidator.mjs";
|
|
18
|
+
import { PreconditionModuleValidator } from "./classes/validation/PreconditionModule.mjs";
|
|
19
|
+
import { PostconditionModuleValidator } from "./classes/validation/PostconditionModule.mjs";
|
|
20
|
+
import { ModuleLoader } from "./classes/client/ModuleLoader.mjs";
|
|
21
|
+
import { ModuleManager } from "./classes/managers/ModuleManager.mjs";
|
|
22
|
+
import { ClientEventModule } from "./classes/modules/events/ClientEventModule.mjs";
|
|
23
|
+
import { RESTEventModule } from "./classes/modules/events/RESTEventModule.mjs";
|
|
24
|
+
import { ModuleTemplateBuilder } from "./classes/templates/ModuleTemplateBuilder.mjs";
|
|
25
|
+
import { TemplateBuilder } from "./classes/templates/TemplateBuilder.mjs";
|
|
26
|
+
import * as Prtyprnt from "prtyprnt";
|
|
27
|
+
import { logger } from "prtyprnt";
|
|
28
|
+
|
|
29
|
+
export * from "@reciple/core"
|
|
30
|
+
|
|
31
|
+
//#region src/index.ts
|
|
32
|
+
globalThis.useClient = () => {
|
|
33
|
+
throw new Error("Client is not yet loaded.");
|
|
34
|
+
};
|
|
35
|
+
globalThis.useLogger = () => logger;
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { BaseModule, BaseModuleValidator, CLI, CLISubcommand, ClientEventModule, CommandModuleValidator, ConfigReader, ContextMenuCommandModule, EventListeners, EventModule, EventModuleValidator, MessageCommandModule, ModuleLoader, ModuleManager, ModuleTemplateBuilder, ModuleType, NotAnError, PostconditionModule, PostconditionModuleValidator, PreconditionModule, PreconditionModuleValidator, Prtyprnt, RESTEventModule, RuntimeEnvironment, SlashCommandModule, TemplateBuilder, cli, packageJSON };
|
|
39
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { Client } from '@reciple/core';\nimport { logger, type Logger } from 'prtyprnt';\n\nexport * from './classes/NotAnError.js';\n\nexport * from './classes/cli/CLI.js';\nexport * from './classes/cli/CLISubcommand.js';\nexport * from './classes/cli/ConfigReader.js';\nexport * from './classes/cli/RuntimeEnvironment.js';\n\nexport * from './classes/client/EventListeners.js';\nexport * from './classes/client/ModuleLoader.js';\n\nexport * from './classes/managers/ModuleManager.js';\n\nexport * from './classes/modules/BaseModule.js';\nexport * from './classes/modules/commands/ContextMenuCommandModule.js';\nexport * from './classes/modules/commands/MessageCommandModule.js';\nexport * from './classes/modules/commands/SlashCommandModule.js';\nexport * from './classes/modules/events/ClientEventModule.js';\nexport * from './classes/modules/events/EventModule.js';\nexport * from './classes/modules/events/RESTEventModule.js';\nexport * from './classes/modules/PostconditionModule.js';\nexport * from './classes/modules/PreconditionModule.js';\n\nexport * from './classes/templates/ModuleTemplateBuilder.js';\nexport * from './classes/templates/TemplateBuilder.js';\n\nexport * from './classes/validation/BaseModuleValidator.js';\nexport * from './classes/validation/CommandModuleValidator.js';\nexport * from './classes/validation/EventModuleValidator.js';\nexport * from './classes/validation/PostconditionModule.js';\nexport * from './classes/validation/PreconditionModule.js';\n\nexport * from './helpers/constants.js';\nexport * from './helpers/types.js';\n\nexport * from '@reciple/core';\nexport * as Prtyprnt from 'prtyprnt';\n\nglobalThis.useClient = () => {\n throw new Error('Client is not yet loaded.');\n};\n\nglobalThis.useLogger = () => logger\n\ndeclare global {\n var useClient: () => Client;\n var useLogger: () => Logger;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,WAAW,kBAAkB;AACzB,OAAM,IAAI,MAAM,4BAA4B;;AAGhD,WAAW,kBAAkB"}
|
package/dist/package.mjs
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
//#region package.json
|
|
2
|
+
var package_default = {
|
|
3
|
+
name: "reciple",
|
|
4
|
+
version: "10.0.0",
|
|
5
|
+
license: "LGPL-3.0-only",
|
|
6
|
+
description: "The CLI for reciple",
|
|
7
|
+
module: "./dist/index.mjs",
|
|
8
|
+
types: "./dist/index.d.mts",
|
|
9
|
+
bin: "./dist/bin/reciple.mjs",
|
|
10
|
+
type: "module",
|
|
11
|
+
exports: {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"types": "./dist/index.d.mts"
|
|
15
|
+
},
|
|
16
|
+
"./jsx-runtime": {
|
|
17
|
+
"import": "./dist/helpers/jsx-runtime.mjs",
|
|
18
|
+
"types": "./dist/helpers/jsx-runtime.d.mts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
files: [
|
|
22
|
+
"dist",
|
|
23
|
+
"assets",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
scripts: {
|
|
27
|
+
"clean": "rimraf ./dist",
|
|
28
|
+
"build": "tsdown --config-loader unrun",
|
|
29
|
+
"check": "tsc --noEmit",
|
|
30
|
+
"prepack": "npm run build"
|
|
31
|
+
},
|
|
32
|
+
repository: {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/thenorthsolution/reciple",
|
|
35
|
+
"directory": "packages/reciple"
|
|
36
|
+
},
|
|
37
|
+
dependencies: {
|
|
38
|
+
"@clack/prompts": "^0.11.0",
|
|
39
|
+
"@dotenvx/dotenvx": "^1.51.1",
|
|
40
|
+
"@reciple/utils": "*",
|
|
41
|
+
"@sapphire/shapeshift": "^4.0.0",
|
|
42
|
+
"@sapphire/snowflake": "^3.5.5",
|
|
43
|
+
"commander": "^14.0.2",
|
|
44
|
+
"detect-indent": "^7.0.2",
|
|
45
|
+
"github-slugger": "^2.0.0",
|
|
46
|
+
"globby": "^16.0.0",
|
|
47
|
+
"load-tsconfig": "^0.2.5",
|
|
48
|
+
"micromatch": "^4.0.8",
|
|
49
|
+
"ora": "^9.0.0",
|
|
50
|
+
"pkg-types": "^2.3.0",
|
|
51
|
+
"semver": "^7.7.3",
|
|
52
|
+
"ts-mixer": "^6.0.4",
|
|
53
|
+
"tsdown": "^0.16.8",
|
|
54
|
+
"unconfig": "^7.4.1",
|
|
55
|
+
"unrun": "^0.2.14"
|
|
56
|
+
},
|
|
57
|
+
devDependencies: {
|
|
58
|
+
"@reciple/jsx": "*",
|
|
59
|
+
"@types/micromatch": "^4.0.10",
|
|
60
|
+
"@types/node": "^24.10.1",
|
|
61
|
+
"@types/semver": "^7.7.1",
|
|
62
|
+
"nodemon": "^3.1.11",
|
|
63
|
+
"prtyprnt": "^2.0.1",
|
|
64
|
+
"rolldown": "^1.0.0-beta.52"
|
|
65
|
+
},
|
|
66
|
+
peerDependencies: {
|
|
67
|
+
"@reciple/core": "*",
|
|
68
|
+
"discord.js": "^14.25.1"
|
|
69
|
+
},
|
|
70
|
+
peerDependenciesMeta: {
|
|
71
|
+
"@reciple/core": { "optional": false },
|
|
72
|
+
"discord.js": { "optional": false }
|
|
73
|
+
},
|
|
74
|
+
publishConfig: { "access": "public" }
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
export { package_default as default };
|
|
79
|
+
//# sourceMappingURL=package.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.mjs","names":[],"sources":["../package.json"],"sourcesContent":["{\r\n \"name\": \"reciple\",\r\n \"version\": \"10.0.0\",\r\n \"license\": \"LGPL-3.0-only\",\r\n \"description\": \"The CLI for reciple\",\r\n \"module\": \"./dist/index.mjs\",\r\n \"types\": \"./dist/index.d.mts\",\r\n \"bin\": \"./dist/bin/reciple.mjs\",\r\n \"type\": \"module\",\r\n \"exports\": {\r\n \".\": {\r\n \"import\": \"./dist/index.mjs\",\r\n \"types\": \"./dist/index.d.mts\"\r\n },\r\n \"./jsx-runtime\": {\r\n \"import\": \"./dist/helpers/jsx-runtime.mjs\",\r\n \"types\": \"./dist/helpers/jsx-runtime.d.mts\"\r\n }\r\n },\r\n \"files\": [\r\n \"dist\",\r\n \"assets\",\r\n \"README.md\"\r\n ],\r\n \"scripts\": {\r\n \"clean\": \"rimraf ./dist\",\r\n \"build\": \"tsdown --config-loader unrun\",\r\n \"check\": \"tsc --noEmit\",\r\n \"prepack\": \"npm run build\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/thenorthsolution/reciple\",\r\n \"directory\": \"packages/reciple\"\r\n },\r\n \"dependencies\": {\r\n \"@clack/prompts\": \"^0.11.0\",\r\n \"@dotenvx/dotenvx\": \"^1.51.1\",\r\n \"@reciple/utils\": \"*\",\r\n \"@sapphire/shapeshift\": \"^4.0.0\",\r\n \"@sapphire/snowflake\": \"^3.5.5\",\r\n \"commander\": \"^14.0.2\",\r\n \"detect-indent\": \"^7.0.2\",\r\n \"github-slugger\": \"^2.0.0\",\r\n \"globby\": \"^16.0.0\",\r\n \"load-tsconfig\": \"^0.2.5\",\r\n \"micromatch\": \"^4.0.8\",\r\n \"ora\": \"^9.0.0\",\r\n \"pkg-types\": \"^2.3.0\",\r\n \"semver\": \"^7.7.3\",\r\n \"ts-mixer\": \"^6.0.4\",\r\n \"tsdown\": \"^0.16.8\",\r\n \"unconfig\": \"^7.4.1\",\r\n \"unrun\": \"^0.2.14\"\r\n },\r\n \"devDependencies\": {\r\n \"@reciple/jsx\": \"*\",\r\n \"@types/micromatch\": \"^4.0.10\",\r\n \"@types/node\": \"^24.10.1\",\r\n \"@types/semver\": \"^7.7.1\",\r\n \"nodemon\": \"^3.1.11\",\r\n \"prtyprnt\": \"^2.0.1\",\r\n \"rolldown\": \"^1.0.0-beta.52\"\r\n },\r\n \"peerDependencies\": {\r\n \"@reciple/core\": \"*\",\r\n \"discord.js\": \"^14.25.1\"\r\n },\r\n \"peerDependenciesMeta\": {\r\n \"@reciple/core\": {\r\n \"optional\": false\r\n },\r\n \"discord.js\": {\r\n \"optional\": false\r\n }\r\n },\r\n \"publishConfig\": {\r\n \"access\": \"public\"\r\n }\r\n}\r\n"],"mappings":";sBAAA;OACU;UACG;UACA;cACI;SACL;QACD;MACF;OACC;UACG;EACT,KAAK;GACH,UAAU;GACV,SAAS;GACV;EACD,iBAAiB;GACf,UAAU;GACV,SAAS;GACV;EACF;QACQ;EACP;EACA;EACA;EACD;UACU;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,WAAW;EACZ;aACa;EACZ,QAAQ;EACR,OAAO;EACP,aAAa;EACd;eACe;EACd,kBAAkB;EAClB,oBAAoB;EACpB,kBAAkB;EAClB,wBAAwB;EACxB,uBAAuB;EACvB,aAAa;EACb,iBAAiB;EACjB,kBAAkB;EAClB,UAAU;EACV,iBAAiB;EACjB,cAAc;EACd,OAAO;EACP,aAAa;EACb,UAAU;EACV,YAAY;EACZ,UAAU;EACV,YAAY;EACZ,SAAS;EACV;kBACkB;EACjB,gBAAgB;EAChB,qBAAqB;EACrB,eAAe;EACf,iBAAiB;EACjB,WAAW;EACX,YAAY;EACZ,YAAY;EACb;mBACmB;EAClB,iBAAiB;EACjB,cAAc;EACf;uBACuB;EACtB,iBAAiB,EACf,YAAY,OACb;EACD,cAAc,EACZ,YAAY,OACb;EACF;gBACgB,EACf,UAAU,UACX;CACF"}
|
package/package.json
CHANGED
|
@@ -1,66 +1,80 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "reciple",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"."
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"@
|
|
58
|
-
"@types/
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
},
|
|
65
|
-
"
|
|
66
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "reciple",
|
|
3
|
+
"version": "10.0.0",
|
|
4
|
+
"license": "LGPL-3.0-only",
|
|
5
|
+
"description": "The CLI for reciple",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.mts",
|
|
8
|
+
"bin": "./dist/bin/reciple.mjs",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"types": "./dist/index.d.mts"
|
|
14
|
+
},
|
|
15
|
+
"./jsx-runtime": {
|
|
16
|
+
"import": "./dist/helpers/jsx-runtime.mjs",
|
|
17
|
+
"types": "./dist/helpers/jsx-runtime.d.mts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"assets",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"clean": "rimraf ./dist",
|
|
27
|
+
"build": "tsdown --config-loader unrun",
|
|
28
|
+
"check": "tsc --noEmit",
|
|
29
|
+
"prepack": "npm run build"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/thenorthsolution/reciple",
|
|
34
|
+
"directory": "packages/reciple"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@clack/prompts": "^0.11.0",
|
|
38
|
+
"@dotenvx/dotenvx": "^1.51.1",
|
|
39
|
+
"@reciple/utils": "*",
|
|
40
|
+
"@sapphire/shapeshift": "^4.0.0",
|
|
41
|
+
"@sapphire/snowflake": "^3.5.5",
|
|
42
|
+
"commander": "^14.0.2",
|
|
43
|
+
"detect-indent": "^7.0.2",
|
|
44
|
+
"github-slugger": "^2.0.0",
|
|
45
|
+
"globby": "^16.0.0",
|
|
46
|
+
"load-tsconfig": "^0.2.5",
|
|
47
|
+
"micromatch": "^4.0.8",
|
|
48
|
+
"ora": "^9.0.0",
|
|
49
|
+
"pkg-types": "^2.3.0",
|
|
50
|
+
"semver": "^7.7.3",
|
|
51
|
+
"ts-mixer": "^6.0.4",
|
|
52
|
+
"tsdown": "^0.16.8",
|
|
53
|
+
"unconfig": "^7.4.1",
|
|
54
|
+
"unrun": "^0.2.14"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@reciple/jsx": "*",
|
|
58
|
+
"@types/micromatch": "^4.0.10",
|
|
59
|
+
"@types/node": "^24.10.1",
|
|
60
|
+
"@types/semver": "^7.7.1",
|
|
61
|
+
"nodemon": "^3.1.11",
|
|
62
|
+
"prtyprnt": "^2.0.1",
|
|
63
|
+
"rolldown": "^1.0.0-beta.52"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"@reciple/core": "*",
|
|
67
|
+
"discord.js": "^14.25.1"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"@reciple/core": {
|
|
71
|
+
"optional": false
|
|
72
|
+
},
|
|
73
|
+
"discord.js": {
|
|
74
|
+
"optional": false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"publishConfig": {
|
|
78
|
+
"access": "public"
|
|
79
|
+
}
|
|
80
|
+
}
|