From 99b683aec11bb5409e5c64c89f47cb437892b5ee Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Mon, 23 Oct 2023 22:16:51 +0000 Subject: [PATCH] [ci] format --- packages/create-astro/src/actions/typescript.ts | 2 +- packages/create-astro/test/typescript.test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/create-astro/src/actions/typescript.ts b/packages/create-astro/src/actions/typescript.ts index 1b6f5cc80a4a..cc00f20e5807 100644 --- a/packages/create-astro/src/actions/typescript.ts +++ b/packages/create-astro/src/actions/typescript.ts @@ -1,7 +1,7 @@ import type { Context } from './context.js'; import { color } from '@astrojs/cli-kit'; -import { readFile, writeFile, rm } from 'node:fs/promises'; +import { readFile, rm, writeFile } from 'node:fs/promises'; import path from 'node:path'; import stripJsonComments from 'strip-json-comments'; import { error, info, spinner, title, typescriptByDefault } from '../messages.js'; diff --git a/packages/create-astro/test/typescript.test.js b/packages/create-astro/test/typescript.test.js index 8145e22519f0..a6c09af99d2a 100644 --- a/packages/create-astro/test/typescript.test.js +++ b/packages/create-astro/test/typescript.test.js @@ -123,9 +123,9 @@ describe('typescript: setup package', () => { const root = new URL('./fixtures/not-empty/', import.meta.url); const packageJson = new URL('./package.json', root); - expect( - JSON.parse(fs.readFileSync(packageJson, { encoding: 'utf-8' })).scripts.build - ).to.be.eq('astro build'); + expect(JSON.parse(fs.readFileSync(packageJson, { encoding: 'utf-8' })).scripts.build).to.be.eq( + 'astro build' + ); await setupTypeScript('strictest', { cwd: fileURLToPath(root), install: false }); expect(JSON.parse(fs.readFileSync(packageJson, { encoding: 'utf-8' })).scripts.build).to.be.eq( 'astro check && astro build'