Skip to content

Commit ec46538

Browse files
committed
build: add exceptions:dev composer command
1 parent e5e633c commit ec46538

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@
256256
"rector": "vendor/bin/rector process --no-ansi",
257257
"merge": "php -d\"error_reporting = E_ALL & ~E_DEPRECATED\" vendor/bin/monorepo-builder merge",
258258
"intl:plural": "./packages/intl/bin/plural-rules.php",
259+
"exceptions:dev": "cd ./packages/router/src/Exceptions/local && bun i && bun run dev",
259260
"exceptions:build": "cd ./packages/router/src/Exceptions/local && bun i && bun run build",
260261
"release": [
261262
"composer qa",

packages/router/src/Exceptions/local/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export default defineConfig({
4747
viteSingleFile(),
4848
],
4949
build: {
50+
watch: {
51+
exclude: 'dist/**', // prevent infinite loops while using --watch
52+
},
5053
rollupOptions: {
5154
input: ['./src/entrypoint/main.ts'],
5255
output: {

0 commit comments

Comments
 (0)