@powerlines/plugin-rspack 0.5.303 → 0.5.305

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.
Files changed (48) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  2. package/dist/core/src/lib/logger.cjs +41 -0
  3. package/dist/core/src/lib/unplugin/helpers.cjs +19 -0
  4. package/dist/core/src/lib/unplugin/index.cjs +3 -0
  5. package/dist/core/src/lib/unplugin/module-resolution.cjs +66 -0
  6. package/dist/core/src/lib/unplugin/plugin.cjs +71 -0
  7. package/dist/core/src/lib/utilities/source-file.cjs +22 -0
  8. package/dist/core/src/lib/utilities/source-file.mjs +1 -0
  9. package/dist/core/src/lib/utilities/source-file.mjs.map +1 -1
  10. package/dist/core/src/types/api.d.cts +103 -0
  11. package/dist/core/src/types/api.d.cts.map +1 -0
  12. package/dist/core/src/types/commands.d.cts +9 -0
  13. package/dist/core/src/types/commands.d.cts.map +1 -0
  14. package/dist/core/src/types/config.d.cts +551 -0
  15. package/dist/core/src/types/config.d.cts.map +1 -0
  16. package/dist/core/src/types/context.d.cts +511 -0
  17. package/dist/core/src/types/context.d.cts.map +1 -0
  18. package/dist/core/src/types/fs.d.cts +487 -0
  19. package/dist/core/src/types/fs.d.cts.map +1 -0
  20. package/dist/core/src/types/hooks.d.cts +99 -0
  21. package/dist/core/src/types/hooks.d.cts.map +1 -0
  22. package/dist/core/src/types/plugin.d.cts +204 -0
  23. package/dist/core/src/types/plugin.d.cts.map +1 -0
  24. package/dist/core/src/types/tsconfig.d.cts +70 -0
  25. package/dist/core/src/types/tsconfig.d.cts.map +1 -0
  26. package/dist/core/src/types/unplugin.cjs +21 -0
  27. package/dist/core/src/types/unplugin.d.cts +24 -0
  28. package/dist/core/src/types/unplugin.d.cts.map +1 -0
  29. package/dist/helpers/index.cjs +5 -0
  30. package/dist/helpers/index.d.cts +3 -0
  31. package/dist/helpers/resolve-options.cjs +38 -0
  32. package/dist/helpers/resolve-options.d.cts +15 -0
  33. package/dist/helpers/resolve-options.d.cts.map +1 -0
  34. package/dist/helpers/unplugin.cjs +12 -0
  35. package/dist/helpers/unplugin.d.cts +8 -0
  36. package/dist/helpers/unplugin.d.cts.map +1 -0
  37. package/dist/index.cjs +38 -0
  38. package/dist/index.d.cts +14 -0
  39. package/dist/index.d.cts.map +1 -0
  40. package/dist/types/build.cjs +0 -0
  41. package/dist/types/build.d.cts +8 -0
  42. package/dist/types/build.d.cts.map +1 -0
  43. package/dist/types/index.cjs +0 -0
  44. package/dist/types/index.d.cts +3 -0
  45. package/dist/types/plugin.cjs +0 -0
  46. package/dist/types/plugin.d.cts +20 -0
  47. package/dist/types/plugin.d.cts.map +1 -0
  48. package/package.json +29 -11
