File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
alias b := build
2
2
alias l := lint
3
3
alias t := test
4
+ alias reload-all := reload-all-deno-cache
4
5
5
6
examples := " deno-fresh express faas-experimental fastify hono-bun react-app-experimental"
6
7
@@ -30,7 +31,8 @@ build-parcel-transformer:
30
31
build-typescript-plugin :
31
32
cd packages/ typescript-plugin; just build
32
33
33
- build-all : build build-examples build-parcel-transformer build-typescript-plugin
34
+ # NOTE - Build the non-deno things first, then the deno things (this order is important)
35
+ build-all : build-parcel-transformer build-typescript-plugin build build-examples
34
36
35
37
test :
36
38
deno test {{ test_permissions}} packages/ autometrics
@@ -89,6 +91,17 @@ clean-typescript-plugin:
89
91
90
92
clean -all: clean clean -examples clean -parcel-transformer clean -typescript-plugin
91
93
94
+ reload-all-deno-cache :
95
+ #!/usr/bin/env bash
96
+ set -euxo pipefail
97
+ for package in {{ lib_packages}} ; do
98
+ pushd " packages/$package"
99
+ # Ignore directories named `tests` or `dist` or `node_modules`
100
+ # Then reload the Deno cache for any imports in files that end in .ts or .js
101
+ find . \( -type d \( -name " tests" -o -name " dist" -o -name " node_modules" \) -prune \) -o \( -type f \( -name " *.ts" \) -exec deno cache --reload {} + \)
102
+ popd
103
+ done
104
+
92
105
fix :
93
106
deno run {{ biome_permissions}} npm:@biomejs/ biome check --apply-unsafe packages
94
107
You can’t perform that action at this time.
0 commit comments