@powerlines/plugin-automd 0.1.197 → 0.1.199

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.
@@ -15,6 +15,7 @@ import { AssetGlob } from "@stryke/types/file";
15
15
  import { DateString } from "compatx";
16
16
 
17
17
  //#region ../powerlines/src/types/config.d.ts
18
+ type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
18
19
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
19
20
  /**
20
21
  * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
@@ -92,15 +93,6 @@ interface OutputConfig {
92
93
  * @defaultValue "\{projectRoot\}/powerlines.d.ts"
93
94
  */
94
95
  dts?: string | false;
95
- /**
96
- * A prefix to use for identifying builtin modules
97
- *
98
- * @remarks
99
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
100
- *
101
- * @defaultValue "powerlines"
102
- */
103
- builtinPrefix?: string;
104
96
  /**
105
97
  * The module format of the output files
106
98
  *
@@ -263,7 +255,7 @@ interface CommonUserConfig extends BaseConfig {
263
255
  *
264
256
  * @defaultValue "info"
265
257
  */
266
- logLevel?: LogLevelLabel | null;
258
+ logLevel?: LogLevel | null;
267
259
  /**
268
260
  * A custom logger function to use for logging messages
269
261
  */
@@ -336,7 +328,7 @@ interface CommonUserConfig extends BaseConfig {
336
328
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
337
329
  *
338
330
  * @remarks
339
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
331
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
340
332
  *
341
333
  * @defaultValue "powerlines"
342
334
  */
@@ -430,4 +422,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
430
422
  command: "deploy";
431
423
  };
432
424
  //#endregion
433
- 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 };
425
+ 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 };
@@ -226,6 +226,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
226
226
  * The builtin module id that exist in the Powerlines virtual file system
227
227
  */
228
228
  builtins: string[];
229
+ /**
230
+ * The alias mappings for the project used during module resolution
231
+ *
232
+ * @remarks
233
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
234
+ */
235
+ alias: Record<string, string>;
229
236
  /**
230
237
  * The {@link Project} instance used for type reflection and module manipulation
231
238
  *
@@ -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: "error" | "warn" | "info" | "debug" | "trace" | null;
79
+ logLevel: LogLevel | null;
80
80
  };
81
81
  type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
82
82
  type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
@@ -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
@@ -91,15 +92,6 @@ interface OutputConfig {
91
92
  * @defaultValue "\{projectRoot\}/powerlines.d.ts"
92
93
  */
93
94
  dts?: string | false;
94
- /**
95
- * A prefix to use for identifying builtin modules
96
- *
97
- * @remarks
98
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
99
- *
100
- * @defaultValue "powerlines"
101
- */
102
- builtinPrefix?: string;
103
95
  /**
104
96
  * The module format of the output files
105
97
  *
@@ -262,7 +254,7 @@ interface CommonUserConfig extends BaseConfig {
262
254
  *
263
255
  * @defaultValue "info"
264
256
  */
265
- logLevel?: LogLevelLabel | null;
257
+ logLevel?: LogLevel | null;
266
258
  /**
267
259
  * A custom logger function to use for logging messages
268
260
  */
@@ -335,7 +327,7 @@ interface CommonUserConfig extends BaseConfig {
335
327
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
336
328
  *
337
329
  * @remarks
338
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
330
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
339
331
  *
340
332
  * @defaultValue "powerlines"
341
333
  */
@@ -429,4 +421,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
429
421
  command: "deploy";
430
422
  };
431
423
  //#endregion
432
- 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 };
@@ -226,6 +226,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
226
226
  * The builtin module id that exist in the Powerlines virtual file system
227
227
  */
228
228
  builtins: string[];
229
+ /**
230
+ * The alias mappings for the project used during module resolution
231
+ *
232
+ * @remarks
233
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
234
+ */
235
+ alias: Record<string, string>;
229
236
  /**
230
237
  * The {@link Project} instance used for type reflection and module manipulation
231
238
  *
@@ -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: "error" | "warn" | "info" | "debug" | "trace" | null;
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-automd",
3
- "version": "0.1.197",
3
+ "version": "0.1.199",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to maintain a project's markdown files using AutoMD generators.",
6
6
  "repository": {
@@ -125,13 +125,13 @@
125
125
  "c12": "^3.3.3",
126
126
  "defu": "^6.1.4",
127
127
  "markdown-toc": "^1.2.0",
128
- "powerlines": "^0.37.71"
128
+ "powerlines": "^0.37.73"
129
129
  },
130
130
  "devDependencies": {
131
- "@powerlines/plugin-plugin": "^0.12.149",
131
+ "@powerlines/plugin-plugin": "^0.12.151",
132
132
  "@types/node": "^24.10.9",
133
133
  "automd": "^0.4.2"
134
134
  },
135
135
  "publishConfig": { "access": "public" },
136
- "gitHead": "6fd6de6c956acc53f73c34d8b19827d094e604af"
136
+ "gitHead": "df743ef7ebac849eb4ce90899884df4758b61172"
137
137
  }