Skip to content

Commit

Permalink
chore: Use relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Akurganow committed Oct 9, 2023
1 parent fba51f7 commit 30f7844
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 4 additions & 2 deletions __tests__/tests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import isFunction from '../src/utils/is-function'
import isPromise from '../src/utils/is-promise'
import {
isFunction,
isPromise
} from '../src'

describe('isFunction', () => { tests('function', isFunction) })
describe('isPromise', () => { tests('promise', isPromise) })
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as isFunction } from 'utils/is-function'
export { default as isPromise } from 'utils/is-promise'
export { default as isFunction } from './utils/is-function'
export { default as isPromise } from './utils/is-promise'
5 changes: 0 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
"baseUrl": ".",
"rootDir": "./src",
"moduleResolution": "node16",
"paths": {
"utils/*": [
"./src/utils/*"
]
},

/* JavaScript Support */
"allowJs": false,
Expand Down

0 comments on commit 30f7844

Please sign in to comment.