diff options
author | 2023-10-23 22:16:51 +0000 | |
---|---|---|
committer | 2023-10-23 22:16:51 +0000 | |
commit | 99b683aec11bb5409e5c64c89f47cb437892b5ee (patch) | |
tree | b42fc2d1b0bc3fdbac288479f3fa64b26eef8bdd | |
parent | ce807a2bfef325683bfdb01065a73c4e2b0a5fe5 (diff) | |
download | astro-99b683aec11bb5409e5c64c89f47cb437892b5ee.tar.gz astro-99b683aec11bb5409e5c64c89f47cb437892b5ee.tar.zst astro-99b683aec11bb5409e5c64c89f47cb437892b5ee.zip |
[ci] format
-rw-r--r-- | packages/create-astro/src/actions/typescript.ts | 2 | ||||
-rw-r--r-- | 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 1b6f5cc80..cc00f20e5 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 8145e2251..a6c09af99 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' |