@powerlines/plugin-react 0.1.250 → 0.1.252

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 (64) hide show
  1. package/dist/components/react-optimized.d.cts +1 -1
  2. package/dist/components/react-optimized.d.mts +1 -1
  3. package/dist/index.d.cts +1 -1
  4. package/dist/index.d.mts +1 -1
  5. package/dist/types/plugin.d.cts +2 -2
  6. package/dist/types/plugin.d.mts +2 -2
  7. package/dist/types/runtime.d.cts +1 -1
  8. package/dist/types/runtime.d.mts +1 -1
  9. package/package.json +6 -6
  10. package/dist/deepkit/schemas/reflection.d.cts +0 -1560
  11. package/dist/deepkit/schemas/reflection.d.mts +0 -1560
  12. package/dist/deepkit/src/types.d.cts +0 -10
  13. package/dist/deepkit/src/types.d.mts +0 -10
  14. package/dist/plugin-alloy/src/core/components/source-file.d.cts +0 -23
  15. package/dist/plugin-alloy/src/core/components/source-file.d.mts +0 -23
  16. package/dist/plugin-alloy/src/types/components.d.cts +0 -20
  17. package/dist/plugin-alloy/src/types/components.d.mts +0 -21
  18. package/dist/plugin-alloy/src/types/index.d.cts +0 -2
  19. package/dist/plugin-alloy/src/types/index.d.mts +0 -2
  20. package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
  21. package/dist/plugin-alloy/src/types/plugin.d.mts +0 -36
  22. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +0 -26
  23. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +0 -26
  24. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +0 -37
  25. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +0 -37
  26. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +0 -16
  27. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +0 -16
  28. package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
  29. package/dist/plugin-automd/src/types/plugin.d.mts +0 -40
  30. package/dist/plugin-automd/src/types/toc.d.cts +0 -33
  31. package/dist/plugin-automd/src/types/toc.d.mts +0 -33
  32. package/dist/plugin-babel/src/types/index.d.mts +0 -1
  33. package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
  34. package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
  35. package/dist/plugin-env/src/types/plugin.d.cts +0 -149
  36. package/dist/plugin-env/src/types/plugin.d.mts +0 -150
  37. package/dist/plugin-env/src/types/runtime.d.cts +0 -789
  38. package/dist/plugin-env/src/types/runtime.d.mts +0 -789
  39. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  40. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
  41. package/dist/powerlines/src/types/api.d.cts +0 -104
  42. package/dist/powerlines/src/types/api.d.mts +0 -104
  43. package/dist/powerlines/src/types/babel.d.cts +0 -22
  44. package/dist/powerlines/src/types/babel.d.mts +0 -22
  45. package/dist/powerlines/src/types/build.d.cts +0 -185
  46. package/dist/powerlines/src/types/build.d.mts +0 -185
  47. package/dist/powerlines/src/types/commands.d.cts +0 -8
  48. package/dist/powerlines/src/types/commands.d.mts +0 -9
  49. package/dist/powerlines/src/types/config.d.cts +0 -435
  50. package/dist/powerlines/src/types/config.d.mts +0 -435
  51. package/dist/powerlines/src/types/context.d.cts +0 -514
  52. package/dist/powerlines/src/types/context.d.mts +0 -514
  53. package/dist/powerlines/src/types/fs.d.cts +0 -486
  54. package/dist/powerlines/src/types/fs.d.mts +0 -486
  55. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  56. package/dist/powerlines/src/types/hooks.d.mts +0 -32
  57. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  58. package/dist/powerlines/src/types/plugin.d.mts +0 -205
  59. package/dist/powerlines/src/types/resolved.d.cts +0 -94
  60. package/dist/powerlines/src/types/resolved.d.mts +0 -94
  61. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  62. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
  63. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
  64. package/dist/powerlines/src/types/unplugin.d.mts +0 -23
