@lerna-lite/core 1.14.1 → 1.14.2

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.
@@ -290,7 +290,7 @@ export interface WatchCommandOption {
290
290
  /** proxy for `--no-bail` */
291
291
  bail?: boolean;
292
292
  /**
293
- * Defaults to 100, time to wait in milliseconds before emitting all the file changes into a single event.
293
+ * Defaults to 200, time to wait in milliseconds before emitting all the file changes into a single event.
294
294
  * This provide enough time for the system to collect all Chokidar events (1x per file changes)
295
295
  * and merge them into a single Lerna watch change event to be emitted (Lerna will join all file paths into a CSV string separated by whitespace by default).
296
296
  */
@@ -299,16 +299,18 @@ export interface WatchCommandOption {
299
299
  fileDelimiter?: string;
300
300
  /** Glob pattern to define which file pattern to watch, note that this will be appended to the package file path being watched. */
301
301
  glob?: string;
302
- /** Defaults to false, when enabled it will trigger from all possible Chokidar events ('add', 'addDir', 'change', 'unlink', 'unlinkDir'). */
303
- watchAllEvents?: boolean;
304
- /** Defaults to false, when enabled it will trigger when a file is being added. */
305
- watchAddedFile?: boolean;
306
- /** Defaults to false, when enabled it will trigger when a directory is being added. */
307
- watchAddedDir?: boolean;
308
- /** Defaults to false, when enabled it will trigger when a file is being removed. */
309
- watchRemovedFile?: boolean;
310
- /** Defaults to false, when enabled it will trigger when a directory is being removed. */
311
- watchRemovedDir?: boolean;
302
+ /** Do not prefix streaming output. */
303
+ noPrefix?: boolean;
304
+ /** proxy for `--no-prefix` */
305
+ prefix?: boolean;
306
+ /** Stream output with lines prefixed by originating package name. */
307
+ stream?: boolean;
308
+ /**
309
+ * Defaults to false, by default the add event will fire when a file first appears on disk, before the entire file has been written.
310
+ * Setting `awaitWriteFinish` to true (or a truthy value) will poll file size,
311
+ * holding its add and change events until the size does not change for a configurable amount of time.
312
+ */
313
+ awaitWriteFinish?: boolean;
312
314
  /** Default to 100, file size polling interval, in milliseconds. */
313
315
  awfPollInterval?: number;
314
316
  /** Default to 2000, amount of time in milliseconds for a file size to remain constant before emitting its event. */
@@ -324,8 +326,8 @@ export interface WatchCommandOption {
324
326
  disableGlobbing?: boolean;
325
327
  /** Defaults to true, when false, only the symlinks themselves will be watched for changes instead of following the link references and bubbling events through the link's path. */
326
328
  followSymlinks?: boolean;
327
- /** Defines files/paths to be ignored */
328
- ignored?: string;
329
+ /** Defines files/paths to be ignored, it can be a string or an array of string (anymatch-compatible definition) */
330
+ ignored?: string | string[];
329
331
  /** Defaults to true, if set to false then add/addDir events are also emitted for matching paths while instantiating the watching as chokidar discovers these file paths (before the ready event). */
330
332
  ignoreInitial?: boolean;
331
333
  /** Defaults to true, indicates whether to watch files that don't have read permissions if possible. */
@@ -16,6 +16,7 @@ export * from './pulse-till-done';
16
16
  export * from './query-graph';
17
17
  export * from './run-lifecycle';
18
18
  export * from './run-topologically';
19
+ export * from './string-utils';
19
20
  export * from './temp-write';
20
21
  export * from './types';
21
22
  export * from './warn-if-hanging';
@@ -33,6 +33,7 @@ __exportStar(require("./pulse-till-done"), exports);
33
33
  __exportStar(require("./query-graph"), exports);
34
34
  __exportStar(require("./run-lifecycle"), exports);
35
35
  __exportStar(require("./run-topologically"), exports);
36
+ __exportStar(require("./string-utils"), exports);
36
37
  __exportStar(require("./temp-write"), exports);
37
38
  __exportStar(require("./types"), exports);
38
39
  __exportStar(require("./warn-if-hanging"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B;AAC9B,wDAAsC;AACtC,yCAAyC;AACzC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B;AAC9B,sDAAoC;AACpC,6CAA2B;AAC3B,iDAA+B;AAC/B,2CAAyB;AACzB,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,gDAA8B;AAC9B,kDAAgC;AAChC,sDAAoC;AACpC,+CAA6B;AAC7B,0CAAwB;AACxB,oDAAkC;AAClC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B;AAC9B,wDAAsC;AACtC,yCAAyC;AACzC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B;AAC9B,sDAAoC;AACpC,6CAA2B;AAC3B,iDAA+B;AAC/B,2CAAyB;AACzB,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,gDAA8B;AAC9B,kDAAgC;AAChC,sDAAoC;AACpC,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB;AACxB,oDAAkC;AAClC,mDAAiC"}
@@ -16,7 +16,7 @@ export declare class QueryGraph {
16
16
  *
17
17
  * @returns {import("@lerna/package").Package[]} A list of Package instances in topological order
18
18
  */
19
- static toposort(packages: Package[], options?: QueryGraphConfig): never[];
19
+ static toposort(packages: Package[], options?: QueryGraphConfig): Package[];
20
20
  /**
21
21
  * @param {import("@lerna/package").Package[]} packages An array of Packages to build the graph out of
22
22
  * @param {QueryGraphConfig} [options]
@@ -1 +1 @@
1
- {"version":3,"file":"query-graph.js","sourceRoot":"","sources":["../../src/utils/query-graph.ts"],"names":[],"mappings":";;;AAAA,kEAA8D;AAK9D;;GAEG;AACH,MAAa,UAAU;IAIrB;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,CAAC,QAAmB,EAAE,OAA0B;QAC7D,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,EAAE,CAAC;QAElB,IAAI,KAAK,GAAG,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAEzC,OAAO,KAAK,CAAC,MAAM,EAAE;YACnB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;gBACxB,wCAAwC;gBACxC,aAAa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EjC,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE;YAC/B,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;SAC7B;IACH,CAAC;CACF;AA/FD,gCA+FC"}
@@ -0,0 +1,2 @@
1
+ /** Pluralize a string */
2
+ export declare function pluralize(str: any, strLn: any, customPluralStr?: string): any;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pluralize = void 0;
4
+ /** Pluralize a string */
5
+ function pluralize(str, strLn, customPluralStr = '') {
6
+ const pluralStr = customPluralStr || `${str}s`;
7
+ return strLn > 1 ? pluralStr : str;
8
+ }
9
+ exports.pluralize = pluralize;
10
+ //# sourceMappingURL=string-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../../src/utils/string-utils.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,SAAgB,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE,eAAe,GAAG,EAAE;IACxD,MAAM,SAAS,GAAG,eAAe,IAAI,GAAG,GAAG,GAAG,CAAC;IAC/C,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC;AACrC,CAAC;AAHD,8BAGC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lerna-lite/core",
3
3
  "description": "Lerna-Lite core implementation module",
4
- "version": "1.14.1",
4
+ "version": "1.14.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "typings": "dist/index.d.ts",
@@ -74,5 +74,5 @@
74
74
  "type": "ko_fi",
75
75
  "url": "https://ko-fi.com/ghiscoding"
76
76
  },
77
- "gitHead": "7278b5666832949b3ad84c7bdfcd3d801d5237ca"
77
+ "gitHead": "401324f35dc6572d6b5581ddbd358d6a01eeb4b8"
78
78
  }