Skip to content

Commit 3c4419b

Browse files
committed
Use node glob
1 parent 7b6f758 commit 3c4419b

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

esbuild.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pkg from "./package.json" with { type: "json" };
22
import esbuild from "esbuild";
33
import { glsl } from "esbuild-plugin-glsl";
4-
import glob from "tiny-glob";
4+
import { glob } from "node:fs/promises";
55

66
const minify = process.argv.includes("-m");
77
const external = ["three", "spatial-controls", "tweakpane", "@tweakpane/plugin-essentials"];
@@ -17,7 +17,7 @@ const banner = `/**
1717
// #region Library
1818

1919
const workers = {
20-
entryPoints: await glob("./src/**/worker.ts"),
20+
entryPoints: await Array.fromAsync(glob("./src/**/worker.ts")),
2121
outExtension: { ".js": ".txt" },
2222
outdir: "./temp",
2323
logLevel: "info",
@@ -55,7 +55,7 @@ const vendor = {
5555

5656
const manual = {
5757
entryPoints: ["./manual/assets/js/src/index.ts"]
58-
.concat(await glob("./manual/assets/js/src/demos/*.ts")),
58+
.concat(await Array.fromAsync(glob("./manual/assets/js/src/demos/*.ts"))),
5959
outdir: "./manual/assets/js/dist",
6060
logLevel: "info",
6161
format: "iife",
@@ -67,7 +67,7 @@ const manual = {
6767
};
6868

6969
const inline = {
70-
entryPoints: await glob("./manual/assets/js/src/inline/*.ts"),
70+
entryPoints: await Array.fromAsync(glob("./manual/assets/js/src/inline/*.ts")),
7171
outdir: "./manual/assets/js/dist/inline",
7272
logLevel: "info",
7373
format: "iife",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
"stylelint": "17.x.x",
117117
"stylelint-config-standard-scss": "17.x.x",
118118
"stylelint-order": "8.x.x",
119-
"tiny-glob": "0.x.x",
120119
"tsx": "4.x.x",
121120
"tweakpane": "4.x.x",
122121
"typedoc": "0.x.x",

0 commit comments

Comments
 (0)