@powerlines/plugin-react 0.1.37 → 0.1.39
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/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/react-optimized.d.cts +3 -3
- package/dist/components/react-optimized.d.ts +3 -3
- package/dist/{fs-Y3B84fcf.d.cts → fs-ECFlqnPg.d.cts} +132 -179
- package/dist/{fs-Y3B84fcf.d.ts → fs-ECFlqnPg.d.ts} +132 -179
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +1 -1
- package/dist/{runtime-Bcl8KoqS.d.ts → runtime-BBoNbrsK.d.ts} +59 -54
- package/dist/{runtime-Djft1hbQ.d.cts → runtime-DuDyyI3B.d.cts} +59 -54
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.ts +2 -3
- package/dist/types/plugin.d.cts +4 -4
- package/dist/types/plugin.d.ts +4 -4
- package/dist/types/runtime.d.cts +2 -3
- package/dist/types/runtime.d.ts +2 -3
- package/package.json +14 -14
|
@@ -14,7 +14,7 @@ import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configura
|
|
|
14
14
|
import { AssetGlob } from '@stryke/types/file';
|
|
15
15
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
16
16
|
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
17
|
-
import {
|
|
17
|
+
import { S as StoragePort, a as StoragePreset, V as VirtualFileSystemInterface, R as ResolveOptions, b as VirtualFile } from './fs-ECFlqnPg.js';
|
|
18
18
|
import { ArrayValues } from '@stryke/types/array';
|
|
19
19
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
20
20
|
import ts from 'typescript';
|
|
@@ -187,7 +187,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
187
187
|
output?: string;
|
|
188
188
|
}
|
|
189
189
|
type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
|
|
190
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "
|
|
190
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
|
|
191
191
|
/**
|
|
192
192
|
* The name of the environment
|
|
193
193
|
*/
|
|
@@ -198,9 +198,9 @@ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "
|
|
|
198
198
|
preview?: ResolvedPreviewOptions;
|
|
199
199
|
};
|
|
200
200
|
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
201
|
-
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
201
|
+
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
|
|
202
202
|
assets: ResolvedAssetGlob[];
|
|
203
|
-
}>;
|
|
203
|
+
}> & Pick<OutputConfig, "storage">;
|
|
204
204
|
/**
|
|
205
205
|
* The resolved options for the Powerlines project configuration.
|
|
206
206
|
*/
|
|
@@ -465,7 +465,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
465
465
|
* @param other - The other plugin to compare against.
|
|
466
466
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
467
467
|
*/
|
|
468
|
-
dedupe?: false | ((other: Plugin<
|
|
468
|
+
dedupe?: false | ((other: Plugin<TContext>) => boolean);
|
|
469
469
|
/**
|
|
470
470
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
471
471
|
*/
|
|
@@ -476,7 +476,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
476
476
|
* @param environment - The environment to check.
|
|
477
477
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
478
478
|
*/
|
|
479
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<
|
|
479
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
type ReflectionMode = "default" | "explicit" | "never";
|
|
@@ -598,13 +598,16 @@ interface OutputConfig {
|
|
|
598
598
|
*
|
|
599
599
|
* @defaultValue "\{projectRoot\}/dist"
|
|
600
600
|
*/
|
|
601
|
-
|
|
601
|
+
buildPath?: string;
|
|
602
602
|
/**
|
|
603
|
-
* The
|
|
603
|
+
* The folder where the generated runtime artifacts will be located
|
|
604
604
|
*
|
|
605
|
-
* @
|
|
605
|
+
* @remarks
|
|
606
|
+
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
607
|
+
*
|
|
608
|
+
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
606
609
|
*/
|
|
607
|
-
|
|
610
|
+
artifactsPath?: string;
|
|
608
611
|
/**
|
|
609
612
|
* The path of the generated runtime declaration file relative to the workspace root.
|
|
610
613
|
*
|
|
@@ -620,15 +623,6 @@ interface OutputConfig {
|
|
|
620
623
|
* @defaultValue "powerlines"
|
|
621
624
|
*/
|
|
622
625
|
builtinPrefix?: string;
|
|
623
|
-
/**
|
|
624
|
-
* The folder where the generated runtime artifacts will be located
|
|
625
|
-
*
|
|
626
|
-
* @remarks
|
|
627
|
-
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
628
|
-
*
|
|
629
|
-
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
630
|
-
*/
|
|
631
|
-
artifactsFolder?: string;
|
|
632
626
|
/**
|
|
633
627
|
* The module format of the output files
|
|
634
628
|
*
|
|
@@ -645,42 +639,21 @@ interface OutputConfig {
|
|
|
645
639
|
* The assets can be specified as a string (path to the asset) or as an object with a `glob` property (to match multiple files). The paths are relative to the project root directory.
|
|
646
640
|
*/
|
|
647
641
|
assets?: Array<string | AssetGlob>;
|
|
648
|
-
}
|
|
649
|
-
interface BaseConfig {
|
|
650
642
|
/**
|
|
651
|
-
*
|
|
652
|
-
*/
|
|
653
|
-
name?: string;
|
|
654
|
-
/**
|
|
655
|
-
* The project display title
|
|
643
|
+
* A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
|
|
656
644
|
*
|
|
657
645
|
* @remarks
|
|
658
|
-
*
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* A description of the project
|
|
646
|
+
* If a string preset is provided, it must be one of the following values:
|
|
647
|
+
* - `"virtual"`: Uses the local file system for storage.
|
|
648
|
+
* - `"fs"`: Uses an in-memory virtual file system for storage.
|
|
663
649
|
*
|
|
664
|
-
* @
|
|
665
|
-
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
666
|
-
*/
|
|
667
|
-
description?: string;
|
|
668
|
-
/**
|
|
669
|
-
* The log level to use for the Powerlines processes.
|
|
650
|
+
* If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
|
|
670
651
|
*
|
|
671
|
-
* @defaultValue "
|
|
672
|
-
*/
|
|
673
|
-
logLevel?: LogLevelLabel | null;
|
|
674
|
-
/**
|
|
675
|
-
* A custom logger function to use for logging messages
|
|
676
|
-
*/
|
|
677
|
-
customLogger?: LogFn;
|
|
678
|
-
/**
|
|
679
|
-
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
680
|
-
*
|
|
681
|
-
* @defaultValue "production"
|
|
652
|
+
* @defaultValue "virtual"
|
|
682
653
|
*/
|
|
683
|
-
|
|
654
|
+
storage?: StoragePort | StoragePreset;
|
|
655
|
+
}
|
|
656
|
+
interface BaseConfig {
|
|
684
657
|
/**
|
|
685
658
|
* The entry point(s) for the application
|
|
686
659
|
*/
|
|
@@ -764,6 +737,40 @@ interface EnvironmentConfig extends BaseConfig {
|
|
|
764
737
|
consumer?: "client" | "server";
|
|
765
738
|
}
|
|
766
739
|
interface CommonUserConfig extends BaseConfig {
|
|
740
|
+
/**
|
|
741
|
+
* The name of the project
|
|
742
|
+
*/
|
|
743
|
+
name?: string;
|
|
744
|
+
/**
|
|
745
|
+
* The project display title
|
|
746
|
+
*
|
|
747
|
+
* @remarks
|
|
748
|
+
* This option is used in documentation generation and other places where a human-readable title is needed.
|
|
749
|
+
*/
|
|
750
|
+
title?: string;
|
|
751
|
+
/**
|
|
752
|
+
* A description of the project
|
|
753
|
+
*
|
|
754
|
+
* @remarks
|
|
755
|
+
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
756
|
+
*/
|
|
757
|
+
description?: string;
|
|
758
|
+
/**
|
|
759
|
+
* The log level to use for the Powerlines processes.
|
|
760
|
+
*
|
|
761
|
+
* @defaultValue "info"
|
|
762
|
+
*/
|
|
763
|
+
logLevel?: LogLevelLabel | null;
|
|
764
|
+
/**
|
|
765
|
+
* A custom logger function to use for logging messages
|
|
766
|
+
*/
|
|
767
|
+
customLogger?: LogFn;
|
|
768
|
+
/**
|
|
769
|
+
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
770
|
+
*
|
|
771
|
+
* @defaultValue "production"
|
|
772
|
+
*/
|
|
773
|
+
mode?: "development" | "test" | "production";
|
|
767
774
|
/**
|
|
768
775
|
* The type of project being built
|
|
769
776
|
*
|
|
@@ -814,7 +821,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
814
821
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
815
822
|
*
|
|
816
823
|
* @remarks
|
|
817
|
-
* If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.
|
|
824
|
+
* 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.
|
|
818
825
|
*
|
|
819
826
|
* @defaultValue "powerlines"
|
|
820
827
|
*/
|
|
@@ -1081,17 +1088,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1081
1088
|
* @param code - The source code of the builtin file
|
|
1082
1089
|
* @param id - The unique identifier of the builtin file
|
|
1083
1090
|
* @param path - An optional path to write the builtin file to
|
|
1084
|
-
* @param options - Options for writing the file
|
|
1085
1091
|
*/
|
|
1086
|
-
emitBuiltin: (code: string, id: string, path?: string
|
|
1092
|
+
emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
|
|
1087
1093
|
/**
|
|
1088
1094
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1089
1095
|
*
|
|
1090
1096
|
* @param code - The source code of the entry file
|
|
1091
1097
|
* @param path - An optional path to write the entry file to
|
|
1092
|
-
* @param options - Options for writing the file
|
|
1093
1098
|
*/
|
|
1094
|
-
emitEntry: (code: string, path: string
|
|
1099
|
+
emitEntry: (code: string, path: string) => Promise<void>;
|
|
1095
1100
|
/**
|
|
1096
1101
|
* A function to update the context fields using a new user configuration options
|
|
1097
1102
|
*/
|
|
@@ -14,7 +14,7 @@ import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configura
|
|
|
14
14
|
import { AssetGlob } from '@stryke/types/file';
|
|
15
15
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
16
16
|
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
17
|
-
import {
|
|
17
|
+
import { S as StoragePort, a as StoragePreset, V as VirtualFileSystemInterface, R as ResolveOptions, b as VirtualFile } from './fs-ECFlqnPg.cjs';
|
|
18
18
|
import { ArrayValues } from '@stryke/types/array';
|
|
19
19
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
20
20
|
import ts from 'typescript';
|
|
@@ -187,7 +187,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
187
187
|
output?: string;
|
|
188
188
|
}
|
|
189
189
|
type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
|
|
190
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "
|
|
190
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
|
|
191
191
|
/**
|
|
192
192
|
* The name of the environment
|
|
193
193
|
*/
|
|
@@ -198,9 +198,9 @@ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "
|
|
|
198
198
|
preview?: ResolvedPreviewOptions;
|
|
199
199
|
};
|
|
200
200
|
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
201
|
-
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
201
|
+
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
|
|
202
202
|
assets: ResolvedAssetGlob[];
|
|
203
|
-
}>;
|
|
203
|
+
}> & Pick<OutputConfig, "storage">;
|
|
204
204
|
/**
|
|
205
205
|
* The resolved options for the Powerlines project configuration.
|
|
206
206
|
*/
|
|
@@ -465,7 +465,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
465
465
|
* @param other - The other plugin to compare against.
|
|
466
466
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
467
467
|
*/
|
|
468
|
-
dedupe?: false | ((other: Plugin<
|
|
468
|
+
dedupe?: false | ((other: Plugin<TContext>) => boolean);
|
|
469
469
|
/**
|
|
470
470
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
471
471
|
*/
|
|
@@ -476,7 +476,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
476
476
|
* @param environment - The environment to check.
|
|
477
477
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
478
478
|
*/
|
|
479
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<
|
|
479
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
type ReflectionMode = "default" | "explicit" | "never";
|
|
@@ -598,13 +598,16 @@ interface OutputConfig {
|
|
|
598
598
|
*
|
|
599
599
|
* @defaultValue "\{projectRoot\}/dist"
|
|
600
600
|
*/
|
|
601
|
-
|
|
601
|
+
buildPath?: string;
|
|
602
602
|
/**
|
|
603
|
-
* The
|
|
603
|
+
* The folder where the generated runtime artifacts will be located
|
|
604
604
|
*
|
|
605
|
-
* @
|
|
605
|
+
* @remarks
|
|
606
|
+
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
607
|
+
*
|
|
608
|
+
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
606
609
|
*/
|
|
607
|
-
|
|
610
|
+
artifactsPath?: string;
|
|
608
611
|
/**
|
|
609
612
|
* The path of the generated runtime declaration file relative to the workspace root.
|
|
610
613
|
*
|
|
@@ -620,15 +623,6 @@ interface OutputConfig {
|
|
|
620
623
|
* @defaultValue "powerlines"
|
|
621
624
|
*/
|
|
622
625
|
builtinPrefix?: string;
|
|
623
|
-
/**
|
|
624
|
-
* The folder where the generated runtime artifacts will be located
|
|
625
|
-
*
|
|
626
|
-
* @remarks
|
|
627
|
-
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
628
|
-
*
|
|
629
|
-
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
630
|
-
*/
|
|
631
|
-
artifactsFolder?: string;
|
|
632
626
|
/**
|
|
633
627
|
* The module format of the output files
|
|
634
628
|
*
|
|
@@ -645,42 +639,21 @@ interface OutputConfig {
|
|
|
645
639
|
* The assets can be specified as a string (path to the asset) or as an object with a `glob` property (to match multiple files). The paths are relative to the project root directory.
|
|
646
640
|
*/
|
|
647
641
|
assets?: Array<string | AssetGlob>;
|
|
648
|
-
}
|
|
649
|
-
interface BaseConfig {
|
|
650
642
|
/**
|
|
651
|
-
*
|
|
652
|
-
*/
|
|
653
|
-
name?: string;
|
|
654
|
-
/**
|
|
655
|
-
* The project display title
|
|
643
|
+
* A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
|
|
656
644
|
*
|
|
657
645
|
* @remarks
|
|
658
|
-
*
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* A description of the project
|
|
646
|
+
* If a string preset is provided, it must be one of the following values:
|
|
647
|
+
* - `"virtual"`: Uses the local file system for storage.
|
|
648
|
+
* - `"fs"`: Uses an in-memory virtual file system for storage.
|
|
663
649
|
*
|
|
664
|
-
* @
|
|
665
|
-
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
666
|
-
*/
|
|
667
|
-
description?: string;
|
|
668
|
-
/**
|
|
669
|
-
* The log level to use for the Powerlines processes.
|
|
650
|
+
* If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
|
|
670
651
|
*
|
|
671
|
-
* @defaultValue "
|
|
672
|
-
*/
|
|
673
|
-
logLevel?: LogLevelLabel | null;
|
|
674
|
-
/**
|
|
675
|
-
* A custom logger function to use for logging messages
|
|
676
|
-
*/
|
|
677
|
-
customLogger?: LogFn;
|
|
678
|
-
/**
|
|
679
|
-
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
680
|
-
*
|
|
681
|
-
* @defaultValue "production"
|
|
652
|
+
* @defaultValue "virtual"
|
|
682
653
|
*/
|
|
683
|
-
|
|
654
|
+
storage?: StoragePort | StoragePreset;
|
|
655
|
+
}
|
|
656
|
+
interface BaseConfig {
|
|
684
657
|
/**
|
|
685
658
|
* The entry point(s) for the application
|
|
686
659
|
*/
|
|
@@ -764,6 +737,40 @@ interface EnvironmentConfig extends BaseConfig {
|
|
|
764
737
|
consumer?: "client" | "server";
|
|
765
738
|
}
|
|
766
739
|
interface CommonUserConfig extends BaseConfig {
|
|
740
|
+
/**
|
|
741
|
+
* The name of the project
|
|
742
|
+
*/
|
|
743
|
+
name?: string;
|
|
744
|
+
/**
|
|
745
|
+
* The project display title
|
|
746
|
+
*
|
|
747
|
+
* @remarks
|
|
748
|
+
* This option is used in documentation generation and other places where a human-readable title is needed.
|
|
749
|
+
*/
|
|
750
|
+
title?: string;
|
|
751
|
+
/**
|
|
752
|
+
* A description of the project
|
|
753
|
+
*
|
|
754
|
+
* @remarks
|
|
755
|
+
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
756
|
+
*/
|
|
757
|
+
description?: string;
|
|
758
|
+
/**
|
|
759
|
+
* The log level to use for the Powerlines processes.
|
|
760
|
+
*
|
|
761
|
+
* @defaultValue "info"
|
|
762
|
+
*/
|
|
763
|
+
logLevel?: LogLevelLabel | null;
|
|
764
|
+
/**
|
|
765
|
+
* A custom logger function to use for logging messages
|
|
766
|
+
*/
|
|
767
|
+
customLogger?: LogFn;
|
|
768
|
+
/**
|
|
769
|
+
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
770
|
+
*
|
|
771
|
+
* @defaultValue "production"
|
|
772
|
+
*/
|
|
773
|
+
mode?: "development" | "test" | "production";
|
|
767
774
|
/**
|
|
768
775
|
* The type of project being built
|
|
769
776
|
*
|
|
@@ -814,7 +821,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
814
821
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
815
822
|
*
|
|
816
823
|
* @remarks
|
|
817
|
-
* If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.
|
|
824
|
+
* 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.
|
|
818
825
|
*
|
|
819
826
|
* @defaultValue "powerlines"
|
|
820
827
|
*/
|
|
@@ -1081,17 +1088,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1081
1088
|
* @param code - The source code of the builtin file
|
|
1082
1089
|
* @param id - The unique identifier of the builtin file
|
|
1083
1090
|
* @param path - An optional path to write the builtin file to
|
|
1084
|
-
* @param options - Options for writing the file
|
|
1085
1091
|
*/
|
|
1086
|
-
emitBuiltin: (code: string, id: string, path?: string
|
|
1092
|
+
emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
|
|
1087
1093
|
/**
|
|
1088
1094
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1089
1095
|
*
|
|
1090
1096
|
* @param code - The source code of the entry file
|
|
1091
1097
|
* @param path - An optional path to write the entry file to
|
|
1092
|
-
* @param options - Options for writing the file
|
|
1093
1098
|
*/
|
|
1094
|
-
emitEntry: (code: string, path: string
|
|
1099
|
+
emitEntry: (code: string, path: string) => Promise<void>;
|
|
1095
1100
|
/**
|
|
1096
1101
|
* A function to update the context fields using a new user configuration options
|
|
1097
1102
|
*/
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig } from './plugin.cjs';
|
|
2
2
|
export { ReactEnvInterface, __ΩReactEnvInterface } from './runtime.cjs';
|
|
3
|
-
import '../runtime-
|
|
3
|
+
import '../runtime-DuDyyI3B.cjs';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
@@ -17,9 +17,8 @@ import '@stryke/types/configuration';
|
|
|
17
17
|
import '@stryke/types/file';
|
|
18
18
|
import 'vite';
|
|
19
19
|
import '@babel/helper-plugin-utils';
|
|
20
|
-
import '../fs-
|
|
20
|
+
import '../fs-ECFlqnPg.cjs';
|
|
21
21
|
import '@stryke/fs/resolve';
|
|
22
|
-
import 'node:fs';
|
|
23
22
|
import '@stryke/types/array';
|
|
24
23
|
import '@stryke/types/tsconfig';
|
|
25
24
|
import 'typescript';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, __ΩReactCompilerOptions, __ΩReactPluginContext, __ΩReactPluginOptions, __ΩReactPluginResolvedConfig, __ΩReactPluginUserConfig } from './plugin.js';
|
|
2
2
|
export { ReactEnvInterface, __ΩReactEnvInterface } from './runtime.js';
|
|
3
|
-
import '../runtime-
|
|
3
|
+
import '../runtime-BBoNbrsK.js';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
@@ -17,9 +17,8 @@ import '@stryke/types/configuration';
|
|
|
17
17
|
import '@stryke/types/file';
|
|
18
18
|
import 'vite';
|
|
19
19
|
import '@babel/helper-plugin-utils';
|
|
20
|
-
import '../fs-
|
|
20
|
+
import '../fs-ECFlqnPg.js';
|
|
21
21
|
import '@stryke/fs/resolve';
|
|
22
|
-
import 'node:fs';
|
|
23
22
|
import '@stryke/types/array';
|
|
24
23
|
import '@stryke/types/tsconfig';
|
|
25
24
|
import 'typescript';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
1
|
+
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-DuDyyI3B.cjs';
|
|
2
2
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
3
3
|
import { ReflectionClass } from '@deepkit/type';
|
|
4
4
|
import * as $ from '@stryke/capnp';
|
|
@@ -20,9 +20,8 @@ import '@storm-software/config/types';
|
|
|
20
20
|
import '@stryke/types/file';
|
|
21
21
|
import 'vite';
|
|
22
22
|
import '@babel/helper-plugin-utils';
|
|
23
|
-
import '../fs-
|
|
23
|
+
import '../fs-ECFlqnPg.cjs';
|
|
24
24
|
import '@stryke/fs/resolve';
|
|
25
|
-
import 'node:fs';
|
|
26
25
|
import '@stryke/types/array';
|
|
27
26
|
import '@stryke/types/tsconfig';
|
|
28
27
|
import 'typescript';
|
|
@@ -1783,7 +1782,8 @@ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
|
|
|
1783
1782
|
*/
|
|
1784
1783
|
react: ReactPluginOptions;
|
|
1785
1784
|
};
|
|
1786
|
-
|
|
1785
|
+
interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {
|
|
1786
|
+
}
|
|
1787
1787
|
declare type __ΩReactCompilerOptions = any[];
|
|
1788
1788
|
declare type __ΩReactPluginOptions = any[];
|
|
1789
1789
|
declare type __ΩReactPluginUserConfig = any[];
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
1
|
+
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, b as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-BBoNbrsK.js';
|
|
2
2
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
3
3
|
import { ReflectionClass } from '@deepkit/type';
|
|
4
4
|
import * as $ from '@stryke/capnp';
|
|
@@ -20,9 +20,8 @@ import '@storm-software/config/types';
|
|
|
20
20
|
import '@stryke/types/file';
|
|
21
21
|
import 'vite';
|
|
22
22
|
import '@babel/helper-plugin-utils';
|
|
23
|
-
import '../fs-
|
|
23
|
+
import '../fs-ECFlqnPg.js';
|
|
24
24
|
import '@stryke/fs/resolve';
|
|
25
|
-
import 'node:fs';
|
|
26
25
|
import '@stryke/types/array';
|
|
27
26
|
import '@stryke/types/tsconfig';
|
|
28
27
|
import 'typescript';
|
|
@@ -1783,7 +1782,8 @@ type ReactPluginResolvedConfig = EnvPluginResolvedConfig & {
|
|
|
1783
1782
|
*/
|
|
1784
1783
|
react: ReactPluginOptions;
|
|
1785
1784
|
};
|
|
1786
|
-
|
|
1785
|
+
interface ReactPluginContext<TResolvedConfig extends ReactPluginResolvedConfig = ReactPluginResolvedConfig> extends EnvPluginContext<TResolvedConfig> {
|
|
1786
|
+
}
|
|
1787
1787
|
declare type __ΩReactCompilerOptions = any[];
|
|
1788
1788
|
declare type __ΩReactPluginOptions = any[];
|
|
1789
1789
|
declare type __ΩReactPluginUserConfig = any[];
|
package/dist/types/runtime.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EnvInterface } from '../runtime-
|
|
1
|
+
import { E as EnvInterface } from '../runtime-DuDyyI3B.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/package-json';
|
|
@@ -15,9 +15,8 @@ import '@stryke/types/configuration';
|
|
|
15
15
|
import '@stryke/types/file';
|
|
16
16
|
import 'vite';
|
|
17
17
|
import '@babel/helper-plugin-utils';
|
|
18
|
-
import '../fs-
|
|
18
|
+
import '../fs-ECFlqnPg.cjs';
|
|
19
19
|
import '@stryke/fs/resolve';
|
|
20
|
-
import 'node:fs';
|
|
21
20
|
import '@stryke/types/array';
|
|
22
21
|
import '@stryke/types/tsconfig';
|
|
23
22
|
import 'typescript';
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EnvInterface } from '../runtime-
|
|
1
|
+
import { E as EnvInterface } from '../runtime-BBoNbrsK.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/package-json';
|
|
@@ -15,9 +15,8 @@ import '@stryke/types/configuration';
|
|
|
15
15
|
import '@stryke/types/file';
|
|
16
16
|
import 'vite';
|
|
17
17
|
import '@babel/helper-plugin-utils';
|
|
18
|
-
import '../fs-
|
|
18
|
+
import '../fs-ECFlqnPg.js';
|
|
19
19
|
import '@stryke/fs/resolve';
|
|
20
|
-
import 'node:fs';
|
|
21
20
|
import '@stryke/types/array';
|
|
22
21
|
import '@stryke/types/tsconfig';
|
|
23
22
|
import 'typescript';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a React application.",
|
|
6
6
|
"repository": {
|
|
@@ -124,25 +124,25 @@
|
|
|
124
124
|
"react-dom": { "optional": false }
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@storm-software/config-tools": "^1.188.
|
|
128
|
-
"@stryke/cli": "^0.12.
|
|
129
|
-
"@stryke/convert": "^0.6.
|
|
130
|
-
"@stryke/fs": "^0.33.
|
|
131
|
-
"@stryke/path": "^0.21.
|
|
127
|
+
"@storm-software/config-tools": "^1.188.49",
|
|
128
|
+
"@stryke/cli": "^0.12.14",
|
|
129
|
+
"@stryke/convert": "^0.6.8",
|
|
130
|
+
"@stryke/fs": "^0.33.4",
|
|
131
|
+
"@stryke/path": "^0.21.2",
|
|
132
132
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
133
|
-
"@powerlines/alloy": "^0.11.
|
|
134
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
135
|
-
"@powerlines/plugin-env": "^0.13.
|
|
136
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
133
|
+
"@powerlines/alloy": "^0.11.48",
|
|
134
|
+
"@powerlines/plugin-babel": "^0.12.48",
|
|
135
|
+
"@powerlines/plugin-env": "^0.13.45",
|
|
136
|
+
"@powerlines/plugin-plugin": "^0.11.47",
|
|
137
137
|
"@vitejs/plugin-react": "^5.1.1",
|
|
138
138
|
"defu": "^6.1.4",
|
|
139
|
-
"powerlines": "^0.
|
|
139
|
+
"powerlines": "^0.25.1"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
|
-
"@powerlines/nx": "^0.10.
|
|
143
|
-
"@storm-software/tsup": "^0.2.
|
|
142
|
+
"@powerlines/nx": "^0.10.39",
|
|
143
|
+
"@storm-software/tsup": "^0.2.47",
|
|
144
144
|
"@types/node": "^24.10.1"
|
|
145
145
|
},
|
|
146
146
|
"publishConfig": { "access": "public" },
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "de1daa466d1524b287e2748490c1e56ab9002b07"
|
|
148
148
|
}
|