Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Replace fast-glob and glob with tinyglobby #1603

Merged
merged 3 commits into from
Oct 18, 2024
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
5 changes: 5 additions & 0 deletions .changeset/rotten-zebras-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": patch
---

chore: Replace `fast-glob` and `glob` with `tinyglobby`
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"clsx": "^2.1.1",
"coveralls": "^3.1.1",
"debug": "^4.3.4",
"fast-glob": "^3.3.0",
"graphql": "^16.7.1",
"postcss": "^8.4.38",
"rimraf": "^3.0.2",
Expand All @@ -52,6 +51,7 @@
"tailwind-merge": "^2.3.0",
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7",
"tinyglobby": "^0.2.2",
"tippy.js": "^6.3.7",
"turbo": "^1.10.7",
"typescript": "5.3.3",
Expand Down
14 changes: 8 additions & 6 deletions packages/start/build.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { glob } from "glob";
import { copyFile, mkdir, rm } from "node:fs/promises";
import { dirname, join } from "node:path";
import { glob } from "tinyglobby";

try {
await rm("dist", { recursive: true });
} catch {}

const assets = await glob(`**/*.css`, { cwd: join(process.cwd(), "src") })
const assets = await glob(`**/*.css`, { cwd: join(process.cwd(), "src") });

await Promise.all(assets.map(async a => {
await mkdir(join("dist", dirname(a)), { recursive: true })
await copyFile(join("src", a), join("dist", a));
}))
await Promise.all(
assets.map(async a => {
await mkdir(join("dist", dirname(a)), { recursive: true });
await copyFile(join("src", a), join("dist", a));
})
);
2 changes: 1 addition & 1 deletion packages/start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@
"@vinxi/server-functions": "^0.4.3",
"defu": "^6.1.2",
"error-stack-parser": "^2.1.4",
"glob": "^10.3.10",
"html-to-image": "^1.11.11",
"radix3": "^1.1.0",
"seroval": "^1.0.2",
"seroval-plugins": "^1.0.2",
"shikiji": "^0.9.12",
"source-map-js": "^1.0.2",
"terracotta": "^1.0.4",
"tinyglobby": "^0.2.2",
"vite-plugin-solid": "^2.10.2"
}
}
Loading
Loading