Skip to content

Commit

Permalink
Fix getVersion calls
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOtterlord committed Sep 27, 2024
1 parent 1094946 commit 9d93da2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/create-astro/src/actions/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type PickedTypeScriptContext = Pick<
| 'packageManager'
| 'install'
| 'tasks'
| 'ref'
>;

export async function typescript(ctx: PickedTypeScriptContext) {
Expand Down Expand Up @@ -101,8 +102,8 @@ const FILES_TO_UPDATE = {
}

const [astroCheckVersion, typescriptVersion] = await Promise.all([
getVersion(options.ctx.packageManager, '@astrojs/check', process.env.ASTRO_CHECK_VERSION),
getVersion(options.ctx.packageManager, 'typescript', process.env.TYPESCRIPT_VERSION),
getVersion(options.ctx.packageManager, options.ctx.ref, '@astrojs/check', process.env.ASTRO_CHECK_VERSION),
getVersion(options.ctx.packageManager, options.ctx.ref, 'typescript', process.env.TYPESCRIPT_VERSION),
]);
parsedPackageJson.dependencies ??= {};
parsedPackageJson.dependencies['@astrojs/check'] = `^${astroCheckVersion}`;
Expand Down

0 comments on commit 9d93da2

Please sign in to comment.