@@ -0,0 +1,29 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+
27
+ //#endregion
28
+
29
+ exports.__toESM = __toESM;
@@ -0,0 +1,41 @@
1
+ const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
+ let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
3
+ let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
4
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
5
+ require("@storm-software/config-tools/logger");
6
+ require("@storm-software/config-tools/utilities/colors");
7
+ require("@stryke/helpers/noop");
8
+ let chalk = require("chalk");
9
+ chalk = require_rolldown_runtime.__toESM(chalk);
10
+
11
+ //#region ../core/src/lib/logger.ts
12
+ const BADGE_COLORS = [
13
+ "#00A0DD",
14
+ "#6FCE4E",
15
+ "#FBBF24",
16
+ "#F43F5E",
17
+ "#3B82F6",
18
+ "#A855F7",
19
+ "#469592",
20
+ "#288EDF",
21
+ "#D8B4FE",
22
+ "#10B981",
23
+ "#EF4444",
24
+ "#F0EC56",
25
+ "#F472B6",
26
+ "#22D3EE",
27
+ "#EAB308",
28
+ "#84CC16",
29
+ "#F87171",
30
+ "#0EA5E9",
31
+ "#D946EF",
32
+ "#FACC15",
33
+ "#34D399",
34
+ "#8B5CF6"
35
+ ];
36
+ const extendLog = (logFn, name) => {
37
+ return (type, ...args) => logFn(type, ` ${chalk.default.inverse.hex(BADGE_COLORS[name.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0])(` ${(0, __stryke_string_format_title_case.titleCase)(name)} `)} ${args.join(" ")} `);
38
+ };
39
+
40
+ //#endregion
41
+ exports.extendLog = extendLog;
@@ -0,0 +1,19 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ require('../../types/unplugin.cjs');
3
+ let defu = require("defu");
4
+ require("@stryke/type-checks/is-set-string");
5
+
6
+ //#region ../core/src/lib/unplugin/helpers.ts
7
+ /**
8
+ * Merges a base plugin context with an unplugin context, combining their properties.
9
+ *
10
+ * @param contextA - The base plugin context to merge into.
11
+ * @param contextB - The unplugin context to merge from.
12
+ * @returns The merged context.
13
+ */
14
+ function combineContexts(contextA, contextB) {
15
+ return (0, defu.defu)(contextA, contextB);
16
+ }
17
+
18
+ //#endregion
19
+ exports.combineContexts = combineContexts;
@@ -0,0 +1,3 @@
1
+ const require_helpers = require('./helpers.cjs');
2
+ const require_module_resolution = require('./module-resolution.cjs');
3
+ const require_plugin = require('./plugin.cjs');
@@ -0,0 +1,66 @@
1
+
2
+ //#region ../core/src/lib/unplugin/module-resolution.ts
3
+ /**
4
+ * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
5
+ *
6
+ * @remarks
7
+ * This includes the `resolveId` and `load` hooks.
8
+ *
9
+ * @see https://rollupjs.org/plugin-development/#resolveid
10
+ * @see https://rollupjs.org/plugin-development/#load
11
+ *
12
+ * @param context - The plugin context.
13
+ * @returns The module resolution hooks (`resolveId` and `load`).
14
+ */
15
+ function createUnpluginModuleResolutionFunctions(context) {
16
+ const ctx = context;
17
+ async function resolveId(id, importer, opts = { isEntry: false }) {
18
+ let result = await ctx.$$internal.callHook("resolveId", {
19
+ sequential: true,
20
+ result: "first",
21
+ order: "pre"
22
+ }, id, importer, opts);
23
+ if (result) return result;
24
+ result = await ctx.$$internal.callHook("resolveId", {
25
+ sequential: true,
26
+ result: "first",
27
+ order: "normal"
28
+ }, id, importer, opts);
29
+ if (result) return result;
30
+ result = await ctx.resolve(id, importer, opts);
31
+ if (result) return result;
32
+ return ctx.$$internal.callHook("resolveId", {
33
+ sequential: true,
34
+ result: "first",
35
+ order: "post"
36
+ }, id, importer, opts);
37
+ }
38
+ async function load(id) {
39
+ let result = await ctx.$$internal.callHook("load", {
40
+ sequential: true,
41
+ result: "first",
42
+ order: "pre"
43
+ }, id);
44
+ if (result) return result;
45
+ result = await ctx.$$internal.callHook("load", {
46
+ sequential: true,
47
+ result: "first",
48
+ order: "normal"
49
+ }, id);
50
+ if (result) return result;
51
+ result = await ctx.load(id);
52
+ if (result) return result;
53
+ return ctx.$$internal.callHook("load", {
54
+ sequential: true,
55
+ result: "first",
56
+ order: "post"
57
+ }, id);
58
+ }
59
+ return {
60
+ resolveId,
61
+ load
62
+ };
63
+ }
64
+
65
+ //#endregion
66
+ exports.createUnpluginModuleResolutionFunctions = createUnpluginModuleResolutionFunctions;
@@ -0,0 +1,71 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_helpers = require('./helpers.cjs');
3
+ const require_module_resolution = require('./module-resolution.cjs');
4
+ const require_logger = require('../logger.cjs');
5
+ const require_source_file = require('../utilities/source-file.cjs');
6
+ let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
7
+ let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
8
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
9
+ let unplugin = require("unplugin");
10
+
11
+ //#region ../core/src/lib/unplugin/plugin.ts
12
+ /**
13
+ * Creates a Powerlines unplugin instance.
14
+ *
15
+ * @param context - The plugin context.
16
+ * @returns The unplugin instance.
17
+ */
18
+ function createUnplugin(context, name = "unplugin") {
19
+ const ctx = context;
20
+ (0, unplugin.setParseImpl)(ctx.parse);
21
+ return () => {
22
+ const log = require_logger.extendLog(ctx.log, name);
23
+ log(__storm_software_config_tools_types.LogLevelLabel.DEBUG, `Initializing ${name.toLowerCase() === "unplugin" ? "Unplugin" : `${(0, __stryke_string_format_title_case.titleCase)(name)} - Unplugin`} plugin`);
24
+ try {
25
+ const { resolveId, load } = require_module_resolution.createUnpluginModuleResolutionFunctions(context);
26
+ async function buildStart() {
27
+ log(__storm_software_config_tools_types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
28
+ await ctx.$$internal.callHook("buildStart", { sequential: true });
29
+ }
30
+ async function transform(code, id) {
31
+ let transformed = code;
32
+ for (const hook of ctx.$$internal.environment.selectHooks("transform")) {
33
+ const result = await hook.handler.apply(require_helpers.combineContexts(ctx, this), [require_source_file.getString(transformed), id]);
34
+ if (result) transformed = result;
35
+ }
36
+ return transformed;
37
+ }
38
+ async function buildEnd() {
39
+ log(__storm_software_config_tools_types.LogLevelLabel.DEBUG, "Powerlines build plugin finishing...");
40
+ return ctx.$$internal.callHook("buildEnd", { sequential: true });
41
+ }
42
+ async function writeBundle() {
43
+ log(__storm_software_config_tools_types.LogLevelLabel.DEBUG, "Finalizing Powerlines project output...");
44
+ return ctx.$$internal.callHook("writeBundle", { sequential: true });
45
+ }
46
+ return {
47
+ name: name.toLowerCase() === "unplugin" ? "powerlines" : `powerlines:${(0, __stryke_string_format_kebab_case.kebabCase)(name)}`,
48
+ api: ctx.$$internal.api,
49
+ resolveId: {
50
+ filter: { id: { include: [/.*/] } },
51
+ handler: resolveId
52
+ },
53
+ load: {
54
+ filter: { id: { include: [/.*/] } },
55
+ handler: load
56
+ },
57
+ transform,
58
+ buildStart,
59
+ buildEnd,
60
+ writeBundle,
61
+ vite: { sharedDuringBuild: true }
62
+ };
63
+ } catch (error) {
64
+ log(__storm_software_config_tools_types.LogLevelLabel.FATAL, error?.message);
65
+ throw error;
66
+ }
67
+ };
68
+ }
69
+
70
+ //#endregion
71
+ exports.createUnplugin = createUnplugin;
@@ -0,0 +1,22 @@
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ require("@stryke/fs/read-file");
3
+ let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
4
+ let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
5
+ require("magic-string");
6
+
7
+ //#region ../core/src/lib/utilities/source-file.ts
8
+ /**
9
+ * Get the string from the source.
10
+ *
11
+ * @param code - The source string or magic string.
12
+ * @returns The source string.
13
+ */
14
+ function getString(code) {
15
+ if (!code) return "";
16
+ if ((0, __stryke_type_checks_is_string.isString)(code)) return code;
17
+ if ((0, __stryke_type_checks_is_set_object.isSetObject)(code) && "code" in code) return code.code;
18
+ return code.toString();
19
+ }
20
+
21
+ //#endregion
22
+ exports.getString = getString;
@@ -1,6 +1,7 @@
1
1
  import "@stryke/fs/read-file";
2
2
  import { isSetObject } from "@stryke/type-checks/is-set-object";
3
3
  import { isString } from "@stryke/type-checks/is-string";
4
+ import "magic-string";
4
5
 
5
6
  //#region ../core/src/lib/utilities/source-file.ts
6
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"source-file.mjs","names":[],"sources":["../../../../../../core/src/lib/utilities/source-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { readFileIfExistingSync } from \"@stryke/fs/read-file\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport MagicString from \"magic-string\";\nimport { TransformResult } from \"unplugin\";\nimport { SourceFile } from \"../../types/context\";\n\n/**\n * Get the string from the source.\n *\n * @param code - The source string or magic string.\n * @returns The source string.\n */\nexport function getString(\n code: string | MagicString | TransformResult\n): string {\n if (!code) {\n return \"\";\n }\n\n if (isString(code)) {\n return code;\n }\n\n if (isSetObject(code) && \"code\" in code) {\n return code.code;\n }\n\n return code.toString();\n}\n\n/**\n * Get the magic string.\n *\n * @param code - The source string or magic string.\n * @returns The magic string.\n */\nexport function getMagicString(code: string | MagicString): MagicString {\n if (isString(code)) {\n return new MagicString(code);\n }\n\n return code;\n}\n\n/**\n * Get the source file.\n *\n * @param code - The source code.\n * @param id - The name of the file.\n * @returns The source file.\n */\nexport function getSourceFile(\n code: string | MagicString,\n id: string\n): SourceFile {\n const content = code ?? readFileIfExistingSync(id);\n\n return {\n id,\n code: getMagicString(content),\n env: []\n };\n}\n"],"mappings":";;;;;;;;;;;AA+BA,SAAgB,UACd,MACQ;AACR,KAAI,CAAC,KACH,QAAO;AAGT,KAAI,SAAS,KAAK,CAChB,QAAO;AAGT,KAAI,YAAY,KAAK,IAAI,UAAU,KACjC,QAAO,KAAK;AAGd,QAAO,KAAK,UAAU"}
1
+ {"version":3,"file":"source-file.mjs","names":[],"sources":["../../../../../../core/src/lib/utilities/source-file.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { readFileIfExistingSync } from \"@stryke/fs/read-file\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport MagicString from \"magic-string\";\nimport { TransformResult } from \"unplugin\";\nimport { SourceFile } from \"../../types/context\";\n\n/**\n * Get the string from the source.\n *\n * @param code - The source string or magic string.\n * @returns The source string.\n */\nexport function getString(\n code: string | MagicString | TransformResult\n): string {\n if (!code) {\n return \"\";\n }\n\n if (isString(code)) {\n return code;\n }\n\n if (isSetObject(code) && \"code\" in code) {\n return code.code;\n }\n\n return code.toString();\n}\n\n/**\n * Get the magic string.\n *\n * @param code - The source string or magic string.\n * @returns The magic string.\n */\nexport function getMagicString(code: string | MagicString): MagicString {\n if (isString(code)) {\n return new MagicString(code);\n }\n\n return code;\n}\n\n/**\n * Get the source file.\n *\n * @param code - The source code.\n * @param id - The name of the file.\n * @returns The source file.\n */\nexport function getSourceFile(\n code: string | MagicString,\n id: string\n): SourceFile {\n const content = code ?? readFileIfExistingSync(id);\n\n return {\n id,\n code: getMagicString(content),\n env: []\n };\n}\n"],"mappings":";;;;;;;;;;;;AA+BA,SAAgB,UACd,MACQ;AACR,KAAI,CAAC,KACH,QAAO;AAGT,KAAI,SAAS,KAAK,CAChB,QAAO;AAGT,KAAI,YAAY,KAAK,IAAI,UAAU,KACjC,QAAO,KAAK;AAGd,QAAO,KAAK,UAAU"}
@@ -0,0 +1,103 @@
1
+ import { CallHookOptions, InferHookParameters, InferHookReturnType } from "./hooks.cjs";
2
+ import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
3
+ import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig, ResolvedConfig } from "./config.cjs";
4
+
5
+ //#region ../core/src/types/api.d.ts
6
+
7
+ /**
8
+ * Powerlines API Interface
9
+ */
10
+ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
11
+ /**
12
+ * The Powerlines shared API context
13
+ */
14
+ context: APIContext<TResolvedConfig>;
15
+ /**
16
+ * Prepare the Powerlines API
17
+ *
18
+ * @remarks
19
+ * This method will prepare the Powerlines API for use, initializing any necessary resources.
20
+ *
21
+ * @param inlineConfig - The inline configuration for the prepare command
22
+ */
23
+ prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
24
+ /**
25
+ * Create a new Powerlines project
26
+ *
27
+ * @remarks
28
+ * This method will create a new Powerlines project in the current directory.
29
+ *
30
+ * @param inlineConfig - The inline configuration for the new command
31
+ * @returns A promise that resolves when the project has been created
32
+ */
33
+ new: (inlineConfig: NewInlineConfig) => Promise<void>;
34
+ /**
35
+ * Clean any previously prepared artifacts
36
+ *
37
+ * @remarks
38
+ * This method will remove the previous Powerlines artifacts from the project.
39
+ *
40
+ * @param inlineConfig - The inline configuration for the clean command
41
+ * @returns A promise that resolves when the clean command has completed
42
+ */
43
+ clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
44
+ /**
45
+ * Lint the project source code
46
+ *
47
+ * @param inlineConfig - The inline configuration for the lint command
48
+ * @returns A promise that resolves when the lint command has completed
49
+ */
50
+ lint: (inlineConfig: LintInlineConfig) => Promise<void>;
51
+ /**
52
+ * Build the project
53
+ *
54
+ * @remarks
55
+ * This method will build the Powerlines project, generating the necessary artifacts.
56
+ *
57
+ * @param inlineConfig - The inline configuration for the build command
58
+ * @returns A promise that resolves when the build command has completed
59
+ */
60
+ build: (inlineConfig: BuildInlineConfig) => Promise<void>;
61
+ /**
62
+ * Prepare the documentation for the project
63
+ *
64
+ * @param inlineConfig - The inline configuration for the docs command
65
+ * @returns A promise that resolves when the documentation generation has completed
66
+ */
67
+ docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
68
+ /**
69
+ * Deploy the project source code
70
+ *
71
+ * @remarks
72
+ * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
73
+ *
74
+ * @param inlineConfig - The inline configuration for the deploy command
75
+ */
76
+ deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
77
+ /**
78
+ * Finalization process
79
+ *
80
+ * @remarks
81
+ * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
82
+ *
83
+ * @returns A promise that resolves when the finalization process has completed
84
+ */
85
+ finalize: () => Promise<void>;
86
+ /**
87
+ * Invokes the configured plugin hooks
88
+ *
89
+ * @remarks
90
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
91
+ *
92
+ * @param hook - The hook to call
93
+ * @param options - The options to provide to the hook
94
+ * @param args - The arguments to pass to the hook
95
+ * @returns The result of the hook call
96
+ */
97
+ callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
98
+ environment?: string | EnvironmentContext<TResolvedConfig>;
99
+ }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
100
+ }
101
+ //#endregion
102
+ export { API };
103
+ //# sourceMappingURL=api.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.cts","names":[],"sources":["../../../../../core/src/types/api.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAsCA;AAA6C,UAA5B,GAA4B,CAAA,wBAAA,cAAA,GAAiB,cAAjB,CAAA,CAAA;EAAiB;;;EAgBtD,OAAA,EAZG,UAYH,CAZc,eAYd,CAAA;EACA;;;;;;;;EAiBkC,OAAA,EAAA,CAAA,YAAA,EAlBlC,mBAkBkC,GAjBlC,eAiBkC,GAhBlC,iBAgBkC,GAflC,iBAekC,GAdlC,gBAckC,GAblC,gBAakC,GAZlC,kBAYkC,EAAA,GAXnC,OAWmC,CAAA,IAAA,CAAA;EAYxB;;;;;;;;;EAsCO,GAAA,EAAA,CAAA,YAAA,EAlDH,eAkDG,EAAA,GAlDiB,OAkDjB,CAAA,IAAA,CAAA;EAAuB;;;;;;;;;EA4BnC,KAAA,EAAA,CAAA,YAAA,EAlEK,iBAkEL,GAlEyB,mBAkEzB,EAAA,GAjEN,OAiEM,CAAA,IAAA,CAAA;EAEyB;;;;;;uBA3Df,qBAAqB;;;;;;;;;;wBAWpB,sBAAsB;;;;;;;uBAQvB,qBAAqB;;;;;;;;;yBAUnB,uBAAuB;;;;;;;;;kBAU9B;;;;;;;;;;;;wCAcR,eACG;2BACgB,mBAAmB;cAEnC,oBAAoB,cAAc,kBAAkB,UAC1D,QACH,oBAAoB,cAAc,kBAAkB"}
@@ -0,0 +1,9 @@
1
+ import { MaybePromise } from "@stryke/types/base";
2
+ import { ArrayValues } from "@stryke/types/array";
3
+
4
+ //#region ../core/src/types/commands.d.ts
5
+ declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
6
+ type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
7
+ //#endregion
8
+ export { CommandType };
9
+ //# sourceMappingURL=commands.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.cts","names":[],"sources":["../../../../../core/src/types/commands.ts"],"sourcesContent":[],"mappings":";;;;cAsBa;AAAA,KAYD,WAAA,GAAc,WAFhB,CAAA,OAEmC,kBAFnC,CAAA"}