Skip to content

Commit

Permalink
chore: moved join and split on strings folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteoood committed Dec 1, 2023
1 parent 59d3cbe commit d64728e
Show file tree
Hide file tree
Showing 7 changed files with 198 additions and 12 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"devDependencies": {
"@biomejs/biome": "^1.4.0",
"@edge-runtime/vm": "^3.1.7",
"glob": "^10.3.10",
"happy-dom": "^12.10.3",
"tsup": "^8.0.1",
"typescript": "^5.3.2",
Expand Down
187 changes: 187 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions test/join.test.ts → test/strings/join.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, test } from "vitest";
import { fromIterable } from "../src/fromIterable";
import { join } from "../src/join";
import { pipeline } from "../src/pipeline";
import { toArray } from "../src/toArray";
import { fromIterable } from "../../src/fromIterable";
import { join } from "../../src/strings/join";
import { pipeline } from "../../src/pipeline";
import { toArray } from "../../src/toArray";

describe("join", () => {
test("should join strings", async () => {
Expand Down
8 changes: 4 additions & 4 deletions test/split.test.ts → test/strings/split.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { describe, expect, test } from "vitest";

import { fromIterable } from "../src/fromIterable";
import { pipeline } from "../src/pipeline";
import { split } from "../src/split";
import { toArray } from "../src/toArray";
import { fromIterable } from "../../src/fromIterable";
import { pipeline } from "../../src/pipeline";
import { split } from "../../src/strings/split";
import { toArray } from "../../src/toArray";

describe("split", () => {
test("should split strings", async () => {
Expand Down
6 changes: 2 additions & 4 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { readdirSync } from 'fs';
import { globSync } from 'glob';
import { defineConfig } from 'tsup';

const tsFiles = readdirSync('./src')
.filter(file => file.endsWith('.ts'))
.map(file => `./src/${file}`)
const tsFiles = globSync('./src/**/*.ts')

export default defineConfig({
entry: tsFiles,
Expand Down

0 comments on commit d64728e

Please sign in to comment.