Skip to content

Commit

Permalink
package.json: replace glob-exec with globstar for compiling tests
Browse files Browse the repository at this point in the history
glob-exec does not seem to work on macos
  • Loading branch information
71 committed Jul 11, 2023
1 parent dc68b02 commit e15330a
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 36 deletions.
4 changes: 2 additions & 2 deletions package.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({
"compile:watch": `${esbuildNode} --watch --sourcemap`,
"compile-web": esbuildWeb,
"compile-web:watch": `${esbuildWeb} --watch --sourcemap`,
"compile-tests": "glob-exec {src,test}/**/*.ts -- \"esbuild {{files.join(' ')}} --target=es2021 --format=cjs --outdir=out --outbase=. --sourcemap\"",
"compile-tests": "globstar -- esbuild \"{src,test}/**/*.ts\" --target=es2021 --format=cjs --outdir=out --outbase=. --sourcemap",

"test": "yarn run compile --sourcemap && yarn run compile-tests && node ./out/test/run.js",

Expand All @@ -146,7 +146,7 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({
"esbuild": "^0.18.4",
"eslint": "^8.15.0",
"glob": "^8.0.3",
"glob-exec": "^0.1.1",
"globstar": "^1.0.0",
"mocha": "^10.0.0",
"source-map-support": "^0.5.21",
"ts-loader": "^9.3.1",
Expand Down
4 changes: 2 additions & 2 deletions package.json

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

Loading

0 comments on commit e15330a

Please sign in to comment.