Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ export function registerConfigCommand(program: Command): void {

if (applyNow) {
try {
execSync('npx openspec update', { stdio: 'inherit', cwd: projectDir });
execSync('openspec update', { stdio: 'inherit', cwd: projectDir });
console.log('Run `openspec update` in your other projects to apply.');
} catch {
console.error('`openspec update` failed. Please run it manually to apply the profile changes.');
Expand Down
2 changes: 1 addition & 1 deletion test/commands/config-profile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ describe('config profile interactive flow', () => {
await runConfigCommand(['profile']);

expect(getGlobalConfig().delivery).toBe('skills');
expect(execSync).toHaveBeenCalledWith('npx openspec update', {
expect(execSync).toHaveBeenCalledWith('openspec update', {
stdio: 'inherit',
cwd: fs.realpathSync(tempDir),
});
Expand Down