From 5f1e9696719f9f4959f82f50ed3be64955ca9151 Mon Sep 17 00:00:00 2001 From: Kubilay Kahveci Date: Mon, 30 Sep 2024 21:58:39 +0100 Subject: [PATCH] fix(create-app): add process to context Signed-off-by: Kubilay Kahveci --- packages/create-app/src/files.ts | 4 ++-- .../commonjs/additional features/without auto-complete.txt | 2 +- .../commonjs/package properties/custom bin command.txt | 2 +- .../commonjs/package properties/custom metadata.txt | 2 +- .../package properties/custom name and bin command.txt | 2 +- .../multi-command/commonjs/package properties/custom name.txt | 2 +- .../multi-command/commonjs/with default flags.txt | 2 +- .../additional features/without auto-complete.txt | 2 +- .../package properties/custom bin command.txt | 2 +- .../module [default]/package properties/custom metadata.txt | 2 +- .../package properties/custom name and bin command.txt | 2 +- .../module [default]/package properties/custom name.txt | 2 +- .../multi-command/module [default]/with default flags.txt | 2 +- .../commonjs/additional features/without auto-complete.txt | 2 +- .../commonjs/package properties/custom bin command.txt | 2 +- .../commonjs/package properties/custom metadata.txt | 2 +- .../package properties/custom name and bin command.txt | 2 +- .../commonjs/package properties/custom name.txt | 2 +- .../single-command/commonjs/with default flags.txt | 2 +- .../additional features/without auto-complete.txt | 2 +- .../package properties/custom bin command.txt | 2 +- .../module [default]/package properties/custom metadata.txt | 2 +- .../package properties/custom name and bin command.txt | 2 +- .../module [default]/package properties/custom name.txt | 2 +- .../single-command/module [default]/with default flags.txt | 2 +- 25 files changed, 26 insertions(+), 26 deletions(-) diff --git a/packages/create-app/src/files.ts b/packages/create-app/src/files.ts index 8d8353a..362f1ac 100644 --- a/packages/create-app/src/files.ts +++ b/packages/create-app/src/files.ts @@ -34,7 +34,7 @@ export const localContextText = `\ import type { CommandContext } from "@stricli/core"; export interface LocalContext extends CommandContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } @@ -53,7 +53,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/additional features/without auto-complete.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/additional features/without auto-complete.txt index 5a3932d..b9a844d 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/additional features/without auto-complete.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/additional features/without auto-complete.txt @@ -200,7 +200,7 @@ export default async function(this: LocalContext, flags: SubdirCommandFlags): Pr import type { CommandContext } from "@stricli/core"; export interface LocalContext extends CommandContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom bin command.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom bin command.txt index 32c8923..ab42f4f 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom bin command.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom bin command.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom metadata.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom metadata.txt index fe04fcd..ba7bd54 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom metadata.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom metadata.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom name and bin command.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom name and bin command.txt index 42cd0c0..353efad 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom name and bin command.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom name and bin command.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom name.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom name.txt index 00728e4..16710c9 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom name.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/package properties/custom name.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/with default flags.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/with default flags.txt index 4be47c8..2a41d31 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/with default flags.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/commonjs/with default flags.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/additional features/without auto-complete.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/additional features/without auto-complete.txt index 681b9e9..8c1d87d 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/additional features/without auto-complete.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/additional features/without auto-complete.txt @@ -200,7 +200,7 @@ export default async function(this: LocalContext, flags: SubdirCommandFlags): Pr import type { CommandContext } from "@stricli/core"; export interface LocalContext extends CommandContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom bin command.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom bin command.txt index 1f57fa7..9c4da3a 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom bin command.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom bin command.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom metadata.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom metadata.txt index 81b0649..264edd6 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom metadata.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom metadata.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom name and bin command.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom name and bin command.txt index 2d8ce31..9c81201 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom name and bin command.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom name and bin command.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom name.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom name.txt index 4576f16..7c7a0f0 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom name.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/package properties/custom name.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/with default flags.txt b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/with default flags.txt index 7435607..682e64c 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/with default flags.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/multi-command/module [default]/with default flags.txt @@ -226,7 +226,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/additional features/without auto-complete.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/additional features/without auto-complete.txt index fd62dd2..0d0d530 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/additional features/without auto-complete.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/additional features/without auto-complete.txt @@ -122,7 +122,7 @@ void run(app, process.argv.slice(2), buildContext(process)); import type { CommandContext } from "@stricli/core"; export interface LocalContext extends CommandContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom bin command.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom bin command.txt index 1ca98a1..671c72f 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom bin command.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom bin command.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom metadata.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom metadata.txt index 64d0e2f..faec70e 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom metadata.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom metadata.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name and bin command.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name and bin command.txt index f42c7c6..55a6d78 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name and bin command.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name and bin command.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name.txt index 570caa5..317e568 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/package properties/custom name.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/with default flags.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/with default flags.txt index 04c904a..0864ef7 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/with default flags.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/commonjs/with default flags.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/additional features/without auto-complete.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/additional features/without auto-complete.txt index f41dc64..132b8fd 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/additional features/without auto-complete.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/additional features/without auto-complete.txt @@ -122,7 +122,7 @@ await run(app, process.argv.slice(2), buildContext(process)); import type { CommandContext } from "@stricli/core"; export interface LocalContext extends CommandContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom bin command.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom bin command.txt index af4a5a4..0aee201 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom bin command.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom bin command.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom metadata.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom metadata.txt index 1c0eff3..2600856 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom metadata.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom metadata.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name and bin command.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name and bin command.txt index d3f8f81..7c37d04 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name and bin command.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name and bin command.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name.txt index 6e02e2a..918e38f 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/package properties/custom name.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... } diff --git a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/with default flags.txt b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/with default flags.txt index 1fe57cc..0e8f3d0 100644 --- a/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/with default flags.txt +++ b/packages/create-app/tests/baselines/reference/app/creates new application/single-command/module [default]/with default flags.txt @@ -141,7 +141,7 @@ import os from "node:os"; import path from "node:path"; export interface LocalContext extends CommandContext, StricliAutoCompleteContext { - // readonly process: NodeJS.Process; + readonly process: NodeJS.Process; // ... }