@powerlines/plugin-date 0.12.71 → 0.12.73
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/build.d.cts +6 -0
- package/dist/powerlines/src/types/build.d.mts +6 -0
- package/dist/powerlines/src/types/config.d.cts +12 -0
- package/dist/powerlines/src/types/config.d.mts +12 -0
- package/dist/powerlines/src/types/plugin.d.cts +1 -1
- package/dist/powerlines/src/types/plugin.d.mts +1 -1
- package/package.json +7 -7
|
@@ -126,6 +126,12 @@ interface BuildConfig {
|
|
|
126
126
|
* Should the Powerlines CLI processes skip bundling the `node_modules` directory?
|
|
127
127
|
*/
|
|
128
128
|
skipNodeModulesBundle?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime. Otherwise, it is statically replaced as an empty object.
|
|
131
|
+
*
|
|
132
|
+
* @defaultValue false
|
|
133
|
+
*/
|
|
134
|
+
keepProcessEnv?: boolean;
|
|
129
135
|
/**
|
|
130
136
|
* An optional set of override options to apply to the selected build variant.
|
|
131
137
|
*
|
|
@@ -126,6 +126,12 @@ interface BuildConfig {
|
|
|
126
126
|
* Should the Powerlines CLI processes skip bundling the `node_modules` directory?
|
|
127
127
|
*/
|
|
128
128
|
skipNodeModulesBundle?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime. Otherwise, it is statically replaced as an empty object.
|
|
131
|
+
*
|
|
132
|
+
* @defaultValue false
|
|
133
|
+
*/
|
|
134
|
+
keepProcessEnv?: boolean;
|
|
129
135
|
/**
|
|
130
136
|
* An optional set of override options to apply to the selected build variant.
|
|
131
137
|
*
|
|
@@ -311,6 +311,18 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
311
311
|
* Environment-specific configurations
|
|
312
312
|
*/
|
|
313
313
|
environments?: Record<string, EnvironmentConfig>;
|
|
314
|
+
/**
|
|
315
|
+
* Should a single `build` process be ran for each environment?
|
|
316
|
+
*
|
|
317
|
+
* @remarks
|
|
318
|
+
* This option determines how environments are managed during the `build` process. The available options are:
|
|
319
|
+
*
|
|
320
|
+
* - `false`: A separate build is ran for each environment.
|
|
321
|
+
* - `true`: A single build is ran for all environments.
|
|
322
|
+
*
|
|
323
|
+
* @defaultValue false
|
|
324
|
+
*/
|
|
325
|
+
singleBuild?: boolean;
|
|
314
326
|
/**
|
|
315
327
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
316
328
|
*
|
|
@@ -312,6 +312,18 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
312
312
|
* Environment-specific configurations
|
|
313
313
|
*/
|
|
314
314
|
environments?: Record<string, EnvironmentConfig>;
|
|
315
|
+
/**
|
|
316
|
+
* Should a single `build` process be ran for each environment?
|
|
317
|
+
*
|
|
318
|
+
* @remarks
|
|
319
|
+
* This option determines how environments are managed during the `build` process. The available options are:
|
|
320
|
+
*
|
|
321
|
+
* - `false`: A separate build is ran for each environment.
|
|
322
|
+
* - `true`: A single build is ran for all environments.
|
|
323
|
+
*
|
|
324
|
+
* @defaultValue false
|
|
325
|
+
*/
|
|
326
|
+
singleBuild?: boolean;
|
|
315
327
|
/**
|
|
316
328
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
317
329
|
*
|
|
@@ -178,7 +178,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = { [TKey in ke
|
|
|
178
178
|
}) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
|
|
179
179
|
};
|
|
180
180
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = { [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant> };
|
|
181
|
-
interface Plugin<
|
|
181
|
+
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
182
182
|
/**
|
|
183
183
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
184
184
|
*/
|
|
@@ -178,7 +178,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = { [TKey in ke
|
|
|
178
178
|
}) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
|
|
179
179
|
};
|
|
180
180
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = { [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant> };
|
|
181
|
-
interface Plugin<
|
|
181
|
+
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
182
182
|
/**
|
|
183
183
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
184
184
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-date",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.73",
|
|
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": {
|
|
@@ -128,15 +128,15 @@
|
|
|
128
128
|
"files": ["dist/**/*"],
|
|
129
129
|
"keywords": ["powerlines", "storm-software", "powerlines-plugin"],
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@powerlines/plugin-env": "^0.13.
|
|
132
|
-
"@storm-software/config-tools": "^1.188.
|
|
131
|
+
"@powerlines/plugin-env": "^0.13.70",
|
|
132
|
+
"@storm-software/config-tools": "^1.188.65",
|
|
133
133
|
"@stryke/path": "^0.22.11",
|
|
134
|
-
"powerlines": "^0.
|
|
134
|
+
"powerlines": "^0.31.1"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@powerlines/nx": "^0.10.
|
|
138
|
-
"@types/node": "^24.10.
|
|
137
|
+
"@powerlines/nx": "^0.10.64",
|
|
138
|
+
"@types/node": "^24.10.4"
|
|
139
139
|
},
|
|
140
140
|
"publishConfig": { "access": "public" },
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "970018c8e5c0c11f91527bdf8981930d6e05fcb2"
|
|
142
142
|
}
|