|
@@ -11,7 +11,7 @@ import {
|
|
|
export type RenderContext = Inputs & {
|
|
export type RenderContext = Inputs & {
|
|
|
clients: Client[];
|
|
clients: Client[];
|
|
|
currentDirectory: string;
|
|
currentDirectory: string;
|
|
|
- getCommand: (scriptName: string, args?: string) => string;
|
|
|
|
|
|
|
+ getNpmCommand: (scriptName: string, args?: string) => string;
|
|
|
language: Language;
|
|
language: Language;
|
|
|
packageManager: PackageManager;
|
|
packageManager: PackageManager;
|
|
|
targetDirectory: string;
|
|
targetDirectory: string;
|
|
@@ -25,7 +25,7 @@ export async function getRenderContext(): Promise<RenderContext> {
|
|
|
const clients = allClients.flatMap((client) =>
|
|
const clients = allClients.flatMap((client) =>
|
|
|
inputs[`${client}Client`] ? [client] : []
|
|
inputs[`${client}Client`] ? [client] : []
|
|
|
);
|
|
);
|
|
|
- const getCommand: RenderContext["getCommand"] = (...args) =>
|
|
|
|
|
|
|
+ const getNpmCommand: RenderContext["getNpmCommand"] = (...args) =>
|
|
|
getPackageManagerCommand(packageManager, ...args);
|
|
getPackageManagerCommand(packageManager, ...args);
|
|
|
|
|
|
|
|
// Directories.
|
|
// Directories.
|
|
@@ -40,7 +40,7 @@ export async function getRenderContext(): Promise<RenderContext> {
|
|
|
...inputs,
|
|
...inputs,
|
|
|
clients,
|
|
clients,
|
|
|
currentDirectory,
|
|
currentDirectory,
|
|
|
- getCommand,
|
|
|
|
|
|
|
+ getNpmCommand,
|
|
|
language,
|
|
language,
|
|
|
packageManager,
|
|
packageManager,
|
|
|
targetDirectory,
|
|
targetDirectory,
|