From ef1318d90abfe6ca2770a3c5cb9f3bcb3e6615f6 Mon Sep 17 00:00:00 2001 From: AkashRajpurohit Date: Sat, 16 Mar 2024 18:24:34 +0530 Subject: [PATCH] feat: :truck: file structure moved --- src/index.ts | 9 +-------- {tests => src/math}/math.test.ts | 2 +- src/{ => math}/math.ts | 0 3 files changed, 2 insertions(+), 9 deletions(-) rename {tests => src/math}/math.test.ts (89%) rename src/{ => math}/math.ts (100%) diff --git a/src/index.ts b/src/index.ts index cddebde..4026e61 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1 @@ -import { add, subtract } from './math'; - -export { add, subtract }; - -export default { - add, - subtract, -}; +export * from './math/math'; diff --git a/tests/math.test.ts b/src/math/math.test.ts similarity index 89% rename from tests/math.test.ts rename to src/math/math.test.ts index 90ed67d..30e551c 100644 --- a/tests/math.test.ts +++ b/src/math/math.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect } from 'vitest'; -import { add, subtract } from '~/math'; +import { add, subtract } from '~/math/math'; describe('math', () => { describe('add', () => { diff --git a/src/math.ts b/src/math/math.ts similarity index 100% rename from src/math.ts rename to src/math/math.ts