Skip to content

Commit

Permalink
fix: remove absolute path import
Browse files Browse the repository at this point in the history
  • Loading branch information
k4a-l committed Oct 30, 2022
1 parent 41efff5 commit 8799b42
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/constants/constant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OptionsBase, SymbolSet } from 'types'
import { OptionsBase, SymbolSet } from '../types'

const symbolSets: {
[key in OptionsBase['treeType']]: SymbolSet
Expand Down
4 changes: 2 additions & 2 deletions src/modules/convert.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { symbolSets, defaultOptions } from 'constants/constant.js'
import { DirTree, Options, OptionsBase, SymbolSet } from 'types/index'
import { symbolSets, defaultOptions } from '../constants/constant.js'
import { DirTree, Options, OptionsBase, SymbolSet } from '../types/index'
import { buildOption } from './options.js'

const makeSymbol = (symbolSet: SymbolSet, isLast: boolean): string => {
Expand Down
4 changes: 2 additions & 2 deletions src/modules/options.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defaultOptions, treeTypeValues } from 'constants/constant.js'
import { Options, OptionsBase } from 'types'
import { defaultOptions, treeTypeValues } from '../constants/constant.js'
import { Options, OptionsBase } from '../types'

const optionGuard = (value: any, defaultValue: any, key: keyof OptionsBase) => {
if (key === 'spaceSize') {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/parse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DirNode, DirTree } from 'types/index'
import { DirNode, DirTree } from '../types/index'

import { fromMarkdown } from 'mdast-util-from-markdown'

Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { treeTypeValues } from "constants/constant.js"
import { treeTypeValues } from "../constants/constant.js"

type DirNode = {
name: string
Expand Down

0 comments on commit 8799b42

Please sign in to comment.