@powerlines/plugin-automd 0.1.57 → 0.1.59

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 +1 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.d.cts +3 -3
  4. package/dist/index.d.mts +4 -3
  5. package/dist/index.mjs +1 -1
  6. package/dist/powerlines/src/types/babel.d.mts +2 -0
  7. package/dist/powerlines/src/types/build.d.cts +139 -0
  8. package/dist/powerlines/src/types/build.d.mts +139 -0
  9. package/dist/powerlines/src/types/commands.d.cts +8 -0
  10. package/dist/powerlines/src/types/commands.d.mts +9 -0
  11. package/dist/powerlines/src/types/config.d.cts +345 -0
  12. package/dist/powerlines/src/types/config.d.mts +346 -0
  13. package/dist/powerlines/src/types/context.d.cts +347 -0
  14. package/dist/powerlines/src/types/context.d.mts +349 -0
  15. package/dist/powerlines/src/types/fs.d.cts +458 -0
  16. package/dist/powerlines/src/types/fs.d.mts +458 -0
  17. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  18. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  19. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  20. package/dist/powerlines/src/types/resolved.d.cts +81 -0
  21. package/dist/powerlines/src/types/resolved.d.mts +81 -0
  22. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  23. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  24. package/dist/types/index.cjs +0 -1
  25. package/dist/types/index.d.cts +2 -3
  26. package/dist/types/index.d.mts +2 -3
  27. package/dist/types/index.mjs +1 -1
  28. package/dist/types/plugin.cjs +0 -1
  29. package/dist/types/plugin.d.cts +50 -2
  30. package/dist/types/plugin.d.mts +50 -2
  31. package/dist/types/plugin.mjs +1 -1
  32. package/dist/types/toc.cjs +0 -1
  33. package/dist/types/toc.d.cts +33 -1
  34. package/dist/types/toc.d.mts +33 -1
  35. package/dist/types/toc.mjs +1 -1
  36. package/package.json +10 -10
  37. package/dist/index-CA4VvAY_.d.mts +0 -1
  38. package/dist/index-CmCelmEL.d.cts +0 -1
  39. package/dist/plugin-DHXHjv16.cjs +0 -0
  40. package/dist/plugin-DctK9mNs.d.mts +0 -1686
  41. package/dist/plugin-Gb47Xzf6.mjs +0 -1
  42. package/dist/plugin-sofaGrZ7.d.cts +0 -1685
  43. package/dist/toc-BMD8zasy.cjs +0 -0
  44. package/dist/toc-BMJnT26b.mjs +0 -1
  45. package/dist/toc-CbG2Hl5G.d.cts +0 -34
  46. package/dist/toc-KnOLp5Tz.d.mts +0 -34
  47. package/dist/types-CBTc19th.cjs +0 -0
  48. package/dist/types-CwXe_Ycf.mjs +0 -1
@@ -1,3 +1,51 @@
1
- import { a as __ΩAutoMDPluginContext, c as __ΩAutoMDPluginUserConfig, i as AutoMDPluginUserConfig, n as AutoMDPluginOptions, o as __ΩAutoMDPluginOptions, r as AutoMDPluginResolvedConfig, s as __ΩAutoMDPluginResolvedConfig, t as AutoMDPluginContext } from "../plugin-DctK9mNs.mjs";
2
- import "../toc-KnOLp5Tz.mjs";
1
+ import { UserConfig } from "../powerlines/src/types/config.mjs";
2
+ import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
3
+ import { PluginContext } from "../powerlines/src/types/context.mjs";
4
+ import { TOCOptions } from "./toc.mjs";
5
+ import { Config } from "automd";
6
+
7
+ //#region src/types/plugin.d.ts
8
+ type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
9
+ /**
10
+ * Path to the AutoMD configuration file.
11
+ *
12
+ * @remarks
13
+ * If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
14
+ */
15
+ configFile?: string;
16
+ /**
17
+ * An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
18
+ *
19
+ * @defaultValue true
20
+ */
21
+ allowIssues?: boolean;
22
+ /**
23
+ * Alternate prefix strings to use for finding generators
24
+ *
25
+ * @remarks
26
+ * By default, AutoMD looks for generators with the "automd" prefix, so that any `<!-- automd:generator [...args] --> ... <!-- /automd -->` comments will be picked up. If you want to use different prefixes (for example, to avoid conflicts with other tools), you would provide a value like "myPrefix" and AutoMD would also look for `<!-- myPrefix:generator [...args] --> ... <!-- /myPrefix -->` comments.
27
+ *
28
+ * @defaultValue ["automd", "powerlines"]
29
+ */
30
+ prefix?: string | string[];
31
+ /**
32
+ * Table of Contents generator options
33
+ *
34
+ * @remarks
35
+ * If set to `false`, the built-in Table of Contents generator will be disabled.
36
+ */
37
+ toc?: false | TOCOptions;
38
+ };
39
+ type AutoMDPluginUserConfig = UserConfig & {
40
+ automd?: Config & Pick<AutoMDPluginOptions, "configFile" | "allowIssues" | "toc">;
41
+ };
42
+ type AutoMDPluginResolvedConfig = ResolvedConfig & {
43
+ automd: Config & Pick<AutoMDPluginOptions, "configFile" | "allowIssues" | "toc">;
44
+ };
45
+ type AutoMDPluginContext<TResolvedConfig extends AutoMDPluginResolvedConfig = AutoMDPluginResolvedConfig> = PluginContext<TResolvedConfig>;
46
+ declare type __ΩAutoMDPluginOptions = any[];
47
+ declare type __ΩAutoMDPluginUserConfig = any[];
48
+ declare type __ΩAutoMDPluginResolvedConfig = any[];
49
+ declare type __ΩAutoMDPluginContext = any[];
50
+ //#endregion
3
51
  export { AutoMDPluginContext, AutoMDPluginOptions, AutoMDPluginResolvedConfig, AutoMDPluginUserConfig, __ΩAutoMDPluginContext, __ΩAutoMDPluginOptions, __ΩAutoMDPluginResolvedConfig, __ΩAutoMDPluginUserConfig };
