@powerlines/plugin-react 0.1.698 → 0.1.700
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/index.cjs +4 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +3 -1
- package/dist/schemas/env.cjs +15 -0
- package/dist/schemas/env.d.cts +132 -0
- package/dist/schemas/env.d.cts.map +1 -0
- package/dist/schemas/env.d.mts +132 -0
- package/dist/{types → schemas}/env.d.mts.map +1 -1
- package/dist/schemas/env.mjs +14 -0
- package/dist/schemas/env.mjs.map +1 -0
- package/dist/schemas/index.cjs +3 -0
- package/dist/schemas/index.d.cts +2 -0
- package/dist/schemas/index.d.mts +2 -0
- package/dist/schemas/index.mjs +3 -0
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/package.json +17 -30
- package/dist/types/env.cjs +0 -0
- package/dist/types/env.d.cts +0 -14
- package/dist/types/env.d.cts.map +0 -1
- package/dist/types/env.d.mts +0 -14
- package/dist/types/env.mjs +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2,6 +2,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
2
2
|
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_components_react_optimized = require('./components/react-optimized.cjs');
|
|
4
4
|
require('./components/index.cjs');
|
|
5
|
+
const require_env = require('./schemas/env.cjs');
|
|
6
|
+
require('./schemas/index.cjs');
|
|
5
7
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
8
|
let _power_plant_schema = require("@power-plant/schema");
|
|
7
9
|
let _powerlines_core_lib_typescript = require("@powerlines/core/lib/typescript");
|
|
@@ -109,4 +111,5 @@ const plugin = (options = {}) => {
|
|
|
109
111
|
//#endregion
|
|
110
112
|
exports.ReactOptimizedBuiltin = require_components_react_optimized.ReactOptimizedBuiltin;
|
|
111
113
|
exports.default = plugin;
|
|
112
|
-
exports.plugin = plugin;
|
|
114
|
+
exports.plugin = plugin;
|
|
115
|
+
exports.reactEnvSchema = require_env.reactEnvSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps } from "./components/react-optimized.cjs";
|
|
2
2
|
import "./components/index.cjs";
|
|
3
3
|
import { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from "./types/plugin.cjs";
|
|
4
|
-
import { ReactEnv } from "./
|
|
4
|
+
import { ReactEnv, reactEnvSchema } from "./schemas/env.cjs";
|
|
5
|
+
import "./schemas/index.cjs";
|
|
5
6
|
import "./types/index.cjs";
|
|
6
7
|
import { Plugin } from "powerlines";
|
|
7
8
|
//#region src/index.d.ts
|
|
@@ -15,5 +16,5 @@ declare module "powerlines" {
|
|
|
15
16
|
*/
|
|
16
17
|
declare const plugin: <TContext extends ReactPluginContext = ReactPluginContext>(options?: ReactPluginOptions) => Plugin<TContext>[];
|
|
17
18
|
//#endregion
|
|
18
|
-
export { ReactCompilerOptions, ReactEnv, ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, plugin as default, plugin };
|
|
19
|
+
export { ReactCompilerOptions, ReactEnv, ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, plugin as default, plugin, reactEnvSchema };
|
|
19
20
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;;;YAuCY;IACR,QAAQ;;;;;;cAOC,SACX,iBAAiB,qBAAqB,oBAEtC,UAAS,uBAqNJ,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReactOptimizedBuiltin, ReactOptimizedBuiltinProps } from "./components/react-optimized.mjs";
|
|
2
2
|
import "./components/index.mjs";
|
|
3
3
|
import { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from "./types/plugin.mjs";
|
|
4
|
-
import { ReactEnv } from "./
|
|
4
|
+
import { ReactEnv, reactEnvSchema } from "./schemas/env.mjs";
|
|
5
|
+
import "./schemas/index.mjs";
|
|
5
6
|
import "./types/index.mjs";
|
|
6
7
|
import { Plugin } from "powerlines";
|
|
7
8
|
//#region src/index.d.ts
|
|
@@ -15,5 +16,5 @@ declare module "powerlines" {
|
|
|
15
16
|
*/
|
|
16
17
|
declare const plugin: <TContext extends ReactPluginContext = ReactPluginContext>(options?: ReactPluginOptions) => Plugin<TContext>[];
|
|
17
18
|
//#endregion
|
|
18
|
-
export { ReactCompilerOptions, ReactEnv, ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, plugin as default, plugin };
|
|
19
|
+
export { ReactCompilerOptions, ReactEnv, ReactOptimizedBuiltin, ReactOptimizedBuiltinProps, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig, plugin as default, plugin, reactEnvSchema };
|
|
19
20
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactOptimizedBuiltin } from "./components/react-optimized.mjs";
|
|
2
2
|
import "./components/index.mjs";
|
|
3
|
+
import { reactEnvSchema } from "./schemas/env.mjs";
|
|
4
|
+
import "./schemas/index.mjs";
|
|
3
5
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
6
|
import { addProperty } from "@power-plant/schema";
|
|
5
7
|
import { isMatchFound } from "@powerlines/core/lib/typescript";
|
|
@@ -99,5 +101,5 @@ const plugin = (options = {}) => {
|
|
|
99
101
|
};
|
|
100
102
|
|
|
101
103
|
//#endregion
|
|
102
|
-
export { ReactOptimizedBuiltin, plugin as default, plugin };
|
|
104
|
+
export { ReactOptimizedBuiltin, plugin as default, plugin, reactEnvSchema };
|
|
103
105
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
2
|
+
let _powerlines_plugin_env_schemas_env = require("@powerlines/plugin-env/schemas/env");
|
|
3
|
+
let zod = require("zod");
|
|
4
|
+
zod = require_runtime.__toESM(zod, 1);
|
|
5
|
+
|
|
6
|
+
//#region src/schemas/env.ts
|
|
7
|
+
/**
|
|
8
|
+
* Zod schema for React plugin environment variables.
|
|
9
|
+
*/
|
|
10
|
+
const reactEnvSchema = _powerlines_plugin_env_schemas_env.envSchema.extend({ DISABLE_REACT_COMPILER: zod.boolean().meta({ description: "Disables the React compiler optimizations when set to true. This environment variable can be used to turn off the optimizations provided by the React compiler, which may be useful for debugging or development purposes." }) });
|
|
11
|
+
/**
|
|
12
|
+
* Inferred React environment configuration type from {@link reactEnvSchema}.
|
|
13
|
+
*/
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.reactEnvSchema = reactEnvSchema;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
//#region src/schemas/env.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Zod schema for React plugin environment variables.
|
|
5
|
+
*/
|
|
6
|
+
declare const reactEnvSchema: z.ZodObject<{
|
|
7
|
+
APP_NAME: z.ZodString;
|
|
8
|
+
APP_VERSION: z.ZodDefault<z.ZodString>;
|
|
9
|
+
BUILD_ID: z.ZodString;
|
|
10
|
+
BUILD_TIMESTAMP: z.ZodString;
|
|
11
|
+
BUILD_CHECKSUM: z.ZodString;
|
|
12
|
+
RELEASE_ID: z.ZodString;
|
|
13
|
+
RELEASE_TAG: z.ZodString;
|
|
14
|
+
ORGANIZATION: z.ZodString;
|
|
15
|
+
RUNTIME: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
nodejs: "nodejs";
|
|
17
|
+
deno: "deno";
|
|
18
|
+
workerd: "workerd";
|
|
19
|
+
browser: "browser";
|
|
20
|
+
}>>;
|
|
21
|
+
PLATFORM: z.ZodDefault<z.ZodEnum<{
|
|
22
|
+
browser: "browser";
|
|
23
|
+
node: "node";
|
|
24
|
+
neutral: "neutral";
|
|
25
|
+
}>>;
|
|
26
|
+
MODE: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
development: "development";
|
|
28
|
+
test: "test";
|
|
29
|
+
production: "production";
|
|
30
|
+
}>>;
|
|
31
|
+
ENVIRONMENT: z.ZodDefault<z.ZodString>;
|
|
32
|
+
DEBUG: z.ZodBoolean;
|
|
33
|
+
TEST: z.ZodBoolean;
|
|
34
|
+
MINIMAL: z.ZodBoolean;
|
|
35
|
+
NO_COLOR: z.ZodBoolean;
|
|
36
|
+
FORCE_COLOR: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
37
|
+
FORCE_HYPERLINK: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
38
|
+
AGENT_NAME: z.ZodOptional<z.ZodString>;
|
|
39
|
+
COLORTERM: z.ZodOptional<z.ZodString>;
|
|
40
|
+
TERM: z.ZodOptional<z.ZodString>;
|
|
41
|
+
TERM_PROGRAM: z.ZodOptional<z.ZodString>;
|
|
42
|
+
TERM_PROGRAM_VERSION: z.ZodOptional<z.ZodString>;
|
|
43
|
+
TERMINAL_EMULATOR: z.ZodOptional<z.ZodString>;
|
|
44
|
+
WT_SESSION: z.ZodOptional<z.ZodString>;
|
|
45
|
+
TERMINUS_SUBLIME: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
ConEmuTask: z.ZodOptional<z.ZodString>;
|
|
47
|
+
CURSOR_TRACE_ID: z.ZodOptional<z.ZodString>;
|
|
48
|
+
VTE_VERSION: z.ZodOptional<z.ZodString>;
|
|
49
|
+
STACKTRACE: z.ZodBoolean;
|
|
50
|
+
INCLUDE_ERROR_DATA: z.ZodBoolean;
|
|
51
|
+
ERROR_URL: z.ZodOptional<z.ZodString>;
|
|
52
|
+
DEFAULT_TIMEZONE: z.ZodDefault<z.ZodString>;
|
|
53
|
+
DEFAULT_LOCALE: z.ZodDefault<z.ZodString>;
|
|
54
|
+
LOG_LEVEL: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
55
|
+
error: "error";
|
|
56
|
+
warn: "warn";
|
|
57
|
+
info: "info";
|
|
58
|
+
debug: "debug";
|
|
59
|
+
}>>>;
|
|
60
|
+
CI: z.ZodBoolean;
|
|
61
|
+
RUN_ID: z.ZodOptional<z.ZodString>;
|
|
62
|
+
AGOLA_GIT_REF: z.ZodOptional<z.ZodString>;
|
|
63
|
+
AC_APPCIRCLE: z.ZodOptional<z.ZodString>;
|
|
64
|
+
APPVEYOR: z.ZodOptional<z.ZodString>;
|
|
65
|
+
CODEBUILD: z.ZodOptional<z.ZodString>;
|
|
66
|
+
TF_BUILD: z.ZodOptional<z.ZodString>;
|
|
67
|
+
bamboo_planKey: z.ZodOptional<z.ZodString>;
|
|
68
|
+
BITBUCKET_COMMIT: z.ZodOptional<z.ZodString>;
|
|
69
|
+
BITRISE_IO: z.ZodOptional<z.ZodString>;
|
|
70
|
+
BUDDY_WORKSPACE_ID: z.ZodOptional<z.ZodString>;
|
|
71
|
+
BUILDKITE: z.ZodOptional<z.ZodString>;
|
|
72
|
+
CIRCLECI: z.ZodOptional<z.ZodString>;
|
|
73
|
+
CIRRUS_CI: z.ZodOptional<z.ZodString>;
|
|
74
|
+
CF_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
75
|
+
CM_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
76
|
+
CI_NAME: z.ZodOptional<z.ZodString>;
|
|
77
|
+
DRONE: z.ZodOptional<z.ZodString>;
|
|
78
|
+
DSARI: z.ZodOptional<z.ZodString>;
|
|
79
|
+
EARTHLY_CI: z.ZodOptional<z.ZodString>;
|
|
80
|
+
EAS_BUILD: z.ZodOptional<z.ZodString>;
|
|
81
|
+
GERRIT_PROJECT: z.ZodOptional<z.ZodString>;
|
|
82
|
+
GITEA_ACTIONS: z.ZodOptional<z.ZodString>;
|
|
83
|
+
GITHUB_ACTIONS: z.ZodOptional<z.ZodString>;
|
|
84
|
+
GITLAB_CI: z.ZodOptional<z.ZodString>;
|
|
85
|
+
GOCD: z.ZodOptional<z.ZodString>;
|
|
86
|
+
BUILDER_OUTPUT: z.ZodOptional<z.ZodString>;
|
|
87
|
+
HARNESS_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
88
|
+
JENKINS_URL: z.ZodOptional<z.ZodString>;
|
|
89
|
+
LAYERCI: z.ZodOptional<z.ZodString>;
|
|
90
|
+
MAGNUM: z.ZodOptional<z.ZodString>;
|
|
91
|
+
NETLIFY: z.ZodOptional<z.ZodString>;
|
|
92
|
+
NEVERCODE: z.ZodOptional<z.ZodString>;
|
|
93
|
+
PROW_JOB_ID: z.ZodOptional<z.ZodString>;
|
|
94
|
+
RELEASE_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
95
|
+
RENDER: z.ZodOptional<z.ZodString>;
|
|
96
|
+
SAILCI: z.ZodOptional<z.ZodString>;
|
|
97
|
+
HUDSON: z.ZodOptional<z.ZodString>;
|
|
98
|
+
SCREWDRIVER: z.ZodOptional<z.ZodString>;
|
|
99
|
+
SEMAPHORE: z.ZodOptional<z.ZodString>;
|
|
100
|
+
SOURCEHUT: z.ZodOptional<z.ZodString>;
|
|
101
|
+
SPACESHIP_CI: z.ZodOptional<z.ZodString>;
|
|
102
|
+
STRIDER: z.ZodOptional<z.ZodString>;
|
|
103
|
+
TASK_ID: z.ZodOptional<z.ZodString>;
|
|
104
|
+
TEAMCITY_VERSION: z.ZodOptional<z.ZodString>;
|
|
105
|
+
TRAVIS: z.ZodOptional<z.ZodString>;
|
|
106
|
+
VELA: z.ZodOptional<z.ZodString>;
|
|
107
|
+
NOW_BUILDER: z.ZodOptional<z.ZodString>;
|
|
108
|
+
APPCENTER_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
109
|
+
CI_XCODE_PROJECT: z.ZodOptional<z.ZodString>;
|
|
110
|
+
XCS: z.ZodOptional<z.ZodString>;
|
|
111
|
+
DATA_DIR: z.ZodOptional<z.ZodString>;
|
|
112
|
+
CONFIG_DIR: z.ZodOptional<z.ZodString>;
|
|
113
|
+
CACHE_DIR: z.ZodOptional<z.ZodString>;
|
|
114
|
+
LOG_DIR: z.ZodOptional<z.ZodString>;
|
|
115
|
+
TEMP_DIR: z.ZodOptional<z.ZodString>;
|
|
116
|
+
LOCALAPPDATA: z.ZodOptional<z.ZodString>;
|
|
117
|
+
APPDATA: z.ZodOptional<z.ZodString>;
|
|
118
|
+
XDG_DATA_HOME: z.ZodOptional<z.ZodString>;
|
|
119
|
+
XDG_CONFIG_HOME: z.ZodOptional<z.ZodString>;
|
|
120
|
+
XDG_CACHE_HOME: z.ZodOptional<z.ZodString>;
|
|
121
|
+
XDG_STATE_HOME: z.ZodOptional<z.ZodString>;
|
|
122
|
+
XDG_RUNTIME_DIR: z.ZodOptional<z.ZodString>;
|
|
123
|
+
DEVENV_RUNTIME: z.ZodOptional<z.ZodString>;
|
|
124
|
+
DISABLE_REACT_COMPILER: z.ZodBoolean;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
/**
|
|
127
|
+
* Inferred React environment configuration type from {@link reactEnvSchema}.
|
|
128
|
+
*/
|
|
129
|
+
type ReactEnv = z.infer<typeof reactEnvSchema>;
|
|
130
|
+
//#endregion
|
|
131
|
+
export { ReactEnv, reactEnvSchema };
|
|
132
|
+
//# sourceMappingURL=env.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/schemas/env.ts"],"mappings":";;;;;cAwBa,gBAAc,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKzB,EAAA,KAAA;;;;KAKU,WAAW,EAAE,aAAa"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
//#region src/schemas/env.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Zod schema for React plugin environment variables.
|
|
5
|
+
*/
|
|
6
|
+
declare const reactEnvSchema: z.ZodObject<{
|
|
7
|
+
APP_NAME: z.ZodString;
|
|
8
|
+
APP_VERSION: z.ZodDefault<z.ZodString>;
|
|
9
|
+
BUILD_ID: z.ZodString;
|
|
10
|
+
BUILD_TIMESTAMP: z.ZodString;
|
|
11
|
+
BUILD_CHECKSUM: z.ZodString;
|
|
12
|
+
RELEASE_ID: z.ZodString;
|
|
13
|
+
RELEASE_TAG: z.ZodString;
|
|
14
|
+
ORGANIZATION: z.ZodString;
|
|
15
|
+
RUNTIME: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
nodejs: "nodejs";
|
|
17
|
+
deno: "deno";
|
|
18
|
+
workerd: "workerd";
|
|
19
|
+
browser: "browser";
|
|
20
|
+
}>>;
|
|
21
|
+
PLATFORM: z.ZodDefault<z.ZodEnum<{
|
|
22
|
+
browser: "browser";
|
|
23
|
+
node: "node";
|
|
24
|
+
neutral: "neutral";
|
|
25
|
+
}>>;
|
|
26
|
+
MODE: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
development: "development";
|
|
28
|
+
test: "test";
|
|
29
|
+
production: "production";
|
|
30
|
+
}>>;
|
|
31
|
+
ENVIRONMENT: z.ZodDefault<z.ZodString>;
|
|
32
|
+
DEBUG: z.ZodBoolean;
|
|
33
|
+
TEST: z.ZodBoolean;
|
|
34
|
+
MINIMAL: z.ZodBoolean;
|
|
35
|
+
NO_COLOR: z.ZodBoolean;
|
|
36
|
+
FORCE_COLOR: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
37
|
+
FORCE_HYPERLINK: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
38
|
+
AGENT_NAME: z.ZodOptional<z.ZodString>;
|
|
39
|
+
COLORTERM: z.ZodOptional<z.ZodString>;
|
|
40
|
+
TERM: z.ZodOptional<z.ZodString>;
|
|
41
|
+
TERM_PROGRAM: z.ZodOptional<z.ZodString>;
|
|
42
|
+
TERM_PROGRAM_VERSION: z.ZodOptional<z.ZodString>;
|
|
43
|
+
TERMINAL_EMULATOR: z.ZodOptional<z.ZodString>;
|
|
44
|
+
WT_SESSION: z.ZodOptional<z.ZodString>;
|
|
45
|
+
TERMINUS_SUBLIME: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
ConEmuTask: z.ZodOptional<z.ZodString>;
|
|
47
|
+
CURSOR_TRACE_ID: z.ZodOptional<z.ZodString>;
|
|
48
|
+
VTE_VERSION: z.ZodOptional<z.ZodString>;
|
|
49
|
+
STACKTRACE: z.ZodBoolean;
|
|
50
|
+
INCLUDE_ERROR_DATA: z.ZodBoolean;
|
|
51
|
+
ERROR_URL: z.ZodOptional<z.ZodString>;
|
|
52
|
+
DEFAULT_TIMEZONE: z.ZodDefault<z.ZodString>;
|
|
53
|
+
DEFAULT_LOCALE: z.ZodDefault<z.ZodString>;
|
|
54
|
+
LOG_LEVEL: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
55
|
+
error: "error";
|
|
56
|
+
warn: "warn";
|
|
57
|
+
info: "info";
|
|
58
|
+
debug: "debug";
|
|
59
|
+
}>>>;
|
|
60
|
+
CI: z.ZodBoolean;
|
|
61
|
+
RUN_ID: z.ZodOptional<z.ZodString>;
|
|
62
|
+
AGOLA_GIT_REF: z.ZodOptional<z.ZodString>;
|
|
63
|
+
AC_APPCIRCLE: z.ZodOptional<z.ZodString>;
|
|
64
|
+
APPVEYOR: z.ZodOptional<z.ZodString>;
|
|
65
|
+
CODEBUILD: z.ZodOptional<z.ZodString>;
|
|
66
|
+
TF_BUILD: z.ZodOptional<z.ZodString>;
|
|
67
|
+
bamboo_planKey: z.ZodOptional<z.ZodString>;
|
|
68
|
+
BITBUCKET_COMMIT: z.ZodOptional<z.ZodString>;
|
|
69
|
+
BITRISE_IO: z.ZodOptional<z.ZodString>;
|
|
70
|
+
BUDDY_WORKSPACE_ID: z.ZodOptional<z.ZodString>;
|
|
71
|
+
BUILDKITE: z.ZodOptional<z.ZodString>;
|
|
72
|
+
CIRCLECI: z.ZodOptional<z.ZodString>;
|
|
73
|
+
CIRRUS_CI: z.ZodOptional<z.ZodString>;
|
|
74
|
+
CF_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
75
|
+
CM_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
76
|
+
CI_NAME: z.ZodOptional<z.ZodString>;
|
|
77
|
+
DRONE: z.ZodOptional<z.ZodString>;
|
|
78
|
+
DSARI: z.ZodOptional<z.ZodString>;
|
|
79
|
+
EARTHLY_CI: z.ZodOptional<z.ZodString>;
|
|
80
|
+
EAS_BUILD: z.ZodOptional<z.ZodString>;
|
|
81
|
+
GERRIT_PROJECT: z.ZodOptional<z.ZodString>;
|
|
82
|
+
GITEA_ACTIONS: z.ZodOptional<z.ZodString>;
|
|
83
|
+
GITHUB_ACTIONS: z.ZodOptional<z.ZodString>;
|
|
84
|
+
GITLAB_CI: z.ZodOptional<z.ZodString>;
|
|
85
|
+
GOCD: z.ZodOptional<z.ZodString>;
|
|
86
|
+
BUILDER_OUTPUT: z.ZodOptional<z.ZodString>;
|
|
87
|
+
HARNESS_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
88
|
+
JENKINS_URL: z.ZodOptional<z.ZodString>;
|
|
89
|
+
LAYERCI: z.ZodOptional<z.ZodString>;
|
|
90
|
+
MAGNUM: z.ZodOptional<z.ZodString>;
|
|
91
|
+
NETLIFY: z.ZodOptional<z.ZodString>;
|
|
92
|
+
NEVERCODE: z.ZodOptional<z.ZodString>;
|
|
93
|
+
PROW_JOB_ID: z.ZodOptional<z.ZodString>;
|
|
94
|
+
RELEASE_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
95
|
+
RENDER: z.ZodOptional<z.ZodString>;
|
|
96
|
+
SAILCI: z.ZodOptional<z.ZodString>;
|
|
97
|
+
HUDSON: z.ZodOptional<z.ZodString>;
|
|
98
|
+
SCREWDRIVER: z.ZodOptional<z.ZodString>;
|
|
99
|
+
SEMAPHORE: z.ZodOptional<z.ZodString>;
|
|
100
|
+
SOURCEHUT: z.ZodOptional<z.ZodString>;
|
|
101
|
+
SPACESHIP_CI: z.ZodOptional<z.ZodString>;
|
|
102
|
+
STRIDER: z.ZodOptional<z.ZodString>;
|
|
103
|
+
TASK_ID: z.ZodOptional<z.ZodString>;
|
|
104
|
+
TEAMCITY_VERSION: z.ZodOptional<z.ZodString>;
|
|
105
|
+
TRAVIS: z.ZodOptional<z.ZodString>;
|
|
106
|
+
VELA: z.ZodOptional<z.ZodString>;
|
|
107
|
+
NOW_BUILDER: z.ZodOptional<z.ZodString>;
|
|
108
|
+
APPCENTER_BUILD_ID: z.ZodOptional<z.ZodString>;
|
|
109
|
+
CI_XCODE_PROJECT: z.ZodOptional<z.ZodString>;
|
|
110
|
+
XCS: z.ZodOptional<z.ZodString>;
|
|
111
|
+
DATA_DIR: z.ZodOptional<z.ZodString>;
|
|
112
|
+
CONFIG_DIR: z.ZodOptional<z.ZodString>;
|
|
113
|
+
CACHE_DIR: z.ZodOptional<z.ZodString>;
|
|
114
|
+
LOG_DIR: z.ZodOptional<z.ZodString>;
|
|
115
|
+
TEMP_DIR: z.ZodOptional<z.ZodString>;
|
|
116
|
+
LOCALAPPDATA: z.ZodOptional<z.ZodString>;
|
|
117
|
+
APPDATA: z.ZodOptional<z.ZodString>;
|
|
118
|
+
XDG_DATA_HOME: z.ZodOptional<z.ZodString>;
|
|
119
|
+
XDG_CONFIG_HOME: z.ZodOptional<z.ZodString>;
|
|
120
|
+
XDG_CACHE_HOME: z.ZodOptional<z.ZodString>;
|
|
121
|
+
XDG_STATE_HOME: z.ZodOptional<z.ZodString>;
|
|
122
|
+
XDG_RUNTIME_DIR: z.ZodOptional<z.ZodString>;
|
|
123
|
+
DEVENV_RUNTIME: z.ZodOptional<z.ZodString>;
|
|
124
|
+
DISABLE_REACT_COMPILER: z.ZodBoolean;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
/**
|
|
127
|
+
* Inferred React environment configuration type from {@link reactEnvSchema}.
|
|
128
|
+
*/
|
|
129
|
+
type ReactEnv = z.infer<typeof reactEnvSchema>;
|
|
130
|
+
//#endregion
|
|
131
|
+
export { ReactEnv, reactEnvSchema };
|
|
132
|
+
//# sourceMappingURL=env.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/
|
|
1
|
+
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/schemas/env.ts"],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { envSchema } from "@powerlines/plugin-env/schemas/env";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/schemas/env.ts
|
|
5
|
+
/**
|
|
6
|
+
* Zod schema for React plugin environment variables.
|
|
7
|
+
*/
|
|
8
|
+
const reactEnvSchema = envSchema.extend({ DISABLE_REACT_COMPILER: z.boolean().meta({ description: "Disables the React compiler optimizations when set to true. This environment variable can be used to turn off the optimizations provided by the React compiler, which may be useful for debugging or development purposes." }) });
|
|
9
|
+
/**
|
|
10
|
+
* Inferred React environment configuration type from {@link reactEnvSchema}.
|
|
11
|
+
*/
|
|
12
|
+
//#endregion
|
|
13
|
+
export { reactEnvSchema };
|
|
14
|
+
//# sourceMappingURL=env.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from "./plugin.cjs";
|
|
2
|
-
|
|
3
|
-
export { ReactCompilerOptions, ReactEnv, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig };
|
|
2
|
+
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig } from "./plugin.mjs";
|
|
2
|
-
|
|
3
|
-
export { ReactCompilerOptions, ReactEnv, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig };
|
|
2
|
+
export { ReactCompilerOptions, ReactPluginContext, ReactPluginOptions, ReactPluginResolvedConfig, ReactPluginUserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.700",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a React application.",
|
|
6
6
|
"keywords": ["react", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -97,20 +97,6 @@
|
|
|
97
97
|
"default": "./dist/types/index.mjs"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
-
"./types/env": {
|
|
101
|
-
"require": {
|
|
102
|
-
"types": "./dist/types/env.d.cts",
|
|
103
|
-
"default": "./dist/types/env.cjs"
|
|
104
|
-
},
|
|
105
|
-
"import": {
|
|
106
|
-
"types": "./dist/types/env.d.mts",
|
|
107
|
-
"default": "./dist/types/env.mjs"
|
|
108
|
-
},
|
|
109
|
-
"default": {
|
|
110
|
-
"types": "./dist/types/env.d.mts",
|
|
111
|
-
"default": "./dist/types/env.mjs"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
100
|
"./types/plugin": {
|
|
115
101
|
"require": {
|
|
116
102
|
"types": "./dist/types/plugin.d.cts",
|
|
@@ -137,27 +123,28 @@
|
|
|
137
123
|
"@alloy-js/markdown": "^0.24.0",
|
|
138
124
|
"@alloy-js/typescript": "^0.24.0",
|
|
139
125
|
"@babel/core": "^8.0.1",
|
|
140
|
-
"@power-plant/alloy-js": "^0.0.
|
|
141
|
-
"@power-plant/schema": "^0.0.
|
|
142
|
-
"@powerlines/core": "^0.48.
|
|
143
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
144
|
-
"@powerlines/plugin-babel": "^0.13.
|
|
145
|
-
"@powerlines/plugin-env": "^0.16.
|
|
146
|
-
"@powerlines/plugin-vite": "^0.14.
|
|
126
|
+
"@power-plant/alloy-js": "^0.0.38",
|
|
127
|
+
"@power-plant/schema": "^0.0.40",
|
|
128
|
+
"@powerlines/core": "^0.48.82",
|
|
129
|
+
"@powerlines/plugin-alloy": "^0.26.254",
|
|
130
|
+
"@powerlines/plugin-babel": "^0.13.157",
|
|
131
|
+
"@powerlines/plugin-env": "^0.16.365",
|
|
132
|
+
"@powerlines/plugin-vite": "^0.14.615",
|
|
147
133
|
"@rolldown/plugin-babel": "^0.2.3",
|
|
148
134
|
"@storm-software/config-tools": "^1.190.109",
|
|
149
|
-
"@stryke/cli": "^0.13.
|
|
150
|
-
"@stryke/convert": "^0.7.
|
|
151
|
-
"@stryke/fs": "^0.33.
|
|
152
|
-
"@stryke/path": "^0.29.
|
|
153
|
-
"@stryke/string-format": "^0.17.
|
|
135
|
+
"@stryke/cli": "^0.13.71",
|
|
136
|
+
"@stryke/convert": "^0.7.29",
|
|
137
|
+
"@stryke/fs": "^0.33.99",
|
|
138
|
+
"@stryke/path": "^0.29.25",
|
|
139
|
+
"@stryke/string-format": "^0.17.40",
|
|
154
140
|
"@vitejs/plugin-react": "^6.0.4",
|
|
155
141
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
156
142
|
"defu": "^6.1.7",
|
|
157
|
-
"powerlines": "^0.47.
|
|
143
|
+
"powerlines": "^0.47.161",
|
|
144
|
+
"zod": "^4.4.3"
|
|
158
145
|
},
|
|
159
146
|
"devDependencies": {
|
|
160
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
147
|
+
"@powerlines/plugin-plugin": "^0.12.573",
|
|
161
148
|
"@types/node": "^25.9.5",
|
|
162
149
|
"@types/react": "^19.2.17",
|
|
163
150
|
"@types/react-dom": "^19.2.3",
|
|
@@ -170,5 +157,5 @@
|
|
|
170
157
|
"react-dom": { "optional": false }
|
|
171
158
|
},
|
|
172
159
|
"publishConfig": { "access": "public" },
|
|
173
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "832ca45c23a4504eba7352bde30638a57ec27c3f"
|
|
174
161
|
}
|
package/dist/types/env.cjs
DELETED
|
File without changes
|
package/dist/types/env.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EnvInterface } from "@powerlines/plugin-env/types/env";
|
|
2
|
-
//#region src/types/env.d.ts
|
|
3
|
-
interface ReactEnv extends EnvInterface {
|
|
4
|
-
/**
|
|
5
|
-
* Disables the React compiler optimizations when set to true.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* This environment variable can be used to turn off the optimizations provided by the React compiler, which may be useful for debugging or development purposes.
|
|
9
|
-
*/
|
|
10
|
-
DISABLE_REACT_COMPILER: boolean;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { ReactEnv };
|
|
14
|
-
//# sourceMappingURL=env.d.cts.map
|
package/dist/types/env.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;UAoBiB,iBAAiB;;;;;;;EAOhC"}
|
package/dist/types/env.d.mts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { EnvInterface } from "@powerlines/plugin-env/types/env";
|
|
2
|
-
//#region src/types/env.d.ts
|
|
3
|
-
interface ReactEnv extends EnvInterface {
|
|
4
|
-
/**
|
|
5
|
-
* Disables the React compiler optimizations when set to true.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* This environment variable can be used to turn off the optimizations provided by the React compiler, which may be useful for debugging or development purposes.
|
|
9
|
-
*/
|
|
10
|
-
DISABLE_REACT_COMPILER: boolean;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { ReactEnv };
|
|
14
|
-
//# sourceMappingURL=env.d.mts.map
|
package/dist/types/env.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|