aboutsummaryrefslogtreecommitdiff
path: root/packages/create-astro/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/create-astro/src')
-rw-r--r--packages/create-astro/src/actions/typescript.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/create-astro/src/actions/typescript.ts b/packages/create-astro/src/actions/typescript.ts
index 3be99e179..2c0d21e89 100644
--- a/packages/create-astro/src/actions/typescript.ts
+++ b/packages/create-astro/src/actions/typescript.ts
@@ -82,12 +82,12 @@ const FILES_TO_UPDATE = {
try {
// add required dependencies for astro check
if (options.ctx.install)
- await shell(options.ctx.packageManager, ['install', '@astrojs/check', 'typescript'], {
+ await shell(options.ctx.packageManager, ['add', '@astrojs/check', 'typescript'], {
cwd: path.dirname(file),
stdio: 'ignore',
});
- // inject addtional command to build script
+ // inject additional command to build script
const data = await readFile(file, { encoding: 'utf-8' });
const indent = /(^\s+)/m.exec(data)?.[1] ?? '\t';
const parsedPackageJson = JSON.parse(data);