@utoo/pack-shared 1.4.25 → 1.4.27-alpha.0

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
@@ -346,8 +346,22 @@ export interface BundleOptions {
346
346
  * Whether to watch the filesystem for file changes.
347
347
  */
348
348
  watch?: {
349
- enable: boolean;
349
+ enable?: boolean;
350
350
  pollIntervalMs?: number;
351
+ /**
352
+ * Paths to ignore when watching. Defaults to `node_modules`.
353
+ * `!node_modules/<regex>` exempts matching dependency package names.
354
+ */
355
+ ignored?: string[];
356
+ /**
357
+ * Package name regular expressions for dependencies inside node_modules that should still be
358
+ * watched when node_modules is ignored. Patterns are matched against package names such as
359
+ * `rc-util` or `@rc-component/trigger`.
360
+ *
361
+ * @example
362
+ * `["rc-.*", ".*cssinjs.*", "@rc-component/.*"]`
363
+ */
364
+ nodeModulesRegexes?: string[];
351
365
  };
352
366
  /**
353
367
  * The mode of utoopack.
package/esm/config.d.ts CHANGED
@@ -346,8 +346,22 @@ export interface BundleOptions {
346
346
  * Whether to watch the filesystem for file changes.
347
347
  */
348
348
  watch?: {
349
- enable: boolean;
349
+ enable?: boolean;
350
350
  pollIntervalMs?: number;
351
+ /**
352
+ * Paths to ignore when watching. Defaults to `node_modules`.
353
+ * `!node_modules/<regex>` exempts matching dependency package names.
354
+ */
355
+ ignored?: string[];
356
+ /**
357
+ * Package name regular expressions for dependencies inside node_modules that should still be
358
+ * watched when node_modules is ignored. Patterns are matched against package names such as
359
+ * `rc-util` or `@rc-component/trigger`.
360
+ *
361
+ * @example
362
+ * `["rc-.*", ".*cssinjs.*", "@rc-component/.*"]`
363
+ */
364
+ nodeModulesRegexes?: string[];
351
365
  };
352
366
  /**
353
367
  * The mode of utoopack.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.4.25",
3
+ "version": "1.4.27-alpha.0",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",