Skip to content

Commit

Permalink
fix: compiling declaration files
Browse files Browse the repository at this point in the history
  • Loading branch information
geopr committed Feb 1, 2023
1 parent 5cebd71 commit 52b259c
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 26 deletions.
11 changes: 1 addition & 10 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ compile() {
echo "Done"
}

emit_declarations() {
echo "Emitting declarations..."

tsc -p tsconfig.build.declarations.json

echo "Done"
}

prepare() {
echo "Cleaning up the previous lib folder..."

Expand All @@ -26,7 +18,6 @@ prepare() {

prepare

emit_declarations

compile cjs
compile esm
compile declarations
2 changes: 1 addition & 1 deletion types/collectors/factory/interface.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Collectable } from 'collectors/custom';
import type { Collectable } from '../../collectors/custom';
export interface CollectableProxy<T, R> extends Collectable<T> {
readonly store: R;
}
Expand Down
2 changes: 1 addition & 1 deletion types/combinators/filter-map/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Option } from 'containers';
import { Option } from '../../containers';
/**
* it works with the `Option` container type
* if the returned from callback value is Option.Some it will stay in the returnable `IterableIterator`
Expand Down
2 changes: 1 addition & 1 deletion types/combinators/for-each/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SyncPromise } from 'containers';
import { SyncPromise } from '../../containers';
/**
* iterates over passed any iterable object
*
Expand Down
2 changes: 1 addition & 1 deletion types/combinators/product/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TuplesFromIters } from 'combinators';
import type { TuplesFromIters } from '../../combinators';
/**
* does cartesian product for the specified `Iterable` objects
*
Expand Down
2 changes: 1 addition & 1 deletion types/combinators/seq/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ItersValues } from 'combinators/interface';
import type { ItersValues } from '../../combinators/interface';
/**
* The function yields values of all passed `Iterable` objects
*
Expand Down
2 changes: 1 addition & 1 deletion types/combinators/zip/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TuplesFromIters } from 'combinators';
import type { TuplesFromIters } from '../../combinators';
/**
* Zips the specified `Iterable` objects together
* It takes one element from every `Iterable` object and creates a tuple from them
Expand Down
2 changes: 1 addition & 1 deletion types/containers/interface.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SyncIter } from 'containers';
import type { SyncIter } from '../containers';
export interface Matchable<Matches extends string> {
match<R>(obj: Record<Matches, AnyFunction>): R;
}
Expand Down
6 changes: 3 additions & 3 deletions types/containers/iter/base.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Collectable } from 'collectors';
import type { ItersValues, TuplesFromIters } from 'combinators';
import type { Option, SyncPromise } from 'containers';
import type { Collectable } from '../../collectors';
import type { ItersValues, TuplesFromIters } from '../../combinators';
import type { Option, SyncPromise } from '../../containers';
import type { PickIter, PickCollectResult, FlatIterable, GetNativeIterable, PromisifyValue } from './interface';
import type { SyncIter } from './index';
/**
Expand Down
2 changes: 1 addition & 1 deletion types/containers/iter/factory/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SyncIter, AsyncIter } from 'containers';
import { SyncIter, AsyncIter } from '../../../containers';
/**
* converts `Iterable` object into `SyncIter`
*
Expand Down
2 changes: 1 addition & 1 deletion types/containers/option/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Result, SyncIter } from 'containers';
import { Result, SyncIter } from '../../containers';
import type { MatchObject, Traits } from './interface';
/**
* This class represents two states: a value either exists or not
Expand Down
2 changes: 1 addition & 1 deletion types/containers/option/interface.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Matchable, IntoIter, Unwrapable, PartialUnwrappable, Monad, PartialMonad, PartialInto, Filterable, Xorable, Andable, Orable, Result } from 'containers';
import type { Matchable, IntoIter, Unwrapable, PartialUnwrappable, Monad, PartialMonad, PartialInto, Filterable, Xorable, Andable, Orable, Result } from '../../containers';
import type { Option } from './index';
type States = 'Some' | 'None';
export interface MatchObject<T, R> {
Expand Down
2 changes: 1 addition & 1 deletion types/containers/result/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Option, SyncIter } from 'containers';
import { Option, SyncIter } from '../../containers';
import { ResultError } from './error';
import type { Traits, MatchObject, State } from './interface';
export { ResultError };
Expand Down
2 changes: 1 addition & 1 deletion types/containers/result/interface.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Matchable, IntoIter, Unwrapable, PartialUnwrappable, Monad, PartialMonad, Into, Andable, Orable, Option } from 'containers';
import type { Matchable, IntoIter, Unwrapable, PartialUnwrappable, Monad, PartialMonad, Into, Andable, Orable, Option } from '../../containers';
import type { Result } from './index';
export type State = 'Ok' | 'Err';
export interface MatchObject<T, E, R> {
Expand Down
2 changes: 1 addition & 1 deletion types/containers/sync-promise/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Unwrapable } from 'containers';
import type { Unwrapable } from '../../containers';
import type { Executor, IterValue } from './interface';
/**
* implements `Promise` interface but behaves synchronously if possible
Expand Down

0 comments on commit 52b259c

Please sign in to comment.