Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/combinator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
"build": "pnpm tsdown",
"format": "pnpm biome check --write",
"lint": "pnpm biome lint",
"test": "pnpm vitest --dir=src",
"test:types": "pnpm vitest --typecheck"
"test": "pnpm vitest --dir=src --typecheck"
},
"devDependencies": {
"@vitest/coverage-istanbul": "^4.0.8",
Expand Down
3 changes: 0 additions & 3 deletions packages/combinator/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {
"@/*": ["./src/*"]
},
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
Expand Down
3 changes: 1 addition & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"build": "pnpm tsdown",
"format": "pnpm biome check --write",
"lint": "pnpm biome lint",
"test": "pnpm vitest --dir=src",
"test:types": "pnpm vitest --typecheck"
"test": "pnpm vitest --dir=src --typecheck"
},
"dependencies": {
"@certes/combinator": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/lookup/lookup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const colorTable = {
FIZZ: [230, 0, 0, 155] as Color,
BUZZ: [0, 128, 0, 155] as Color,
TEST: null as unknown as Color,
};
} as const;

const defaultColor: Color = [128, 128, 128, 155];
const colorLookup = lookup(colorTable, defaultVal(defaultColor));
Expand Down
3 changes: 0 additions & 3 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {
"@/*": ["./src/*"]
},
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
Expand Down
3 changes: 1 addition & 2 deletions packages/composition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
"build": "pnpm tsdown",
"format": "pnpm biome check --write",
"lint": "pnpm biome lint",
"test": "pnpm vitest --dir=src",
"test:types": "pnpm vitest --typecheck"
"test": "pnpm vitest --dir=src --typecheck"
},
"devDependencies": {
"@vitest/coverage-istanbul": "^4.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/composition/src/readme.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { compose, composeAsync, curry, pipe, pipeAsync } from './';
import { compose, composeAsync, curry, pipe, pipeAsync } from '.';

describe('README Examples', () => {
describe('Synchronous Composition', () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/composition/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {
"@/*": ["./src/*"]
},
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
Expand Down
3 changes: 1 addition & 2 deletions packages/lazy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
"build": "pnpm tsdown",
"format": "pnpm biome check --write",
"lint": "pnpm biome lint",
"test": "pnpm vitest --dir=src",
"test:types": "pnpm vitest --typecheck"
"test": "pnpm vitest --dir=src --typecheck"
},
"dependencies": {
"@certes/composition": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy/src/helpers/replicate/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { repeat } from '@/generators/repeat';
import { repeat } from '../../generators/repeat';
import { take } from '../../iterators/take';

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/lazy/src/helpers/take-eager/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { compose } from '@certes/composition/compose';
import { collect } from '@/helpers/collect';
import { take } from '@/iterators/take';
import { collect } from '../../helpers/collect';
import { take } from '../../iterators/take';

/**
* Takes `n` elements and immediately collects them into an array.
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy/src/iterators/drop-while/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Predicate } from '@/types';
import type { Predicate } from '../../types';

/**
* Lazily skips elements while the predicate returns true, then yields the rest.
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy/src/iterators/filter/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Predicate } from '@/types';
import type { Predicate } from '../../types';

/**
* Lazily filters elements of an iterable based on a predicate.
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy/src/iterators/flat-map/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MapFn } from '@/types';
import type { MapFn } from '../../types';

/**
* Lazily maps each element to an iterable and flattens the results.
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy/src/iterators/map/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MapFn } from '@/types';
import type { MapFn } from '../../types';

/**
* Lazily transforms each element of an iterable using a mapping function.
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy/src/iterators/scan/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Accumulator } from '@/types';
import type { Accumulator } from '../../types';

/**
* Lazily yields intermediate accumulator values during a reduction.
Expand Down
2 changes: 1 addition & 1 deletion packages/lazy/src/iterators/take-while/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Predicate } from '@/types';
import type { Predicate } from '../../types';

/**
* Lazily yields elements while the predicate returns true, then stops.
Expand Down
3 changes: 0 additions & 3 deletions packages/lazy/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {
"@/*": ["./src/*"]
},
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
Expand Down
3 changes: 1 addition & 2 deletions packages/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
"build": "pnpm tsdown",
"format": "pnpm biome check --write",
"lint": "pnpm biome lint",
"test": "pnpm vitest --dir=src",
"test:types": "pnpm vitest --typecheck"
"test": "pnpm vitest --dir=src --typecheck"
},
"devDependencies": {
"@vitest/coverage-istanbul": "^4.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/every/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Comparator } from '@/types';
import type { Comparator } from '../types';

/**
* Tests whether all elements in the array pass the given comparator.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/filter/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Predicate } from '@/types';
import type { Predicate } from '../types';

/**
* Returns a copy of the given array of elements that satisfy the predicate.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/find-index/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Predicate } from '@/types';
import type { Predicate } from '../types';

/**
* Returns the first index of the given array that satisfies the predicate.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/find-last-index/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Predicate } from '@/types';
import type { Predicate } from '../types';

/**
* Returns the last index of the given array that satisfies the predicate.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/find-last/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Predicate } from '@/types';
import type { Predicate } from '../types';

/**
* Returns the last element of the given array that satisfies the predicate.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/find/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Predicate } from '@/types';
import type { Predicate } from '../types';

/**
* Returns the first element of the given array that satisfies the predicate.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/map/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MapFn } from '@/types';
import type { MapFn } from '../types';

/**
* Maps over the given array, calling the mapping function for each element.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/reduce-right/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Accumulator } from '@/types';
import type { Accumulator } from '../types';

/**
* Calls the accumulator with each element of the given array, starting with the last element. Returns the final result.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/reduce/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Accumulator } from '@/types';
import type { Accumulator } from '../types';

/**
* Calls the accumulator with each element of the given array, starting with the first element. Returns the final result.
Expand Down
2 changes: 1 addition & 1 deletion packages/list/src/some/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Comparator } from '@/types';
import type { Comparator } from '../types';

/**
* Tests whether any elements in the array pass the given comparator.
Expand Down
3 changes: 0 additions & 3 deletions packages/list/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {
"@/*": ["./src/*"]
},
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
Expand Down
3 changes: 1 addition & 2 deletions packages/logic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
"build": "pnpm tsdown",
"format": "pnpm biome check --write",
"lint": "pnpm biome lint",
"test": "pnpm vitest --dir=src",
"test:types": "pnpm vitest --typecheck"
"test": "pnpm vitest --dir=src --typecheck"
},
"devDependencies": {
"@vitest/coverage-istanbul": "^4.0.8",
Expand Down
2 changes: 0 additions & 2 deletions packages/logic/src/nand/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { and, andFn } from '../and';

/**
* Logical non-conjunction (NAND) operation. Returns `false` only when both
* operands are truthy, implementing the negation of Boolean AND.
Expand Down
2 changes: 0 additions & 2 deletions packages/logic/src/nor/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { or, orFn } from '../or';

/**
* Logical non-disjunction (NOR) operation. Returns `true` only when both
* operands are falsy, implementing the negation of Boolean OR.
Expand Down
3 changes: 0 additions & 3 deletions packages/logic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {
"@/*": ["./src/*"]
},
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
Expand Down
3 changes: 1 addition & 2 deletions packages/ordo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"build": "pnpm tsdown",
"format": "pnpm biome check --write",
"lint": "pnpm biome lint",
"test": "pnpm vitest --dir=src",
"test:types": "pnpm vitest --typecheck"
"test": "pnpm vitest --dir=src --typecheck"
},
"devDependencies": {
"@vitest/coverage-istanbul": "^4.0.8",
Expand Down
3 changes: 0 additions & 3 deletions packages/ordo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"paths": {
"@/*": ["./src/*"]
},
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
Expand Down