Skip to content

Commit cd3838c

Browse files
fix: resolve CI build and test errors
- Add @objectstack/service-package as dependency in packages/rest/package.json (fixes TS2307: Cannot find module '@objectstack/service-package') - Add @objectstack/service-package as dependency in apps/server/package.json (fixes runtime import resolution for objectstack.config.ts) - Remove unused imports (chalk, existsSync) in packages/cli/src/commands/publish.ts (fixes CodeQL warnings) - Add --passWithNoTests flag to service-package test script (fixes vitest exit code 1 when no test files exist) - Update pnpm-lock.yaml Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/48f26ce0-a828-4ddf-8168-3ba164c66cf9 Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent d857c65 commit cd3838c

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

apps/server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@objectstack/service-analytics": "workspace:*",
3636
"@objectstack/service-automation": "workspace:*",
3737
"@objectstack/service-feed": "workspace:*",
38+
"@objectstack/service-package": "workspace:*",
3839
"@objectstack/spec": "workspace:*",
3940
"hono": "^4.12.12",
4041
"pino": "^10.3.1",

packages/cli/src/commands/publish.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
22

33
import { Args, Command, Flags } from '@oclif/core';
4-
import chalk from 'chalk';
54
import { loadConfig } from '../utils/config.js';
65
import { printHeader, printKV, printSuccess, printError, printStep } from '../utils/format.js';
7-
import { existsSync } from 'node:fs';
86

97
export default class Publish extends Command {
108
static override description = 'Publish package to ObjectStack server';

packages/rest/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"dependencies": {
2222
"@objectstack/core": "workspace:*",
2323
"@objectstack/spec": "workspace:*",
24-
"zod": "^4.3.6"
24+
"zod": "^4.3.6",
25+
"@objectstack/service-package": "workspace:*"
2526
},
2627
"devDependencies": {
2728
"typescript": "^6.0.2",

packages/services/service-package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"build": "tsup --config ../../../tsup.config.ts",
18-
"test": "vitest run"
18+
"test": "vitest run --passWithNoTests"
1919
},
2020
"dependencies": {
2121
"@objectstack/core": "workspace:*",

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)