@gapi/gcli 1.8.204 → 1.8.206

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/release/index.js +36 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gapi/gcli",
3
- "version": "1.8.204",
3
+ "version": "1.8.206",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Stradivario/gapi.git"
package/release/index.js CHANGED
@@ -318423,14 +318423,29 @@ async function start(args) {
318423
318423
  ...config2?.options?.bundler?.watch ?? []
318424
318424
  ].map((name2) => [name2, true])
318425
318425
  ),
318426
+ ignorelist: new Map(
318427
+ [
318428
+ ...args?.ignore ?? [],
318429
+ ...config2?.options?.bundler?.ignore ?? []
318430
+ ].map((name2) => [name2, true])
318431
+ ),
318426
318432
  child: null,
318427
318433
  outfile: args.outfile ?? config2?.options?.bundler?.outfile ?? "index.js",
318428
318434
  startCommand: "node"
318429
318435
  }).pipe(
318430
318436
  (0, import_operators22.switchMap)(
318431
- ({ child, watcher, whitelist, outfile, startCommand }) => (0, import_rxjs23.from)(build_default(args)).pipe(
318437
+ ({
318438
+ child,
318439
+ watcher,
318440
+ whitelist,
318441
+ outfile,
318442
+ startCommand,
318443
+ ignorelist
318444
+ }) => (0, import_rxjs23.from)(build_default(args)).pipe(
318432
318445
  (0, import_operators22.tap)(() => {
318433
- Logger.warn(`\u{1F4E2} Starting script "${startCommand} ${outfile}"`);
318446
+ Logger.warn(
318447
+ `\u{1F4E2} Starting script "${startCommand} ${outfile}"`
318448
+ );
318434
318449
  Logger.log("---------------------------------\n");
318435
318450
  }),
318436
318451
  (0, import_operators22.tap)(() => {
@@ -318438,7 +318453,8 @@ async function start(args) {
318438
318453
  startCommand,
318439
318454
  ["--disable-warning=DEP0040", outfile],
318440
318455
  {
318441
- stdio: "inherit"
318456
+ stdio: "inherit",
318457
+ env: process.env
318442
318458
  }
318443
318459
  );
318444
318460
  }),
@@ -318467,6 +318483,11 @@ async function start(args) {
318467
318483
  if (!filename) {
318468
318484
  return false;
318469
318485
  }
318486
+ for (const ignorePath of ignorelist.keys()) {
318487
+ if (filename.startsWith(ignorePath)) {
318488
+ return false;
318489
+ }
318490
+ }
318470
318491
  const rootDir = filename.split(/[/\\]/)[0];
318471
318492
  return whitelist.has(rootDir);
318472
318493
  }),
@@ -318475,18 +318496,23 @@ async function start(args) {
318475
318496
  ),
318476
318497
  (0, import_operators22.tap)((data) => {
318477
318498
  Logger.log("\n---------------------------------");
318478
- Logger.log(`\u27F3 Restarting due to change in: ${data.filename}`);
318499
+ Logger.log(
318500
+ `\u27F3 Restarting due to change in: ${data.filename}`
318501
+ );
318479
318502
  child?.kill("SIGTERM");
318480
318503
  }),
318481
318504
  (0, import_operators22.switchMap)(() => build_default(args)),
318482
318505
  (0, import_operators22.tap)(() => {
318483
- Logger.warn(`\u{1F4E2} Starting script "${startCommand} ${outfile}"`);
318506
+ Logger.warn(
318507
+ `\u{1F4E2} Starting script "${startCommand} ${outfile}"`
318508
+ );
318484
318509
  Logger.log("---------------------------------\n");
318485
318510
  child = (0, import_node_child_process.spawn)(
318486
318511
  startCommand,
318487
318512
  ["--disable-warning=DEP0040", outfile],
318488
318513
  {
318489
- stdio: "inherit"
318514
+ stdio: "inherit",
318515
+ env: process.env
318490
318516
  }
318491
318517
  );
318492
318518
  })
@@ -318829,7 +318855,10 @@ function startCommands(program2) {
318829
318855
  program2.command("start").description("Start bundle using esbuild https://esbuild.github.io ").option(
318830
318856
  "-f, --files <files...>",
318831
318857
  "File or files to bundle defaults to index.ts"
318832
- ).option("-b, --bundle", "Bundle code", true).option("-m, --minify", "Minify code", false).option("-p, --platform <char>", "Platform ", "node").option("-t, --target <char>", "Target ", "node14.4").option("-o, --outfile <char>", "Outfile name").option("-e, --external <external...>", "External libraries").action(lazy(() => Promise.resolve().then(() => (init_start2(), start_exports2)).then((m2) => m2.default)));
318858
+ ).option("-b, --bundle", "Bundle code", true).option("-m, --minify", "Minify code", false).option("-p, --platform <char>", "Platform ", "node").option("-t, --target <char>", "Target ", "node14.4").option("-o, --outfile <char>", "Outfile name").option(
318859
+ "-i, --ignore <ignore...>",
318860
+ "Ignore folders from triggering restarts"
318861
+ ).option("-e, --external <external...>", "External libraries").action(lazy(() => Promise.resolve().then(() => (init_start2(), start_exports2)).then((m2) => m2.default)));
318833
318862
  }
318834
318863
 
318835
318864
  // src/commands/triggers/cron/index.ts