@powerlines/plugin-env 0.13.96 → 0.13.98
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/powerlines/src/types/context.d.cts +13 -10
- package/dist/powerlines/src/types/context.d.mts +13 -10
- package/dist/powerlines/src/types/fs.d.cts +2 -2
- package/dist/powerlines/src/types/fs.d.mts +2 -2
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/package.json +7 -7
|
@@ -3,7 +3,6 @@ import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition
|
|
|
3
3
|
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
4
4
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
5
5
|
import { NonUndefined } from "@stryke/types/base";
|
|
6
|
-
import { TypeDefinition } from "@stryke/types/configuration";
|
|
7
6
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
8
7
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
9
8
|
import { PackageJson } from "@stryke/types/package-json";
|
|
@@ -61,6 +60,9 @@ interface TransformResult$1 {
|
|
|
61
60
|
code: string;
|
|
62
61
|
map: SourceMap | null;
|
|
63
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Options for initializing or updating the context with new configuration values
|
|
65
|
+
*/
|
|
64
66
|
interface InitContextOptions {
|
|
65
67
|
/**
|
|
66
68
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -69,27 +71,28 @@ interface InitContextOptions {
|
|
|
69
71
|
*/
|
|
70
72
|
isHighPriority: boolean;
|
|
71
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Options for fetch requests made via the context's {@link Context.fetch} method
|
|
76
|
+
*/
|
|
72
77
|
interface FetchOptions extends FetchRequestOptions {
|
|
73
78
|
/**
|
|
74
79
|
* An indicator specifying that the request should bypass any caching
|
|
75
80
|
*/
|
|
76
81
|
skipCache?: boolean;
|
|
77
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
|
|
85
|
+
*/
|
|
78
86
|
interface ParseOptions extends ParserOptions {
|
|
79
87
|
/**
|
|
80
88
|
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
81
89
|
*/
|
|
82
90
|
allowReturnOutsideFunction?: boolean;
|
|
83
91
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
* @remarks
|
|
89
|
-
* If no value is provided, we will attempt to infer the type definition from the module's `default` export.
|
|
90
|
-
*/
|
|
91
|
-
name?: TypeDefinition["name"];
|
|
92
|
-
}
|
|
92
|
+
/**
|
|
93
|
+
* Options for emitting entry virtual files
|
|
94
|
+
*/
|
|
95
|
+
type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
93
96
|
/**
|
|
94
97
|
* The unresolved Powerlines context.
|
|
95
98
|
*
|
|
@@ -5,7 +5,6 @@ import "./hooks.mjs";
|
|
|
5
5
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
6
6
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
7
7
|
import { NonUndefined } from "@stryke/types/base";
|
|
8
|
-
import { TypeDefinition } from "@stryke/types/configuration";
|
|
9
8
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
10
9
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
11
10
|
import { PackageJson } from "@stryke/types/package-json";
|
|
@@ -63,6 +62,9 @@ interface TransformResult$1 {
|
|
|
63
62
|
code: string;
|
|
64
63
|
map: SourceMap | null;
|
|
65
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Options for initializing or updating the context with new configuration values
|
|
67
|
+
*/
|
|
66
68
|
interface InitContextOptions {
|
|
67
69
|
/**
|
|
68
70
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -71,27 +73,28 @@ interface InitContextOptions {
|
|
|
71
73
|
*/
|
|
72
74
|
isHighPriority: boolean;
|
|
73
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Options for fetch requests made via the context's {@link Context.fetch} method
|
|
78
|
+
*/
|
|
74
79
|
interface FetchOptions extends FetchRequestOptions {
|
|
75
80
|
/**
|
|
76
81
|
* An indicator specifying that the request should bypass any caching
|
|
77
82
|
*/
|
|
78
83
|
skipCache?: boolean;
|
|
79
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
|
|
87
|
+
*/
|
|
80
88
|
interface ParseOptions extends ParserOptions {
|
|
81
89
|
/**
|
|
82
90
|
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
83
91
|
*/
|
|
84
92
|
allowReturnOutsideFunction?: boolean;
|
|
85
93
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
* @remarks
|
|
91
|
-
* If no value is provided, we will attempt to infer the type definition from the module's `default` export.
|
|
92
|
-
*/
|
|
93
|
-
name?: TypeDefinition["name"];
|
|
94
|
-
}
|
|
94
|
+
/**
|
|
95
|
+
* Options for emitting entry virtual files
|
|
96
|
+
*/
|
|
97
|
+
type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
95
98
|
/**
|
|
96
99
|
* The unresolved Powerlines context.
|
|
97
100
|
*
|
|
@@ -164,7 +164,7 @@ interface VirtualFileMetadata {
|
|
|
164
164
|
/**
|
|
165
165
|
* Additional metadata associated with the file.
|
|
166
166
|
*/
|
|
167
|
-
properties: Record<string, string>;
|
|
167
|
+
properties: Record<string, string | undefined>;
|
|
168
168
|
}
|
|
169
169
|
interface VirtualFileData {
|
|
170
170
|
/**
|
|
@@ -188,7 +188,7 @@ interface VirtualFileData {
|
|
|
188
188
|
/**
|
|
189
189
|
* Additional metadata associated with the file.
|
|
190
190
|
*/
|
|
191
|
-
properties?: Record<string, string>;
|
|
191
|
+
properties?: Record<string, string | undefined>;
|
|
192
192
|
}
|
|
193
193
|
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
194
194
|
/**
|
|
@@ -164,7 +164,7 @@ interface VirtualFileMetadata {
|
|
|
164
164
|
/**
|
|
165
165
|
* Additional metadata associated with the file.
|
|
166
166
|
*/
|
|
167
|
-
properties: Record<string, string>;
|
|
167
|
+
properties: Record<string, string | undefined>;
|
|
168
168
|
}
|
|
169
169
|
interface VirtualFileData {
|
|
170
170
|
/**
|
|
@@ -188,7 +188,7 @@ interface VirtualFileData {
|
|
|
188
188
|
/**
|
|
189
189
|
* Additional metadata associated with the file.
|
|
190
190
|
*/
|
|
191
|
-
properties?: Record<string, string>;
|
|
191
|
+
properties?: Record<string, string | undefined>;
|
|
192
192
|
}
|
|
193
193
|
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
194
194
|
/**
|
|
@@ -9,7 +9,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
9
9
|
/**
|
|
10
10
|
* The user provided entry point in the source code
|
|
11
11
|
*/
|
|
12
|
-
input
|
|
12
|
+
input?: TypeDefinition;
|
|
13
13
|
/**
|
|
14
14
|
* An optional name to use in the package export during the build process
|
|
15
15
|
*/
|
|
@@ -10,7 +10,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
10
10
|
/**
|
|
11
11
|
* The user provided entry point in the source code
|
|
12
12
|
*/
|
|
13
|
-
input
|
|
13
|
+
input?: TypeDefinition;
|
|
14
14
|
/**
|
|
15
15
|
* An optional name to use in the package export during the build process
|
|
16
16
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.98",
|
|
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": {
|
|
@@ -192,9 +192,9 @@
|
|
|
192
192
|
"@alloy-js/markdown": "^0.21.0",
|
|
193
193
|
"@babel/core": "^7.28.5",
|
|
194
194
|
"@babel/types": "^7.28.5",
|
|
195
|
-
"@powerlines/alloy": "^0.11.
|
|
196
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
197
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
195
|
+
"@powerlines/alloy": "^0.11.101",
|
|
196
|
+
"@powerlines/plugin-babel": "^0.12.101",
|
|
197
|
+
"@powerlines/plugin-plugin": "^0.12.44",
|
|
198
198
|
"@storm-software/config-tools": "^1.188.73",
|
|
199
199
|
"@stryke/capnp": "^0.12.51",
|
|
200
200
|
"@stryke/env": "^0.20.43",
|
|
@@ -203,16 +203,16 @@
|
|
|
203
203
|
"@stryke/string-format": "^0.12.29",
|
|
204
204
|
"@stryke/type-checks": "^0.5.14",
|
|
205
205
|
"@stryke/types": "^0.10.28",
|
|
206
|
-
"powerlines": "^0.
|
|
206
|
+
"powerlines": "^0.35.0"
|
|
207
207
|
},
|
|
208
208
|
"devDependencies": {
|
|
209
209
|
"@alloy-js/babel-preset": "^0.2.1",
|
|
210
210
|
"@babel/preset-typescript": "^7.28.5",
|
|
211
|
-
"@powerlines/nx": "^0.11.
|
|
211
|
+
"@powerlines/nx": "^0.11.23",
|
|
212
212
|
"@types/node": "^24.10.4",
|
|
213
213
|
"typescript": "^5.9.3",
|
|
214
214
|
"vite": "8.0.0-beta.2"
|
|
215
215
|
},
|
|
216
216
|
"publishConfig": { "access": "public" },
|
|
217
|
-
"gitHead": "
|
|
217
|
+
"gitHead": "b2222b4984e94db4850cdeda830206c8f1946395"
|
|
218
218
|
}
|