@powerlines/plugin-nitro 0.1.90 → 0.1.91
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.cjs +1 -2
- package/dist/index.mjs +1 -2
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -2
- package/dist/powerlines/src/types/commands.d.mts +0 -1
- package/dist/powerlines/src/types/config.d.cts +3 -2
- package/dist/powerlines/src/types/config.d.mts +5 -4
- package/dist/powerlines/src/types/resolved.d.cts +2 -2
- package/dist/powerlines/src/types/resolved.d.mts +2 -2
- package/dist/powerlines/src/types/unplugin.d.mts +0 -1
- package/package.json +4 -4
- package/dist/powerlines/src/types/babel.d.mts +0 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
4
3
|
let __stryke_path_append = require("@stryke/path/append");
|
|
5
4
|
let defu = require("defu");
|
|
6
5
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
@@ -16,7 +15,7 @@ const plugin = (options = {}) => {
|
|
|
16
15
|
{
|
|
17
16
|
name: "nitro:config",
|
|
18
17
|
async config() {
|
|
19
|
-
this.
|
|
18
|
+
this.debug("Providing default configuration for the Powerlines `nitro` plugin.");
|
|
20
19
|
let configFile = options.configFile;
|
|
21
20
|
if (!configFile) configFile = (0, powerlines_plugin_utils_get_config_path.getConfigPath)(this, "nitro");
|
|
22
21
|
return { nitro: {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
2
1
|
import { appendPath } from "@stryke/path/append";
|
|
3
2
|
import defu from "defu";
|
|
4
3
|
import { createNitro } from "nitro/builder";
|
|
@@ -13,7 +12,7 @@ const plugin = (options = {}) => {
|
|
|
13
12
|
{
|
|
14
13
|
name: "nitro:config",
|
|
15
14
|
async config() {
|
|
16
|
-
this.
|
|
15
|
+
this.debug("Providing default configuration for the Powerlines `nitro` plugin.");
|
|
17
16
|
let configFile = options.configFile;
|
|
18
17
|
if (!configFile) configFile = getConfigPath(this, "nitro");
|
|
19
18
|
return { nitro: {
|
|
@@ -14,6 +14,7 @@ import { DateString } from "compatx";
|
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
16
|
|
|
17
|
+
type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
|
|
17
18
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
18
19
|
/**
|
|
19
20
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -253,7 +254,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
253
254
|
*
|
|
254
255
|
* @defaultValue "info"
|
|
255
256
|
*/
|
|
256
|
-
logLevel?:
|
|
257
|
+
logLevel?: LogLevel | null;
|
|
257
258
|
/**
|
|
258
259
|
* A custom logger function to use for logging messages
|
|
259
260
|
*/
|
|
@@ -420,4 +421,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
|
|
|
420
421
|
command: "deploy";
|
|
421
422
|
};
|
|
422
423
|
//#endregion
|
|
423
|
-
export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
424
|
+
export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
|
-
import "./babel.mjs";
|
|
3
2
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
4
3
|
import { TSConfig } from "./tsconfig.mjs";
|
|
5
4
|
import { PluginContext } from "./context.mjs";
|
|
6
5
|
import { Plugin } from "./plugin.mjs";
|
|
7
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
8
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
9
7
|
import { PreviewOptions } from "vite";
|
|
10
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
11
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
12
11
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
14
13
|
import { DateString } from "compatx";
|
|
15
14
|
|
|
16
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
|
+
|
|
17
|
+
type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
|
|
17
18
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
18
19
|
/**
|
|
19
20
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -253,7 +254,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
253
254
|
*
|
|
254
255
|
* @defaultValue "info"
|
|
255
256
|
*/
|
|
256
|
-
logLevel?:
|
|
257
|
+
logLevel?: LogLevel | null;
|
|
257
258
|
/**
|
|
258
259
|
* A custom logger function to use for logging messages
|
|
259
260
|
*/
|
|
@@ -420,4 +421,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
|
|
|
420
421
|
command: "deploy";
|
|
421
422
|
};
|
|
422
423
|
//#endregion
|
|
423
|
-
export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
424
|
+
export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
|
-
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
2
|
+
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
4
|
import { ResolvedPreviewOptions } from "vite";
|
|
5
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
@@ -76,7 +76,7 @@ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUse
|
|
|
76
76
|
*
|
|
77
77
|
* @defaultValue "info"
|
|
78
78
|
*/
|
|
79
|
-
logLevel:
|
|
79
|
+
logLevel: LogLevel | null;
|
|
80
80
|
};
|
|
81
81
|
type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
|
|
82
82
|
type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
|
-
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
|
|
2
|
+
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
4
|
import { ResolvedPreviewOptions } from "vite";
|
|
5
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
@@ -76,7 +76,7 @@ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUse
|
|
|
76
76
|
*
|
|
77
77
|
* @defaultValue "info"
|
|
78
78
|
*/
|
|
79
|
-
logLevel:
|
|
79
|
+
logLevel: LogLevel | null;
|
|
80
80
|
};
|
|
81
81
|
type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
|
|
82
82
|
type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nitro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.91",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for creating a server application that runs on Nitro.",
|
|
6
6
|
"repository": {
|
|
@@ -107,12 +107,12 @@
|
|
|
107
107
|
"@stryke/path": "^0.26.0",
|
|
108
108
|
"defu": "^6.1.4",
|
|
109
109
|
"nitro": "3.0.1-alpha.1",
|
|
110
|
-
"powerlines": "^0.37.
|
|
110
|
+
"powerlines": "^0.37.73"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
113
|
+
"@powerlines/plugin-plugin": "^0.12.151",
|
|
114
114
|
"@types/node": "^24.10.9"
|
|
115
115
|
},
|
|
116
116
|
"publishConfig": { "access": "public" },
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "df743ef7ebac849eb4ce90899884df4758b61172"
|
|
118
118
|
}
|