Skip to content

Commit 8ede2cd

Browse files
Copilothuangyiirene
andcommitted
Delete plugin.ts and import directly from @objectstack/spec
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent 5ebaabc commit 8ede2cd

File tree

10 files changed

+14
-20
lines changed

10 files changed

+14
-20
lines changed

examples/showcase/enterprise-erp/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"@objectql/cli": "workspace:*",
4444
"@objectql/driver-sql": "workspace:*",
4545
"@objectql/platform-node": "workspace:*",
46+
"@objectstack/spec": "^0.2.0",
4647
"@types/jest": "^30.0.0",
4748
"jest": "^30.2.0",
4849
"ts-jest": "^29.4.6",

examples/showcase/enterprise-erp/src/plugins/audit/audit.plugin.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 { PluginDefinition, PluginContextData } from '@objectql/types';
9+
import type { PluginDefinition, PluginContextData } from '@objectstack/spec';
1010

1111
const AuditLogPlugin: PluginDefinition = {
1212
id: 'audit-log',

packages/foundation/core/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import {
1414
ObjectQLContextOptions,
1515
IObjectQL,
1616
ObjectQLConfig,
17-
PluginDefinition,
1817
HookName,
1918
HookHandler,
2019
HookContext,
2120
ActionHandler,
2221
ActionContext,
2322
LoaderPlugin
2423
} from '@objectql/types';
24+
import type { PluginDefinition } from '@objectstack/spec';
2525
import { ObjectRepository } from './repository';
2626
// import { createDriverFromConnection } from './driver'; // REMOVE THIS
2727

packages/foundation/core/test/app.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
import { ObjectQL } from '../src/app';
1010
import { MockDriver } from './mock-driver';
11-
import { ObjectConfig, PluginDefinition, HookContext, ActionContext, Metadata } from '@objectql/types';
11+
import { ObjectConfig, HookContext, ActionContext, Metadata } from '@objectql/types';
12+
import type { PluginDefinition } from '@objectstack/spec';
1213

1314
const todoObject: ObjectConfig = {
1415
name: 'todo',

packages/foundation/platform-node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"dependencies": {
2323
"@objectql/types": "workspace:*",
2424
"@objectql/core": "workspace:*",
25+
"@objectstack/spec": "^0.2.0",
2526
"fast-glob": "^3.3.2",
2627
"js-yaml": "^4.1.1"
2728
},

packages/foundation/platform-node/src/plugin.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 { PluginDefinition } from '@objectql/types';
9+
import type { PluginDefinition } from '@objectstack/spec';
1010

1111
export function loadPlugin(packageName: string): PluginDefinition {
1212
let mod: any;

packages/foundation/types/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import { MetadataRegistry } from "./registry";
1010
import { Driver } from "./driver";
1111
import { ObjectConfig } from "./object";
12-
import { PluginDefinition } from "./plugin";
12+
import type { PluginDefinition } from "@objectstack/spec";
1313

1414
export interface ObjectQLConfig {
1515
registry?: MetadataRegistry;

packages/foundation/types/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export * from './hook';
2222
export * from './action';
2323
export * from './repository';
2424
export * from './app';
25-
export * from './plugin';
2625
export * from './config';
2726
export * from './context';
2827
export * from './validation';

packages/foundation/types/src/plugin.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 6 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)