@powerlines/plugin-date 0.12.259 → 0.12.261

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 (51) hide show
  1. package/dist/index.cjs +3 -2
  2. package/dist/index.d.cts +1 -1
  3. package/dist/index.d.mts +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/dist/types/plugin.d.cts +1 -1
  6. package/dist/types/plugin.d.mts +1 -1
  7. package/package.json +4 -4
  8. package/dist/deepkit/schemas/reflection.d.cts +0 -1560
  9. package/dist/deepkit/src/types.d.cts +0 -10
  10. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
  11. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
  12. package/dist/packages/deepkit/schemas/reflection.d.mts +0 -1560
  13. package/dist/packages/deepkit/src/types.d.mts +0 -10
  14. package/dist/packages/plugin-alloy/src/types/plugin.d.mts +0 -36
  15. package/dist/packages/plugin-automd/src/types/plugin.d.mts +0 -38
  16. package/dist/packages/plugin-automd/src/types/toc.d.mts +0 -33
  17. package/dist/packages/plugin-babel/src/types/plugin.d.mts +0 -15
  18. package/dist/packages/plugin-env/src/types/plugin.d.mts +0 -148
  19. package/dist/packages/plugin-env/src/types/runtime.d.mts +0 -789
  20. package/dist/packages/powerlines/src/internal/helpers/hooks.d.mts +0 -47
  21. package/dist/packages/powerlines/src/types/api.d.mts +0 -104
  22. package/dist/packages/powerlines/src/types/babel.d.mts +0 -22
  23. package/dist/packages/powerlines/src/types/build.d.mts +0 -185
  24. package/dist/packages/powerlines/src/types/commands.d.mts +0 -8
  25. package/dist/packages/powerlines/src/types/config.d.mts +0 -435
  26. package/dist/packages/powerlines/src/types/context.d.mts +0 -514
  27. package/dist/packages/powerlines/src/types/fs.d.mts +0 -486
  28. package/dist/packages/powerlines/src/types/hooks.d.mts +0 -32
  29. package/dist/packages/powerlines/src/types/plugin.d.mts +0 -205
  30. package/dist/packages/powerlines/src/types/resolved.d.mts +0 -94
  31. package/dist/packages/powerlines/src/types/tsconfig.d.mts +0 -69
  32. package/dist/packages/powerlines/src/types/unplugin.d.mts +0 -22
  33. package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
  34. package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
  35. package/dist/plugin-automd/src/types/toc.d.cts +0 -33
  36. package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
  37. package/dist/plugin-env/src/types/plugin.d.cts +0 -148
  38. package/dist/plugin-env/src/types/runtime.d.cts +0 -789
  39. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  40. package/dist/powerlines/src/types/api.d.cts +0 -104
  41. package/dist/powerlines/src/types/babel.d.cts +0 -22
  42. package/dist/powerlines/src/types/build.d.cts +0 -185
  43. package/dist/powerlines/src/types/commands.d.cts +0 -8
  44. package/dist/powerlines/src/types/config.d.cts +0 -435
  45. package/dist/powerlines/src/types/context.d.cts +0 -514
  46. package/dist/powerlines/src/types/fs.d.cts +0 -486
  47. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  48. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  49. package/dist/powerlines/src/types/resolved.d.cts +0 -94
  50. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  51. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
