Skip to content

Commit

Permalink
Improve watch command
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Nov 7, 2024
1 parent 32465cf commit 486f0ee
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"/dist"
],
"scripts": {
"watch": "rm -rf dist && tsc --watch",
"watch": "rm -rf dist && tsc --watch --preserveWatchOutput",
"build": "rm -rf dist && tsc",
"typeCheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"/dist"
],
"scripts": {
"watch": "rm -rf dist && tsc --watch",
"watch": "rm -rf dist && tsc --watch --preserveWatchOutput",
"build": "rm -rf dist && tsc",
"typeCheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ export const createValidator = (callback: ValidationCallback, initialData: Recor
*/
const validate = (name?: string | NamedInputEvent, value?: unknown, config?: ValidationConfig): void => {
if (typeof name === 'undefined') {
// validator.cancel()

validator(config ?? {})

return
Expand Down
2 changes: 1 addition & 1 deletion packages/react-inertia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"/dist"
],
"scripts": {
"watch": "rm -rf dist && tsc --watch",
"watch": "rm -rf dist && tsc --watch --preserveWatchOutput",
"build": "rm -rf dist && tsc",
"typeCheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"/dist"
],
"scripts": {
"watch": "rm -rf dist && tsc --watch",
"watch": "rm -rf dist && tsc --watch --preserveWatchOutput",
"build": "rm -rf dist && tsc",
"typeCheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-inertia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"/dist"
],
"scripts": {
"watch": "rm -rf dist && tsc --watch",
"watch": "rm -rf dist && tsc --watch --preserveWatchOutput",
"build": "rm -rf dist && tsc",
"typeCheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"/dist"
],
"scripts": {
"watch": "rm -rf dist && tsc --watch",
"watch": "rm -rf dist && tsc --watch --preserveWatchOutput",
"build": "rm -rf dist && tsc",
"typeCheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
Expand Down

0 comments on commit 486f0ee

Please sign in to comment.