@powerlines/plugin-env 0.15.6 → 0.15.7
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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugin-alloy/src/index.cjs +7 -1
- package/dist/plugin-alloy/src/index.mjs +7 -1
- package/dist/plugin-alloy/src/types/components.d.cts +2 -1
- package/dist/plugin-alloy/src/types/components.d.mts +1 -0
- package/dist/plugin-alloy/src/types/index.d.cts +2 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +1 -0
- package/dist/types/plugin.d.cts +1 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -69,7 +69,7 @@ const plugin = (options = {}) => {
|
|
|
69
69
|
if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
|
|
70
70
|
return ret;
|
|
71
71
|
}, [...__stryke_env_types.ENV_PREFIXES, "POWERLINES_"]);
|
|
72
|
-
config.env.prefix = config.env.prefix.reduce((ret, prefix) => {
|
|
72
|
+
config.env.prefix = (0, __stryke_convert_to_array.toArray)(config.env.prefix).reduce((ret, prefix) => {
|
|
73
73
|
if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
|
|
74
74
|
return ret;
|
|
75
75
|
}, []);
|
package/dist/index.mjs
CHANGED
|
@@ -66,7 +66,7 @@ const plugin = (options = {}) => {
|
|
|
66
66
|
if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
|
|
67
67
|
return ret;
|
|
68
68
|
}, [...ENV_PREFIXES, "POWERLINES_"]);
|
|
69
|
-
config.env.prefix = config.env.prefix.reduce((ret, prefix) => {
|
|
69
|
+
config.env.prefix = toArray(config.env.prefix).reduce((ret, prefix) => {
|
|
70
70
|
if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
|
|
71
71
|
return ret;
|
|
72
72
|
}, []);
|
|
@@ -28,7 +28,13 @@ const plugin = (options = {}) => {
|
|
|
28
28
|
pragma: "Alloy.createElement",
|
|
29
29
|
importSource: "@alloy-js/core"
|
|
30
30
|
} } },
|
|
31
|
-
plugins: [(0, __alloy_js_rollup_plugin.default)()]
|
|
31
|
+
plugins: [(0, __alloy_js_rollup_plugin.default)()],
|
|
32
|
+
external: [
|
|
33
|
+
"@alloy-js/core",
|
|
34
|
+
"@alloy-js/typescript",
|
|
35
|
+
"@alloy-js/json",
|
|
36
|
+
"@alloy-js/markdown"
|
|
37
|
+
]
|
|
32
38
|
}
|
|
33
39
|
};
|
|
34
40
|
},
|
|
@@ -26,7 +26,13 @@ const plugin = (options = {}) => {
|
|
|
26
26
|
pragma: "Alloy.createElement",
|
|
27
27
|
importSource: "@alloy-js/core"
|
|
28
28
|
} } },
|
|
29
|
-
plugins: [alloy()]
|
|
29
|
+
plugins: [alloy()],
|
|
30
|
+
external: [
|
|
31
|
+
"@alloy-js/core",
|
|
32
|
+
"@alloy-js/typescript",
|
|
33
|
+
"@alloy-js/json",
|
|
34
|
+
"@alloy-js/markdown"
|
|
35
|
+
]
|
|
30
36
|
}
|
|
31
37
|
};
|
|
32
38
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Children } from "@alloy-js/core";
|
|
2
|
+
import "@alloy-js/typescript";
|
|
2
3
|
|
|
3
4
|
//#region ../plugin-alloy/src/types/components.d.ts
|
|
4
5
|
|
|
@@ -19,4 +20,4 @@ type TypescriptFileImports = TypescriptFileImportList & {
|
|
|
19
20
|
$builtins?: TypescriptFileImportList;
|
|
20
21
|
};
|
|
21
22
|
//#endregion
|
|
22
|
-
export { ComponentProps, TypescriptFileImports };
|
|
23
|
+
export { ComponentProps, TypescriptFileImportItem, TypescriptFileImportList, TypescriptFileImports };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TSDocModuleProps } from "./tsdoc.cjs";
|
|
2
2
|
import { TypescriptFileProps } from "./typescript-file.cjs";
|
|
3
|
+
import "@alloy-js/core";
|
|
3
4
|
|
|
4
5
|
//#region ../plugin-alloy/src/typescript/components/builtin-file.d.ts
|
|
5
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, TypescriptFileImports } from "../../types/components.cjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.cjs";
|
|
3
3
|
import { Children } from "@alloy-js/core";
|
|
4
|
+
import "@alloy-js/typescript";
|
|
4
5
|
|
|
5
6
|
//#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
|
|
6
7
|
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Reflection } from "../deepkit/src/types.cjs";
|
|
2
2
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "../plugin-alloy/src/types/plugin.cjs";
|
|
3
|
+
import "../plugin-alloy/src/types/index.cjs";
|
|
3
4
|
import { AutoMDPluginOptions } from "../plugin-automd/src/types/plugin.cjs";
|
|
4
5
|
import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../plugin-babel/src/types/plugin.cjs";
|
|
5
6
|
import { EnvInterface, SecretsInterface } from "./runtime.cjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
|
|
6
6
|
"repository": {
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"@babel/core": "^7.28.5",
|
|
195
195
|
"@babel/types": "^7.28.5",
|
|
196
196
|
"@powerlines/deepkit": "^0.5.39",
|
|
197
|
-
"@powerlines/plugin-alloy": "^0.18.
|
|
197
|
+
"@powerlines/plugin-alloy": "^0.18.5",
|
|
198
198
|
"@powerlines/plugin-automd": "^0.1.124",
|
|
199
199
|
"@powerlines/plugin-babel": "^0.12.133",
|
|
200
200
|
"@powerlines/plugin-plugin": "^0.12.76",
|
|
@@ -215,5 +215,5 @@
|
|
|
215
215
|
"vite": "8.0.0-beta.2"
|
|
216
216
|
},
|
|
217
217
|
"publishConfig": { "access": "public" },
|
|
218
|
-
"gitHead": "
|
|
218
|
+
"gitHead": "5508777068c1287271c2943364aa9c86c56c5ff0"
|
|
219
219
|
}
|