@utoo/pack-shared 1.2.12 → 1.2.13

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/cjs/config.d.ts CHANGED
@@ -182,6 +182,7 @@ export interface ConfigComplete {
182
182
  importSource?: string;
183
183
  };
184
184
  stats?: boolean;
185
+ pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
185
186
  persistentCaching?: boolean;
186
187
  nodePolyfill?: boolean;
187
188
  devServer?: {
@@ -253,3 +254,12 @@ export interface BundleOptions {
253
254
  */
254
255
  packPath?: string;
255
256
  }
257
+ /**
258
+ * User config file shape (e.g. utoopack.config.mjs).
259
+ * Bundler options (entry, output, define, ...) at top level,
260
+ * plus optional CLI/runtime options (processEnv, watch, dev, ...).
261
+ */
262
+ export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "defineEnv" | "watch" | "dev" | "buildId" | "packPath">> & {
263
+ rootPath?: string;
264
+ projectPath?: string;
265
+ };
package/esm/config.d.ts CHANGED
@@ -182,6 +182,7 @@ export interface ConfigComplete {
182
182
  importSource?: string;
183
183
  };
184
184
  stats?: boolean;
185
+ pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
185
186
  persistentCaching?: boolean;
186
187
  nodePolyfill?: boolean;
187
188
  devServer?: {
@@ -253,3 +254,12 @@ export interface BundleOptions {
253
254
  */
254
255
  packPath?: string;
255
256
  }
257
+ /**
258
+ * User config file shape (e.g. utoopack.config.mjs).
259
+ * Bundler options (entry, output, define, ...) at top level,
260
+ * plus optional CLI/runtime options (processEnv, watch, dev, ...).
261
+ */
262
+ export type UserConfig = ConfigComplete & Partial<Pick<BundleOptions, "processEnv" | "defineEnv" | "watch" | "dev" | "buildId" | "packPath">> & {
263
+ rootPath?: string;
264
+ projectPath?: string;
265
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",