Skip to content

Commit f932e31

Browse files
Copilothotlong
andcommitted
Fix plugin architecture: import Validator from plugin package
- Revert core re-exports to avoid circular dependency - Update test to import from @objectql/plugin-validator - Add plugin-validator as devDependency to platform-node Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 193c640 commit f932e31

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/foundation/core/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,3 @@ export * from './query';
3030
// Export utilities
3131
export * from './util';
3232
export * from './ai-agent';
33-
34-
// Re-export plugin classes for backward compatibility
35-
export { Validator, ValidatorPlugin } from '@objectql/plugin-validator';
36-
export { FormulaEngine, FormulaPlugin } from '@objectql/plugin-formula';

packages/foundation/platform-node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"js-yaml": "^4.1.1"
2828
},
2929
"devDependencies": {
30+
"@objectql/plugin-validator": "workspace:*",
3031
"typescript": "^5.3.0"
3132
}
3233
}

packages/foundation/platform-node/test/validation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
import { Validator } from '@objectql/core';
9+
import { Validator } from '@objectql/plugin-validator';
1010
import {
1111
ValidationContext,
1212
AnyValidationRule,

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)