Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Jan 29, 2024
1 parent 2ebdafb commit ed9844c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = [
plugins: [
json(),
typescript({
include: ['src/**/*', 'package.json', "tests/**/*"],
include: ['src/**/*', 'package.json', 'tests/**/*'],
}),
del({
targets: ['dist/src', 'dist/tests'],
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getExampleFromSchema } from '@scalar/api-reference'
import { Validator } from '@seriousme/openapi-schema-validator'
import { Command } from 'commander'
import { Hono } from 'hono'
import { stream } from 'hono/streaming'
import kleur from 'kleur'
import type { OpenAPI } from 'openapi-types'
import { format } from 'prettier'
Expand All @@ -14,7 +15,6 @@ import prompts from 'prompts'
import toml from 'toml-js'
import { version } from '../package.json'
import { getOperationByMethodAndPath } from './utils'
import { stream } from 'hono/streaming'

function readFile(file: string) {
try {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/options/version/version.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest'
import { ScalarCli } from '../../../tests/invoke-cli'
import { version } from '../../../package.json'
import { ScalarCli } from '../../../tests/invoke-cli'

describe('--version', () => {
it('outputs the version from package.json', () => {
Expand Down

0 comments on commit ed9844c

Please sign in to comment.