Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions change/apibara-267c95ee-bca5-40de-9b0f-348952969e0c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "fix: install command doesn't require 'run'",
"packageName": "apibara",
"email": "nicolascoquelet@gmail.com",
"dependentChangeType": "patch"
}
11 changes: 3 additions & 8 deletions packages/cli/src/create/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,9 @@ export async function addIndexer({

console.log();

const baseCommand = `${options.packageManager} install`;
const tsCommand = `${baseCommand} && ${options.packageManager} run prepare`;
consola.info(
`Before running the indexer, run ${cyan(`${options.packageManager}${options.packageManager === "npm" ? " run" : ""} install`)}${
language === "typescript"
? " & " +
cyan(
`${options.packageManager}${options.packageManager === "npm" ? " run" : ""} prepare`,
)
: ""
}`,
`Before running the indexer, run ${cyan(language === "typescript" ? tsCommand : baseCommand)}`,
);
}
4 changes: 1 addition & 3 deletions packages/cli/src/create/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ export async function initializeProject({
const pkgManager = getPackageManager();
consola.info(
"Run ",
green(
`${pkgManager.name}${pkgManager.name === "npm" ? " run" : ""} install`,
),
green(`${pkgManager.name} install`),
" to install all dependencies",
);
}
Expand Down