Skip to content

Commit 3490b6d

Browse files
authored
Merge pull request #452 from objectstack-ai/copilot/fix-upstream-bug-imports
2 parents aac44a9 + 9a31c2f commit 3490b6d

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

packages/cli/src/commands/serve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export const serveCommand = new Command('serve')
3939
console.log(chalk.green(`✓ Configuration loaded`));
4040

4141
// Import ObjectStack runtime
42-
const { ObjectStackKernel } = await import('@objectstack/core');
42+
const { ObjectKernel } = await import('@objectstack/core');
4343

4444
// Create kernel instance
4545
console.log(chalk.yellow(`🔧 Initializing ObjectStack kernel...`));
46-
const kernel = new ObjectStackKernel({
46+
const kernel = new ObjectKernel({
4747
metadata: config.metadata || {},
4848
objects: config.objects || {},
4949
});

packages/objectql/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@objectstack/objectql",
33
"version": "0.7.2",
44
"description": "Isomorphic ObjectQL Engine for ObjectStack",
5-
"main": "src/index.ts",
6-
"types": "src/index.ts",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "tsc",
99
"test": "echo no tests"

packages/objectql/src/engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
DataEngineCountOptions
99
} from '@objectstack/spec/data';
1010
import { DriverInterface, IDataEngine, Logger, createLogger } from '@objectstack/core';
11-
import { SchemaRegistry } from './registry';
11+
import { SchemaRegistry } from './registry.js';
1212

1313
export type HookHandler = (context: HookContext) => Promise<void> | void;
1414

packages/objectql/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Export Registry
2-
export { SchemaRegistry } from './registry';
2+
export { SchemaRegistry } from './registry.js';
33

44
// Export Protocol Implementation
5-
export { ObjectStackProtocolImplementation } from './protocol';
5+
export { ObjectStackProtocolImplementation } from './protocol.js';
66

77
// Export Engine
8-
export { ObjectQL } from './engine';
9-
export type { ObjectQLHostContext, HookHandler } from './engine';
8+
export { ObjectQL } from './engine.js';
9+
export type { ObjectQLHostContext, HookHandler } from './engine.js';
1010

1111
// Export Plugin Shim
12-
export { ObjectQLPlugin } from './plugin';
12+
export { ObjectQLPlugin } from './plugin.js';
1313

1414
// Moved logic to engine.ts

packages/objectql/src/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ObjectQL } from './engine';
2-
import { ObjectStackProtocolImplementation } from './protocol';
1+
import { ObjectQL } from './engine.js';
2+
import { ObjectStackProtocolImplementation } from './protocol.js';
33
import { Plugin, PluginContext } from '@objectstack/core';
44

55
export type { Plugin, PluginContext };

packages/objectql/src/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {
1717
} from '@objectstack/spec/api';
1818

1919
// We import SchemaRegistry directly since this class lives in the same package
20-
import { SchemaRegistry } from './registry';
20+
import { SchemaRegistry } from './registry.js';
2121

2222
/**
2323
* Simple hash function for ETag generation (browser-compatible)

packages/runtime/src/rest-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IHttpServer } from '@objectstack/core';
2-
import { RouteManager } from './route-manager';
2+
import { RouteManager } from './route-manager.js';
33
import { RestServerConfig, CrudOperation, RestApiConfig, CrudEndpointsConfig, MetadataEndpointsConfig, BatchEndpointsConfig, RouteGenerationConfig } from '@objectstack/spec/api';
44
import { ObjectStackProtocol } from '@objectstack/spec/api';
55

0 commit comments

Comments
 (0)