From 44c7822944b87ae019d5d9a1c6f71a51ec9fd812 Mon Sep 17 00:00:00 2001 From: Bryan Kizer Date: Sat, 27 Dec 2025 23:49:15 -0500 Subject: [PATCH] build: change test command and remove path aliases --- packages/combinator/package.json | 3 +-- packages/combinator/tsconfig.json | 3 --- packages/common/package.json | 3 +-- packages/common/src/lookup/lookup.test.ts | 2 +- packages/common/tsconfig.json | 3 --- packages/composition/package.json | 3 +-- packages/composition/src/readme.test.ts | 2 +- packages/composition/tsconfig.json | 3 --- packages/lazy/package.json | 3 +-- packages/lazy/src/helpers/replicate/index.ts | 2 +- packages/lazy/src/helpers/take-eager/index.ts | 4 ++-- packages/lazy/src/iterators/drop-while/index.ts | 2 +- packages/lazy/src/iterators/filter/index.ts | 2 +- packages/lazy/src/iterators/flat-map/index.ts | 2 +- packages/lazy/src/iterators/map/index.ts | 2 +- packages/lazy/src/iterators/scan/index.ts | 2 +- packages/lazy/src/iterators/take-while/index.ts | 2 +- packages/lazy/tsconfig.json | 3 --- packages/list/package.json | 3 +-- packages/list/src/every/index.ts | 2 +- packages/list/src/filter/index.ts | 2 +- packages/list/src/find-index/index.ts | 2 +- packages/list/src/find-last-index/index.ts | 2 +- packages/list/src/find-last/index.ts | 2 +- packages/list/src/find/index.ts | 2 +- packages/list/src/map/index.ts | 2 +- packages/list/src/reduce-right/index.ts | 2 +- packages/list/src/reduce/index.ts | 2 +- packages/list/src/some/index.ts | 2 +- packages/list/tsconfig.json | 3 --- packages/logic/package.json | 3 +-- packages/logic/src/nand/index.ts | 2 -- packages/logic/src/nor/index.ts | 2 -- packages/logic/tsconfig.json | 3 --- packages/ordo/package.json | 3 +-- packages/ordo/tsconfig.json | 3 --- 36 files changed, 28 insertions(+), 60 deletions(-) diff --git a/packages/combinator/package.json b/packages/combinator/package.json index 18ccd15..87b20c4 100644 --- a/packages/combinator/package.json +++ b/packages/combinator/package.json @@ -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", diff --git a/packages/combinator/tsconfig.json b/packages/combinator/tsconfig.json index 034bbe3..742cad7 100644 --- a/packages/combinator/tsconfig.json +++ b/packages/combinator/tsconfig.json @@ -10,9 +10,6 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "paths": { - "@/*": ["./src/*"] - }, "esModuleInterop": true, "skipLibCheck": true, "target": "es2022", diff --git a/packages/common/package.json b/packages/common/package.json index 4755768..efd71d5 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -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:*" diff --git a/packages/common/src/lookup/lookup.test.ts b/packages/common/src/lookup/lookup.test.ts index 3f58aa0..f779561 100644 --- a/packages/common/src/lookup/lookup.test.ts +++ b/packages/common/src/lookup/lookup.test.ts @@ -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)); diff --git a/packages/common/tsconfig.json b/packages/common/tsconfig.json index 034bbe3..742cad7 100644 --- a/packages/common/tsconfig.json +++ b/packages/common/tsconfig.json @@ -10,9 +10,6 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "paths": { - "@/*": ["./src/*"] - }, "esModuleInterop": true, "skipLibCheck": true, "target": "es2022", diff --git a/packages/composition/package.json b/packages/composition/package.json index 8dec110..b56be80 100644 --- a/packages/composition/package.json +++ b/packages/composition/package.json @@ -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", diff --git a/packages/composition/src/readme.test.ts b/packages/composition/src/readme.test.ts index 5aca1dd..270005f 100644 --- a/packages/composition/src/readme.test.ts +++ b/packages/composition/src/readme.test.ts @@ -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', () => { diff --git a/packages/composition/tsconfig.json b/packages/composition/tsconfig.json index 034bbe3..742cad7 100644 --- a/packages/composition/tsconfig.json +++ b/packages/composition/tsconfig.json @@ -10,9 +10,6 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "paths": { - "@/*": ["./src/*"] - }, "esModuleInterop": true, "skipLibCheck": true, "target": "es2022", diff --git a/packages/lazy/package.json b/packages/lazy/package.json index 763c71f..512ac59 100644 --- a/packages/lazy/package.json +++ b/packages/lazy/package.json @@ -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:*" diff --git a/packages/lazy/src/helpers/replicate/index.ts b/packages/lazy/src/helpers/replicate/index.ts index 984a413..ec6eb90 100644 --- a/packages/lazy/src/helpers/replicate/index.ts +++ b/packages/lazy/src/helpers/replicate/index.ts @@ -1,4 +1,4 @@ -import { repeat } from '@/generators/repeat'; +import { repeat } from '../../generators/repeat'; import { take } from '../../iterators/take'; /** diff --git a/packages/lazy/src/helpers/take-eager/index.ts b/packages/lazy/src/helpers/take-eager/index.ts index c9867e2..f1bd554 100644 --- a/packages/lazy/src/helpers/take-eager/index.ts +++ b/packages/lazy/src/helpers/take-eager/index.ts @@ -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. diff --git a/packages/lazy/src/iterators/drop-while/index.ts b/packages/lazy/src/iterators/drop-while/index.ts index 185f51a..a1d41e9 100644 --- a/packages/lazy/src/iterators/drop-while/index.ts +++ b/packages/lazy/src/iterators/drop-while/index.ts @@ -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. diff --git a/packages/lazy/src/iterators/filter/index.ts b/packages/lazy/src/iterators/filter/index.ts index 7e9f395..27e0dce 100644 --- a/packages/lazy/src/iterators/filter/index.ts +++ b/packages/lazy/src/iterators/filter/index.ts @@ -1,4 +1,4 @@ -import type { Predicate } from '@/types'; +import type { Predicate } from '../../types'; /** * Lazily filters elements of an iterable based on a predicate. diff --git a/packages/lazy/src/iterators/flat-map/index.ts b/packages/lazy/src/iterators/flat-map/index.ts index 8c220fc..09d237e 100644 --- a/packages/lazy/src/iterators/flat-map/index.ts +++ b/packages/lazy/src/iterators/flat-map/index.ts @@ -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. diff --git a/packages/lazy/src/iterators/map/index.ts b/packages/lazy/src/iterators/map/index.ts index c77026b..f6ac34a 100644 --- a/packages/lazy/src/iterators/map/index.ts +++ b/packages/lazy/src/iterators/map/index.ts @@ -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. diff --git a/packages/lazy/src/iterators/scan/index.ts b/packages/lazy/src/iterators/scan/index.ts index f15117f..5890790 100644 --- a/packages/lazy/src/iterators/scan/index.ts +++ b/packages/lazy/src/iterators/scan/index.ts @@ -1,4 +1,4 @@ -import type { Accumulator } from '@/types'; +import type { Accumulator } from '../../types'; /** * Lazily yields intermediate accumulator values during a reduction. diff --git a/packages/lazy/src/iterators/take-while/index.ts b/packages/lazy/src/iterators/take-while/index.ts index 992e419..cf3c3bb 100644 --- a/packages/lazy/src/iterators/take-while/index.ts +++ b/packages/lazy/src/iterators/take-while/index.ts @@ -1,4 +1,4 @@ -import type { Predicate } from '@/types'; +import type { Predicate } from '../../types'; /** * Lazily yields elements while the predicate returns true, then stops. diff --git a/packages/lazy/tsconfig.json b/packages/lazy/tsconfig.json index 034bbe3..742cad7 100644 --- a/packages/lazy/tsconfig.json +++ b/packages/lazy/tsconfig.json @@ -10,9 +10,6 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "paths": { - "@/*": ["./src/*"] - }, "esModuleInterop": true, "skipLibCheck": true, "target": "es2022", diff --git a/packages/list/package.json b/packages/list/package.json index 8a2bfb3..7ab1e8a 100644 --- a/packages/list/package.json +++ b/packages/list/package.json @@ -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", diff --git a/packages/list/src/every/index.ts b/packages/list/src/every/index.ts index e3f4924..2c66144 100644 --- a/packages/list/src/every/index.ts +++ b/packages/list/src/every/index.ts @@ -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. diff --git a/packages/list/src/filter/index.ts b/packages/list/src/filter/index.ts index e9435af..718c43b 100644 --- a/packages/list/src/filter/index.ts +++ b/packages/list/src/filter/index.ts @@ -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. diff --git a/packages/list/src/find-index/index.ts b/packages/list/src/find-index/index.ts index ae69cdd..42261fa 100644 --- a/packages/list/src/find-index/index.ts +++ b/packages/list/src/find-index/index.ts @@ -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. diff --git a/packages/list/src/find-last-index/index.ts b/packages/list/src/find-last-index/index.ts index 6077640..bc2eea1 100644 --- a/packages/list/src/find-last-index/index.ts +++ b/packages/list/src/find-last-index/index.ts @@ -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. diff --git a/packages/list/src/find-last/index.ts b/packages/list/src/find-last/index.ts index 8f43221..6d23a8d 100644 --- a/packages/list/src/find-last/index.ts +++ b/packages/list/src/find-last/index.ts @@ -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. diff --git a/packages/list/src/find/index.ts b/packages/list/src/find/index.ts index 5db84bc..88dbf32 100644 --- a/packages/list/src/find/index.ts +++ b/packages/list/src/find/index.ts @@ -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. diff --git a/packages/list/src/map/index.ts b/packages/list/src/map/index.ts index e271a39..6f397be 100644 --- a/packages/list/src/map/index.ts +++ b/packages/list/src/map/index.ts @@ -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. diff --git a/packages/list/src/reduce-right/index.ts b/packages/list/src/reduce-right/index.ts index c6fb40f..d371ed9 100644 --- a/packages/list/src/reduce-right/index.ts +++ b/packages/list/src/reduce-right/index.ts @@ -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. diff --git a/packages/list/src/reduce/index.ts b/packages/list/src/reduce/index.ts index 66121a9..89880d6 100644 --- a/packages/list/src/reduce/index.ts +++ b/packages/list/src/reduce/index.ts @@ -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. diff --git a/packages/list/src/some/index.ts b/packages/list/src/some/index.ts index fb56cd1..c07a48d 100644 --- a/packages/list/src/some/index.ts +++ b/packages/list/src/some/index.ts @@ -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. diff --git a/packages/list/tsconfig.json b/packages/list/tsconfig.json index 034bbe3..742cad7 100644 --- a/packages/list/tsconfig.json +++ b/packages/list/tsconfig.json @@ -10,9 +10,6 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "paths": { - "@/*": ["./src/*"] - }, "esModuleInterop": true, "skipLibCheck": true, "target": "es2022", diff --git a/packages/logic/package.json b/packages/logic/package.json index 343cb29..aa39f30 100644 --- a/packages/logic/package.json +++ b/packages/logic/package.json @@ -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", diff --git a/packages/logic/src/nand/index.ts b/packages/logic/src/nand/index.ts index ef9c13a..4659f4d 100644 --- a/packages/logic/src/nand/index.ts +++ b/packages/logic/src/nand/index.ts @@ -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. diff --git a/packages/logic/src/nor/index.ts b/packages/logic/src/nor/index.ts index d096793..be5f43e 100644 --- a/packages/logic/src/nor/index.ts +++ b/packages/logic/src/nor/index.ts @@ -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. diff --git a/packages/logic/tsconfig.json b/packages/logic/tsconfig.json index 034bbe3..742cad7 100644 --- a/packages/logic/tsconfig.json +++ b/packages/logic/tsconfig.json @@ -10,9 +10,6 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "paths": { - "@/*": ["./src/*"] - }, "esModuleInterop": true, "skipLibCheck": true, "target": "es2022", diff --git a/packages/ordo/package.json b/packages/ordo/package.json index 62e471f..82b63ab 100644 --- a/packages/ordo/package.json +++ b/packages/ordo/package.json @@ -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", diff --git a/packages/ordo/tsconfig.json b/packages/ordo/tsconfig.json index fc0076c..926f5c2 100644 --- a/packages/ordo/tsconfig.json +++ b/packages/ordo/tsconfig.json @@ -10,9 +10,6 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "paths": { - "@/*": ["./src/*"] - }, "esModuleInterop": true, "skipLibCheck": true, "target": "es2022",