Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 0 additions & 5 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
import { manageIgnoreFiles } from './ignore-files.js'
import { contentHash, getConfigPath, getLockPath, readLock, upsertLockEntry } from './io.js'
import { getReader } from './manifest/index.js'
import { migrateLegacyWorkspace } from './migrate-legacy.js'
import { fetchRegistryEntry, parseDocSpec, parseEcosystem, resolveFromRegistry } from './registry.js'
import { getResolver } from './resolvers/index.js'
import { generateSkill, removeSkill } from './skill.js'
Expand Down Expand Up @@ -255,7 +254,6 @@ const addCmd = defineCommand({
},
async run({ args }) {
const projectDir = process.cwd()
migrateLegacyWorkspace(projectDir)
let effectiveSpec = args.spec
const parsed = parseDocSpec(effectiveSpec)
const { spec: cleanSpec } = parseEcosystem(effectiveSpec)
Expand Down Expand Up @@ -538,7 +536,6 @@ export async function runSync(
projectDir: string,
options: RunSyncOptions = {},
): Promise<{ drifted: number, unchanged: number, failed: number }> {
migrateLegacyWorkspace(projectDir)
const config = loadConfig(projectDir)
const lock = readLock(projectDir)

Expand Down Expand Up @@ -602,7 +599,6 @@ const listCmd = defineCommand({
meta: { name: 'list', description: 'List downloaded documentation' },
run() {
const projectDir = process.cwd()
migrateLegacyWorkspace(projectDir)
const entries = listDocs(projectDir)

if (entries.length === 0) {
Expand All @@ -624,7 +620,6 @@ const removeCmd = defineCommand({
},
run({ args }) {
const projectDir = process.cwd()
migrateLegacyWorkspace(projectDir)
const { name, version } = parseSpec(args.spec)
const hasExplicitVersion = args.spec.lastIndexOf('@') > 0
const ver = hasExplicitVersion ? version : undefined
Expand Down
103 changes: 0 additions & 103 deletions packages/cli/src/migrate-legacy.ts

This file was deleted.

114 changes: 0 additions & 114 deletions packages/cli/test/migrate-legacy.test.ts

This file was deleted.