Skip to content

Commit

Permalink
fix: prepublish
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteoood committed Dec 7, 2023
1 parent 6fc7a50 commit 66c6d32
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enable-pre-post-scripts=true
auto-install-peers=true
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"test:node": "vitest",
"test:browser": "vitest --config ./vitest-browser.config.ts",
"test:edge": "vitest --config ./vitest-edge.config.ts",
"build": "tsup"
"build": "tsup",
"prepublish": "pnpm run build"
},
"keywords": [
"streams"
Expand Down
16 changes: 12 additions & 4 deletions test/pipeline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,19 @@ describe("pipeline", () => {
const destinationArrayTimes3 = [];

await Promise.all([
pipeline(source1, map((value) => value * 2), toArray(destinationArrayTimes2)),
pipeline(source2, map((value) => value * 3), toArray(destinationArrayTimes3)),
])
pipeline(
source1,
map((value) => value * 2),
toArray(destinationArrayTimes2),
),
pipeline(
source2,
map((value) => value * 3),
toArray(destinationArrayTimes3),
),
]);

expect(destinationArrayTimes2).toEqual([2, 4, 6]);
expect(destinationArrayTimes3).toEqual([3, 6, 9]);
})
});
});

0 comments on commit 66c6d32

Please sign in to comment.