Skip to content

Commit

Permalink
fix: add filter to remove falsy values in generateExports (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysm-dev authored Nov 10, 2024
1 parent baa7111 commit 08028e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/generateExports.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFile, writeFile } from "fs/promises";
import { glob } from "glob";

import { drop, map, not, pipe, reduce } from "../src/index";
import { drop, filter, identity, map, not, pipe, reduce } from "../src/index";

const SOURCE_DIR = "./src";
const OUTPUT_DIR = "./dist";
Expand Down Expand Up @@ -54,6 +54,7 @@ async function generateExports() {

const subPathExports = pipe(
fileNames,
filter(identity),
map((name) => {
const conditionalSubPaths = {
types: `${TYPES_ROOT_DIR}/${name}.d.ts`,
Expand Down

0 comments on commit 08028e0

Please sign in to comment.