From 30f784468fd497038e78beb9d59b888d7709746e Mon Sep 17 00:00:00 2001 From: Alexander Kurganov Date: Mon, 9 Oct 2023 18:49:24 +0400 Subject: [PATCH] chore: Use relative imports --- __tests__/tests.ts | 6 ++++-- src/index.ts | 4 ++-- tsconfig.json | 5 ----- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/__tests__/tests.ts b/__tests__/tests.ts index dc1078a..998e844 100644 --- a/__tests__/tests.ts +++ b/__tests__/tests.ts @@ -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) }) diff --git a/src/index.ts b/src/index.ts index 1c29b92..f9c75e7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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' diff --git a/tsconfig.json b/tsconfig.json index 1004880..46482c3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,11 +10,6 @@ "baseUrl": ".", "rootDir": "./src", "moduleResolution": "node16", - "paths": { - "utils/*": [ - "./src/utils/*" - ] - }, /* JavaScript Support */ "allowJs": false,