@powerlines/plugin-capnp 0.1.64 → 0.1.66

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.
@@ -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
  *
@@ -300,6 +300,18 @@ interface CommonUserConfig extends BaseConfig {
300
300
  * Environment-specific configurations
301
301
  */
302
302
  environments?: Record<string, EnvironmentConfig>;
303
+ /**
304
+ * Should a single `build` process be ran for each environment?
305
+ *
306
+ * @remarks
307
+ * This option determines how environments are managed during the `build` process. The available options are:
308
+ *
309
+ * - `false`: A separate build is ran for each environment.
310
+ * - `true`: A single build is ran for all environments.
311
+ *
312
+ * @defaultValue false
313
+ */
314
+ singleBuild?: boolean;
303
315
  /**
304
316
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
305
317
  *
@@ -300,6 +300,18 @@ interface CommonUserConfig extends BaseConfig {
300
300
  * Environment-specific configurations
301
301
  */
302
302
  environments?: Record<string, EnvironmentConfig>;
303
+ /**
304
+ * Should a single `build` process be ran for each environment?
305
+ *
306
+ * @remarks
307
+ * This option determines how environments are managed during the `build` process. The available options are:
308
+ *
309
+ * - `false`: A separate build is ran for each environment.
310
+ * - `true`: A single build is ran for all environments.
311
+ *
312
+ * @defaultValue false
313
+ */
314
+ singleBuild?: boolean;
303
315
  /**
304
316
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
305
317
  *
@@ -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<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
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<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
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-capnp",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code from Cap'n Proto schemas.",
6
6
  "repository": {
@@ -123,13 +123,13 @@
123
123
  "@stryke/types": "^0.10.23",
124
124
  "defu": "^6.1.4",
125
125
  "jiti": "^2.6.1",
126
- "powerlines": "^0.30.13"
126
+ "powerlines": "^0.31.1"
127
127
  },
128
128
  "devDependencies": {
129
- "@powerlines/nx": "^0.10.62",
130
- "@powerlines/plugin-plugin": "^0.12.14",
131
- "@types/node": "^24.10.1"
129
+ "@powerlines/nx": "^0.10.64",
130
+ "@powerlines/plugin-plugin": "^0.12.16",
131
+ "@types/node": "^24.10.4"
132
132
  },
133
133
  "publishConfig": { "access": "public" },
134
- "gitHead": "56e0428b32d445614bde031bbd30c077b1432641"
134
+ "gitHead": "970018c8e5c0c11f91527bdf8981930d6e05fcb2"
135
135
  }