Skip to content

Commit

Permalink
Merge pull request #62 from AthennaIO/develop
Browse files Browse the repository at this point in the history
fix(types): export types
  • Loading branch information
jlenon7 authored Aug 9, 2023
2 parents 410f79b + aa5ee73 commit 7f1529a
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 53 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/common",
"version": "4.4.0",
"version": "4.5.0",
"description": "The Athenna common helpers to use in any Node.js ESM project.",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down Expand Up @@ -74,7 +74,7 @@
"youch-terminal": "^2.2.1"
},
"devDependencies": {
"@athenna/test": "^4.3.0",
"@athenna/test": "^4.4.0",
"@types/bytes": "^3.1.1",
"@types/callsite": "^1.0.31",
"@types/debug": "^4.1.7",
Expand Down
3 changes: 1 addition & 2 deletions src/helpers/Color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
* file that was distributed with this source code.
*/

import type { ChalkInstance } from 'chalk'
import { Chalk } from 'chalk'
import { format } from 'node:util'
import { Is } from '#src/helpers/Is'
import { Chalk, type ChalkInstance } from 'chalk'

export class Color {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import callSite from 'callsite'

import { fileURLToPath } from 'node:url'
import { homedir, tmpdir } from 'node:os'
import { sep, normalize, dirname } from 'node:path'
import type { PathDirs } from '#src/types'
import { sep, normalize, dirname } from 'node:path'

export class Path {
public static dirs: PathDirs = {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

export * from '#src/types'
export * from './types/index.js'

export * from '#src/globals/Path'
export * from '#src/globals/Error'
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/CleanTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Clean } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'

export default class CleanTest {
@Test()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/CollectionTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Collection } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'

export default class CollectionTest {
@Test()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/ExceptionTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Exception } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'

export default class ExceptionTest {
@Test()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/ExecTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* file that was distributed with this source code.
*/

import { Test, BeforeEach } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, BeforeEach, type Context } from '@athenna/test'
import { Clean, Exec, File, Folder, Module, Path } from '#src'
import { NodeCommandException } from '#src/exceptions/NodeCommandException'

Expand Down
3 changes: 1 addition & 2 deletions tests/unit/FakeApiTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
* file that was distributed with this source code.
*/

import type { Context } from '@athenna/test/types'
import { FakeApi, Folder, HttpClient, Path } from '#src'
import { Test, AfterAll, BeforeAll, AfterEach } from '@athenna/test'
import { Test, AfterAll, BeforeAll, AfterEach, type Context } from '@athenna/test'

export default class FakeApiTest {
@BeforeAll()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/FileTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

import { sep } from 'node:path'
import { File, Path, Folder } from '#src'
import type { Context } from '@athenna/test/types'
import { Test, AfterEach, BeforeEach } from '@athenna/test'
import { Test, AfterEach, BeforeEach, type Context } from '@athenna/test'
import { NotFoundFileException } from '#src/exceptions/NotFoundFileException'

export default class FileTest {
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/FolderTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

import { sep } from 'node:path'
import { Path, File, Folder } from '#src'
import type { Context } from '@athenna/test/types'
import { Test, AfterEach, BeforeEach } from '@athenna/test'
import { Test, AfterEach, BeforeEach, type Context } from '@athenna/test'
import { NotFoundFolderException } from '#src/exceptions/NotFoundFolderException'

export default class FolderTest {
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/HttpClientTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

import { promisify } from 'node:util'
import { pipeline } from 'node:stream'
import type { Context } from '@athenna/test/types'
import { Test, AfterAll, BeforeAll, BeforeEach } from '@athenna/test'
import { File, Path, FakeApi, HttpClient, HttpClientBuilder } from '#src'
import { Test, AfterAll, BeforeAll, BeforeEach, type Context } from '@athenna/test'

export default class HttpClientTest {
private pipeline = promisify(pipeline)
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/IsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Is, Exception } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'

export default class IsTest {
@Test()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/JsonTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Exec, Json } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'

export default class JsonTest {
@Test()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/ModuleTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Module, Path } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'
import { NotFoundResolveException } from '#src/exceptions/NotFoundResolveException'

export default class ModuleTest {
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/NumberTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Number } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'

export default class NumberTest {
@Test()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/OptionsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Options } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'

export default class OptionsTest {
@Test()
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/ParserTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Parser } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'
import { InvalidNumberException } from '#src/exceptions/InvalidNumberException'

export default class ParserTest {
Expand Down
6 changes: 2 additions & 4 deletions tests/unit/PathTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
*/

import { sep } from 'node:path'
import { Path, Json } from '#src'
import type { PathDirs } from '#src/types'
import { Test, BeforeEach } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Path, Json, type PathDirs } from '#src'
import { Test, BeforeEach, type Context } from '@athenna/test'

export default class PathTest {
public defaultPathDirs: PathDirs = Json.copy(Path.dirs)
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/RouteTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { Route, Uuid } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'
import { RouteMatchException } from '#src/exceptions/RouteMatchException'

export default class RouteTest {
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/StringTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*/

import { String } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'
import { OrdinalNanException } from '#src/exceptions/OrdinalNanException'

export default class StringTest {
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/UuidTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

import { v4 } from 'uuid'
import { Uuid } from '#src'
import { Test } from '@athenna/test'
import type { Context } from '@athenna/test/types'
import { Test, type Context } from '@athenna/test'
import { InvalidUuidException } from '#src/exceptions/InvalidUuidException'

export default class UuidTest {
Expand Down

0 comments on commit 7f1529a

Please sign in to comment.