@@ -1 +1 @@
1
- import"../plugin-Gb47Xzf6.mjs";export{};
1
+ export{};
@@ -1 +0,0 @@
1
- require(`../toc-BMD8zasy.cjs`);
@@ -1,2 +1,34 @@
1
- import { n as __ΩTOCOptions, t as TOCOptions } from "../toc-CbG2Hl5G.cjs";
1
+ //#region src/types/toc.d.ts
2
+ interface TOCOptions {
3
+ /**
4
+ * A slugify function to generate slugs for the headings.
5
+ */
6
+ slugify?: (str: string) => string;
7
+ /**
8
+ * The maximum depth of headings to include in the TOC.
9
+ *
10
+ * @defaultValue 6
11
+ */
12
+ maxDepth?: number;
13
+ /**
14
+ * Whether to include the first H1 heading in the TOC.
15
+ */
16
+ firstH1?: boolean;
17
+ /**
18
+ * The bullet character to use for list items in the TOC.
19
+ *
20
+ * @defaultValue "-"
21
+ */
22
+ bullets?: string;
23
+ /**
24
+ * A prefix to add to each heading in the TOC.
25
+ */
26
+ prefix?: string;
27
+ /**
28
+ * A filter function to determine which headings to include in the TOC.
29
+ */
30
+ filter?: (str: string, level: number) => boolean;
31
+ }
32
+ declare type __ΩTOCOptions = any[];
33
+ //#endregion
2
34
  export { TOCOptions, __ΩTOCOptions };
@@ -1,2 +1,34 @@
1
- import { n as __ΩTOCOptions, t as TOCOptions } from "../toc-KnOLp5Tz.mjs";
1
+ //#region src/types/toc.d.ts
2
+ interface TOCOptions {
3
+ /**
4
+ * A slugify function to generate slugs for the headings.
5
+ */
6
+ slugify?: (str: string) => string;
7
+ /**
8
+ * The maximum depth of headings to include in the TOC.
9
+ *
10
+ * @defaultValue 6
11
+ */
12
+ maxDepth?: number;
13
+ /**
14
+ * Whether to include the first H1 heading in the TOC.
15
+ */
16
+ firstH1?: boolean;
17
+ /**
18
+ * The bullet character to use for list items in the TOC.
19
+ *
20
+ * @defaultValue "-"
21
+ */
22
+ bullets?: string;
23
+ /**
24
+ * A prefix to add to each heading in the TOC.
25
+ */
26
+ prefix?: string;
27
+ /**
28
+ * A filter function to determine which headings to include in the TOC.
29
+ */
30
+ filter?: (str: string, level: number) => boolean;
31
+ }
32
+ declare type __ΩTOCOptions = any[];
33
+ //#endregion
2
34
  export { TOCOptions, __ΩTOCOptions };
@@ -1 +1 @@
1
- import"../toc-BMJnT26b.mjs";export{};
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-automd",
3
- "version": "0.1.57",
3
+ "version": "0.1.59",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to maintain a project's markdown files using AutoMD generators.",
6
6
  "repository": {
@@ -117,22 +117,22 @@
117
117
  "files": ["dist/**/*"],
118
118
  "keywords": ["automd", "powerlines", "storm-software", "powerlines-plugin"],
119
119
  "dependencies": {
120
- "@stryke/convert": "^0.6.13",
121
- "@stryke/fs": "^0.33.9",
122
- "@stryke/path": "^0.22.0",
123
- "@stryke/type-checks": "^0.4.4",
124
- "@stryke/types": "^0.10.13",
120
+ "@stryke/convert": "^0.6.24",
121
+ "@stryke/fs": "^0.33.20",
122
+ "@stryke/path": "^0.22.11",
123
+ "@stryke/type-checks": "^0.5.9",
124
+ "@stryke/types": "^0.10.23",
125
125
  "c12": "^3.3.2",
126
126
  "defu": "^6.1.4",
127
127
  "markdown-toc": "^1.2.0",
128
- "powerlines": "^0.30.8"
128
+ "powerlines": "^0.30.10"
129
129
  },
130
130
  "devDependencies": {
131
- "@powerlines/nx": "^0.10.57",
132
- "@powerlines/plugin-plugin": "^0.12.9",
131
+ "@powerlines/nx": "^0.10.59",
132
+ "@powerlines/plugin-plugin": "^0.12.11",
133
133
  "@types/node": "^24.10.1",
134
134
  "automd": "^0.4.2"
135
135
  },
136
136
  "publishConfig": { "access": "public" },
137
- "gitHead": "b6cd904eada6483fffd8791e64febb309d73f399"
137
+ "gitHead": "1fa17406f69248e0a35ca56c09b1f4589e4d49d7"
138
138
  }
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
File without changes