Skip to content

Commit

Permalink
fix(test): change tiny glob to fast glob
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadBazaz committed Dec 17, 2024
1 parent cb9dfa4 commit cb052ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"@types/react-dom": "^18.2.19",
"eslint": "^8.57.0",
"postcss": "^8",
"tiny-glob": "^0.2.9",
"tsup": "^8.2.0",
"typescript": "^5.3.3"
},
"dependencies": {
"@lit/react": "^1.0.5",
"@material/web": "^2.2.0",
"autoprefixer": "^10.4.19",
"fast-glob": "^3.3.2",
"lit": "^3.2.0",
"react": "^18.2.0",
"react-hot-toast": "^2.4.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "@repo/typescript-config/react-library.json",
"compilerOptions": {
"outDir": "dist"
"outDir": "dist",
"baseUrl": "."
},
"include": ["**/*", "*.cjs"],
"exclude": ["node_modules", "dist"]
Expand Down
6 changes: 2 additions & 4 deletions packages/ui/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import glob from "tiny-glob";
import fg from "fast-glob";
import { defineConfig } from "tsup";

export default defineConfig(async (options) => ({
clean: true,
entry: await glob("./src/**/!(*.d|*.spec).tsx"),
entry: await fg("./src/**/!(*.d|*.spec).tsx"),
splitting: true,
target: "es5",
format: "esm",
// dts: true,
treeshake: true,
bundle: true,
// sourcemap: true,
outDir: "./dist",
minify: !options.watch,
}));

0 comments on commit cb052ad

Please sign in to comment.