@@ -1,10 +0,0 @@
1
- import { SerializedTypes } from "../schemas/reflection.cjs";
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,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,23 +0,0 @@
1
- import { StoragePreset } from "../../../../powerlines/src/types/fs.cjs";
2
- import { ComponentProps } from "../../types/components.cjs";
3
- import { SourceFileProps } from "@alloy-js/core";
4
-
5
- //#region ../plugin-alloy/src/core/components/source-file.d.ts
6
- type SourceFileProps$1 = SourceFileProps & ComponentProps & {
7
- /**
8
- * The storage preset for the output files.
9
- *
10
- * @remarks
11
- * If not specified, the output mode will be determined by the provided `output.mode` value.
12
- */
13
- storage?: StoragePreset;
14
- /**
15
- * The metadata associated with the source file.
16
- *
17
- * @remarks
18
- * The values stored in the metadata will be available in the rendering context.
19
- */
20
- meta?: Record<string, any>;
21
- };
22
- //#endregion
23
- export { SourceFileProps$1 as SourceFileProps };
@@ -1,23 +0,0 @@
1
- import { StoragePreset } from "../../../../powerlines/src/types/fs.mjs";
2
- import { ComponentProps } from "../../types/components.mjs";
3
- import { SourceFileProps } from "@alloy-js/core";
4
-
5
- //#region ../plugin-alloy/src/core/components/source-file.d.ts
6
- type SourceFileProps$1 = SourceFileProps & ComponentProps & {
7
- /**
8
- * The storage preset for the output files.
9
- *
10
- * @remarks
11
- * If not specified, the output mode will be determined by the provided `output.mode` value.
12
- */
13
- storage?: StoragePreset;
14
- /**
15
- * The metadata associated with the source file.
16
- *
17
- * @remarks
18
- * The values stored in the metadata will be available in the rendering context.
19
- */
20
- meta?: Record<string, any>;
21
- };
22
- //#endregion
23
- export { SourceFileProps$1 as SourceFileProps };
@@ -1,20 +0,0 @@
1
- import { Children } from "@alloy-js/core";
2
- import "@alloy-js/typescript";
3
-
4
- //#region ../plugin-alloy/src/types/components.d.ts
5
-
6
- /**
7
- * A type that represents the props of a component that can have children.
8
- */
9
- interface ComponentProps {
10
- children?: Children;
11
- }
12
- interface TypescriptFileImportItem {
13
- name: string;
14
- default?: boolean;
15
- alias?: string;
16
- type?: boolean;
17
- }
18
- type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
19
- //#endregion
20
- export { ComponentProps, TypescriptFileImportItem, TypescriptFileImports };
@@ -1,21 +0,0 @@
1
- import "../../../powerlines/src/types/resolved.mjs";
2
- import { Children } from "@alloy-js/core";
3
- import "@alloy-js/typescript";
4
-
5
- //#region ../plugin-alloy/src/types/components.d.ts
6
-
7
- /**
8
- * A type that represents the props of a component that can have children.
9
- */
10
- interface ComponentProps {
11
- children?: Children;
12
- }
13
- interface TypescriptFileImportItem {
14
- name: string;
15
- default?: boolean;
16
- alias?: string;
17
- type?: boolean;
18
- }
19
- type TypescriptFileImports = Record<string, null | string | Array<TypescriptFileImportItem | string>>;
20
- //#endregion
21
- export { ComponentProps, TypescriptFileImportItem, TypescriptFileImports };
@@ -1,2 +0,0 @@
1
- import { ComponentProps, TypescriptFileImportItem, TypescriptFileImports } from "./components.cjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "./plugin.cjs";
@@ -1,2 +0,0 @@
1
- import { ComponentProps, TypescriptFileImportItem, TypescriptFileImports } from "./components.mjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "./plugin.mjs";
@@ -1,36 +0,0 @@
1
- import { PluginContext } from "../../../powerlines/src/types/context.cjs";
2
- import { BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.cjs";
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,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,26 +0,0 @@
1
- import { TSDocModuleProps } from "./tsdoc.cjs";
2
- import { TypescriptFileProps } from "./typescript-file.cjs";
3
- import "@alloy-js/core";
4
-
5
- //#region ../plugin-alloy/src/typescript/components/builtin-file.d.ts
6
- type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
7
- /**
8
- * The runtime module identifier.
9
- *
10
- * @remarks
11
- * This value will be included after the \`storm:\` prefix in the import statement.
12
- */
13
- id: string;
14
- /**
15
- * The description for the builtin module.
16
- */
17
- description?: string;
18
- /**
19
- * Whether the file is a TSX file.
20
- *
21
- * @defaultValue false
22
- */
23
- tsx?: boolean;
24
- };
25
- //#endregion
26
- export { BuiltinFileProps };
@@ -1,26 +0,0 @@
1
- import { TSDocModuleProps } from "./tsdoc.mjs";
2
- import { TypescriptFileProps } from "./typescript-file.mjs";
3
- import "@alloy-js/core";
4
-
5
- //#region ../plugin-alloy/src/typescript/components/builtin-file.d.ts
6
- type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
7
- /**
8
- * The runtime module identifier.
9
- *
10
- * @remarks
11
- * This value will be included after the \`storm:\` prefix in the import statement.
12
- */
13
- id: string;
14
- /**
15
- * The description for the builtin module.
16
- */
17
- description?: string;
18
- /**
19
- * Whether the file is a TSX file.
20
- *
21
- * @defaultValue false
22
- */
23
- tsx?: boolean;
24
- };
25
- //#endregion
26
- export { BuiltinFileProps };
@@ -1,37 +0,0 @@
1
- import { ComponentProps } from "../../types/components.cjs";
2
- import { Children } from "@alloy-js/core";
3
- import "@alloy-js/typescript";
4
- import "@powerlines/deepkit/vendor/type";
5
-
6
- //#region ../plugin-alloy/src/typescript/components/tsdoc.d.ts
7
-
8
- interface TSDocModuleProps extends ComponentProps {
9
- /**
10
- * The prefix for the builtin module name
11
- *
12
- * @remarks
13
- * This value is populated from the Powerlines configuration output builtin prefix by default.
14
- *
15
- * @example
16
- * ```ts
17
- * /**
18
- * @module powerlines:my-module
19
- * \/
20
- * ```
21
- */
22
- prefix?: string;
23
- /**
24
- * The name of the module
25
- *
26
- * @remarks
27
- * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
28
- *
29
- * @example
30
- * ```ts
31
- * import { MyModule } from "powerlines:my-module";
32
- * ```
33
- */
34
- name: Children;
35
- }
36
- //#endregion
37
- export { TSDocModuleProps };
@@ -1,37 +0,0 @@
1
- import { ComponentProps } from "../../types/components.mjs";
2
- import { ReflectionKind } from "@powerlines/deepkit/vendor/type";
3
- import { Children } from "@alloy-js/core";
4
- import "@alloy-js/typescript";
5
-
6
- //#region ../plugin-alloy/src/typescript/components/tsdoc.d.ts
7
-
8
- interface TSDocModuleProps extends ComponentProps {
9
- /**
10
- * The prefix for the builtin module name
11
- *
12
- * @remarks
13
- * This value is populated from the Powerlines configuration output builtin prefix by default.
14
- *
15
- * @example
16
- * ```ts
17
- * /**
18
- * @module powerlines:my-module
19
- * \/
20
- * ```
21
- */
22
- prefix?: string;
23
- /**
24
- * The name of the module
25
- *
26
- * @remarks
27
- * This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
28
- *
29
- * @example
30
- * ```ts
31
- * import { MyModule } from "powerlines:my-module";
32
- * ```
33
- */
34
- name: Children;
35
- }
36
- //#endregion
37
- export { TSDocModuleProps };
@@ -1,16 +0,0 @@
1
- import { ComponentProps, TypescriptFileImports } from "../../types/components.cjs";
2
- import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
3
- import { Children } from "@alloy-js/core";
4
- import "@alloy-js/typescript";
5
-
6
- //#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
7
- type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
8
- hashbang?: Children | true;
9
- header?: Children;
10
- imports?: TypescriptFileImports;
11
- builtinImports?: TypescriptFileImports;
12
- export?: boolean | string;
13
- tsx?: boolean;
14
- };
15
- //#endregion
16
- export { TypescriptFileProps };
@@ -1,16 +0,0 @@
1
- import { ComponentProps, TypescriptFileImports } from "../../types/components.mjs";
2
- import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
3
- import { Children } from "@alloy-js/core";
4
- import "@alloy-js/typescript";
5
-
6
- //#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
7
- type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
8
- hashbang?: Children | true;
9
- header?: Children;
10
- imports?: TypescriptFileImports;
11
- builtinImports?: TypescriptFileImports;
12
- export?: boolean | string;
13
- tsx?: boolean;
14
- };
15
- //#endregion
16
- export { TypescriptFileProps };
@@ -1,38 +0,0 @@
1
- import { TOCOptions } from "./toc.cjs";
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,40 +0,0 @@
1
- import "../../../powerlines/src/types/context.mjs";
2
- import "../../../powerlines/src/types/config.mjs";
3
- import "../../../powerlines/src/types/resolved.mjs";
4
- import { TOCOptions } from "./toc.mjs";
5
- import { Config } from "automd";
6
-
7
- //#region ../plugin-automd/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", "\{framework\}"]
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
- //#endregion
40
- 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,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 +0,0 @@
1
- import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "./plugin.mjs";
@@ -1,15 +0,0 @@
1
- import { PluginContext } from "../../../powerlines/src/types/context.cjs";
2
- import { BabelUserConfig, UserConfig } from "../../../powerlines/src/types/config.cjs";
3
- import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.cjs";
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,15 +0,0 @@
1
- import { PluginContext } from "../../../powerlines/src/types/context.mjs";
2
- import { BabelUserConfig, UserConfig } from "../../../powerlines/src/types/config.mjs";
3
- import { BabelResolvedConfig, ResolvedConfig } from "../../../powerlines/src/types/resolved.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 };