Skip to content

Commit ccf7dbe

Browse files
chore(opapi): rm absolute imports (#566)
1 parent 7e670d5 commit ccf7dbe

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

opapi/src/section-types-generator/generator.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { camel } from 'radash'
2-
import { saveFile } from 'src/file'
3-
import log from 'src/log'
2+
import { saveFile } from '../file'
3+
import log from '../log'
44
import * as helpers from './helpers'
55
import { Block, BlockComposer, DefaultState, OperationParser, SectionParser } from './types'
66

opapi/src/section-types-generator/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import OpenAPIParser from '@readme/openapi-parser'
22
import type { SchemaObject } from 'openapi3-ts'
33
import { pascal, title } from 'radash'
4-
import { createOpenapi } from 'src/openapi'
4+
import { createOpenapi } from '../openapi'
55
import { Block, DefaultState } from './types'
66

77
export const pascalize = (str: string) => pascal(title(str))

opapi/src/section-types-generator/parsers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { JSONSchema, compile as compileSchemaToTypes } from 'json-schema-to-typescript'
22
import type { SchemaObject } from 'openapi3-ts'
33
import { title } from 'radash'
4-
import { Operation, isOperationWithBodyProps } from 'src/state'
4+
import { Operation, isOperationWithBodyProps } from '../state'
55
import { addPropertyToBlock, getBlankBlock, pascalize, remove$RefPropertiesFromSchema } from './helpers'
66
import { Block, OperationParser, SectionParser } from './types'
77

opapi/src/section-types-generator/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Operation, State } from 'src/state'
1+
import { Operation, State } from '../state'
22
export type BlockComposer = (blocks: Block[], targetDirectory: string) => void
33
export type DefaultState = State<string, string, string>
44

0 commit comments

Comments
 (0)