commandkit 1.0.0-dev.20250512141520 → 1.0.0-dev.20250512144558
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/dist/index.d.ts +2 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1767,8 +1767,9 @@ declare class CommandKit extends EventEmitter {
|
|
|
1767
1767
|
interface CommandKitConfig {
|
|
1768
1768
|
/**
|
|
1769
1769
|
* The plugins to use with CommandKit.
|
|
1770
|
+
* Can be a single plugin, an array of plugins, or a nested array of plugins.
|
|
1770
1771
|
*/
|
|
1771
|
-
plugins?: CommandKitPlugin[] | Array<CommandKitPlugin
|
|
1772
|
+
plugins?: MaybeArray<CommandKitPlugin>[] | Array<CommandKitPlugin>;
|
|
1772
1773
|
/**
|
|
1773
1774
|
* The esbuild plugins to use with CommandKit.
|
|
1774
1775
|
*/
|
package/dist/index.js
CHANGED
|
@@ -5615,7 +5615,7 @@ var init_version = __esm({
|
|
|
5615
5615
|
"use strict";
|
|
5616
5616
|
init_cjs_shims();
|
|
5617
5617
|
version = /* @__MACRO__ $version */
|
|
5618
|
-
"1.0.0-dev.
|
|
5618
|
+
"1.0.0-dev.20250512144558";
|
|
5619
5619
|
}
|
|
5620
5620
|
});
|
|
5621
5621
|
|
|
@@ -5818,7 +5818,9 @@ async function buildApplication({
|
|
|
5818
5818
|
if (!isDev && !((_a = config == null ? void 0 : config.typescript) == null ? void 0 : _a.ignoreBuildErrors)) {
|
|
5819
5819
|
await performTypeCheck(configPath || process.cwd());
|
|
5820
5820
|
}
|
|
5821
|
-
const pluginRuntime = new CompilerPluginRuntime(
|
|
5821
|
+
const pluginRuntime = new CompilerPluginRuntime(
|
|
5822
|
+
plugins || []
|
|
5823
|
+
);
|
|
5822
5824
|
const esbuildPluginList = pluginRuntime.isEmpty() ? [] : [pluginRuntime.toEsbuildPlugin()];
|
|
5823
5825
|
if (esbuildPlugins == null ? void 0 : esbuildPlugins.length) {
|
|
5824
5826
|
esbuildPluginList.push(...esbuildPlugins.map(fromEsbuildPlugin));
|
|
@@ -6200,7 +6202,9 @@ async function createProductionBuild(configPath) {
|
|
|
6200
6202
|
await buildApplication({
|
|
6201
6203
|
configPath: cwd,
|
|
6202
6204
|
isDev: false,
|
|
6203
|
-
plugins: config.plugins.filter(
|
|
6205
|
+
plugins: config.plugins.filter(
|
|
6206
|
+
(p) => isCompilerPlugin(p)
|
|
6207
|
+
),
|
|
6204
6208
|
esbuildPlugins: config.esbuildPlugins
|
|
6205
6209
|
});
|
|
6206
6210
|
spinner.succeed("Production build completed!");
|