@@ -1,10 +0,0 @@
1
- import { SerializedTypes } from "../schemas/reflection.mjs";
2
- import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
3
-
4
- //#region ../deepkit/src/types.d.ts
5
- type Reflection<T extends Record<string, any> = Record<string, any>> = ReflectionClass<T> & {
6
- dataBuffer?: ArrayBuffer;
7
- messageRoot?: SerializedTypes;
8
- };
9
- //#endregion
10
- export { Reflection };
@@ -1,36 +0,0 @@
1
- import { PluginContext } from "../../../powerlines/src/types/context.mjs";
2
- import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.mjs";
3
- import { Children, PrintTreeOptions } from "@alloy-js/core";
4
-
5
- //#region ../plugin-alloy/src/types/plugin.d.ts
6
- type AlloyPluginOptions = Partial<PrintTreeOptions> & {
7
- /**
8
- * If true, the Alloy framework is used to generate Typescript output files.
9
- *
10
- * @defaultValue true
11
- */
12
- typescript?: boolean;
13
- /**
14
- * If true, the Alloy framework is used to generate JSON output files.
15
- *
16
- * @defaultValue false
17
- */
18
- json?: boolean;
19
- /**
20
- * If true, the Alloy framework is used to generate Markdown output files.
21
- *
22
- * @defaultValue false
23
- */
24
- markdown?: boolean;
25
- };
26
- type AlloyPluginUserConfig = BabelPluginUserConfig & {
27
- alloy?: AlloyPluginOptions;
28
- };
29
- type AlloyPluginResolvedConfig = BabelPluginResolvedConfig & {
30
- alloy: AlloyPluginOptions;
31
- };
32
- type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
33
- render: (children: Children) => Promise<void>;
34
- };
35
- //#endregion
36
- export { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig };
@@ -1,38 +0,0 @@
1
- import { TOCOptions } from "./toc.mjs";
2
- import { Config } from "automd";
3
-
4
- //#region ../plugin-automd/src/types/plugin.d.ts
5
-
6
- type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
7
- /**
8
- * Path to the AutoMD configuration file.
9
- *
10
- * @remarks
11
- * If not provided, the plugin will use the default AutoMD configuration resolution mechanism.
12
- */
13
- configFile?: string;
14
- /**
15
- * An indicator specifying whether or not issues found by AutoMD during the prepare task are considered fatal.
16
- *
17
- * @defaultValue true
18
- */
19
- allowIssues?: boolean;
20
- /**
21
- * Alternate prefix strings to use for finding generators
22
- *
23
- * @remarks
24
- * 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.
25
- *
26
- * @defaultValue ["automd", "powerlines", "\{framework\}"]
27
- */
28
- prefix?: string | string[];
29
- /**
30
- * Table of Contents generator options
31
- *
32
- * @remarks
33
- * If set to `false`, the built-in Table of Contents generator will be disabled.
34
- */
35
- toc?: false | TOCOptions;
36
- };
37
- //#endregion
38
- export { AutoMDPluginOptions };
@@ -1,33 +0,0 @@
1
- //#region ../plugin-automd/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
- //#endregion
33
- export { TOCOptions };
@@ -1,15 +0,0 @@
1
- import { BabelUserConfig, UserConfig } from "../../../powerlines/src/types/config.mjs";
2
- import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
3
- import { PluginContext } from "../../../powerlines/src/types/context.mjs";
4
-
5
- //#region ../plugin-babel/src/types/plugin.d.ts
6
- type BabelPluginOptions = Partial<BabelUserConfig>;
7
- type BabelPluginUserConfig = UserConfig;
8
- interface BabelPluginResolvedConfig extends ResolvedConfig {
9
- transform: {
10
- babel: BabelResolvedConfig;
11
- };
12
- }
13
- type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
14
- //#endregion
15
- export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig };
@@ -1,148 +0,0 @@
1
- import { Reflection } from "../../../deepkit/src/types.mjs";
2
- import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.mjs";
3
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "../../../plugin-alloy/src/types/plugin.mjs";
4
- import { AutoMDPluginOptions } from "../../../plugin-automd/src/types/plugin.mjs";
5
- import { EnvInterface, SecretsInterface } from "./runtime.mjs";
6
- import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
7
- import { Children } from "@alloy-js/core";
8
- import { DotenvParseOutput } from "@stryke/env/types";
9
-
10
- //#region ../plugin-env/src/types/plugin.d.ts
11
- type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
12
- /**
13
- * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
14
- */
15
- types?: TypeDefinitionParameter;
16
- /**
17
- * A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
18
- */
19
- secrets?: TypeDefinitionParameter;
20
- /**
21
- * An additional prefix (or list of additional prefixes) to apply to the environment variables
22
- *
23
- * @remarks
24
- * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
25
- */
26
- prefix?: string | string[];
27
- /**
28
- * Should the plugin inject the env variables in the source code with their values?
29
- *
30
- * @defaultValue false
31
- */
32
- inject?: boolean;
33
- /**
34
- * The default configuration to use when loading environment variables.
35
- *
36
- * @remarks
37
- * This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
38
- */
39
- defaultConfig?: Children;
40
- /**
41
- * Babel configuration options to use when injecting environment variables into the source code.
42
- *
43
- * @remarks
44
- * This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
45
- */
46
- babel?: BabelPluginOptions;
47
- /**
48
- * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
49
- *
50
- * @remarks
51
- * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
52
- */
53
- automd?: AutoMDPluginOptions;
54
- /**
55
- * Alloy configuration options to use when injecting environment variables into the source code.
56
- *
57
- * @remarks
58
- * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
59
- */
60
- alloy?: AlloyPluginOptions;
61
- };
62
- type EnvPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
63
- env: EnvPluginOptions;
64
- };
65
- type EnvPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
66
- env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
67
- /**
68
- * The type definition for the expected env variable parameters
69
- *
70
- * @remarks
71
- * This value is parsed from the {@link EnvPluginOptions.types} option.
72
- */
73
- types: TypeDefinition;
74
- /**
75
- * The type definition for the expected env secret parameters
76
- *
77
- * @remarks
78
- * This value is parsed from the {@link EnvPluginOptions.secrets} option.
79
- */
80
- secrets: TypeDefinition;
81
- /**
82
- * Should the plugin inject the env variables in the source code with their values?
83
- *
84
- * @remarks
85
- * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
86
- */
87
- inject: EnvPluginOptions["inject"];
88
- /**
89
- * The prefix used for environment variables
90
- *
91
- * @remarks
92
- * This value is used to filter environment variables that are loaded from the .env file and the process environment.
93
- */
94
- prefix: string[];
95
- };
96
- };
97
- interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
98
- env: {
99
- /**
100
- * The type definitions reflection for the env variables and secrets
101
- *
102
- * @remarks
103
- * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
104
- */
105
- types: {
106
- /**
107
- * The type definitions for the expected env variables
108
- */
109
- env: Reflection;
110
- /**
111
- * The type definitions for the expected env secrets
112
- */
113
- secrets: Reflection;
114
- };
115
- /**
116
- * The current **used** environment variables and secrets reflection
117
- *
118
- * @remarks
119
- * This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
120
- */
121
- used: {
122
- /**
123
- * The current env variables reflection
124
- */
125
- env: Reflection<EnvInterface>;
126
- /**
127
- * The current env secrets reflection
128
- */
129
- secrets: Reflection<SecretsInterface>;
130
- };
131
- /**
132
- * The parsed .env configuration object
133
- *
134
- * @remarks
135
- * This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
136
- */
137
- parsed: DotenvParseOutput;
138
- /**
139
- * The injected environment variables and secrets reflection
140
- *
141
- * @remarks
142
- * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
143
- */
144
- injected: Reflection;
145
- };
146
- }
147
- //#endregion
148
- export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig };