Skip to content

Commit

Permalink
fix: make c12 look only for components.json for now (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadeghbarati authored Mar 7, 2024
1 parent 33003de commit a3e1db9
Show file tree
Hide file tree
Showing 4 changed files with 187 additions and 122 deletions.
10 changes: 5 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@babel/core": "^7.24.0",
"@babel/parser": "^7.24.0",
"@vue/compiler-sfc": "^3.4",
"c12": "^1.9.0",
"c12": "^1.10.0",
"commander": "^12.0.0",
"consola": "^3.2.3",
"detype": "npm:detypes@^0.7.9",
Expand All @@ -62,7 +62,7 @@
"ora": "^8.0.1",
"pathe": "^1.1.2",
"prompts": "^2.4.2",
"radix-vue": "^1.4.9",
"radix-vue": "^1.5.0",
"ts-morph": "^21.0.1",
"tsconfig-paths": "^4.2.0",
"zod": "^3.22.4"
Expand All @@ -72,12 +72,12 @@
"@types/diff": "^5.0.9",
"@types/fs-extra": "^11.0.4",
"@types/lodash.template": "^4.5.3",
"@types/node": "^20.11.24",
"@types/node": "^20.11.25",
"@types/prompts": "^2.4.9",
"@vitest/ui": "^0.34.4",
"tsup": "^8.0.2",
"type-fest": "^4.10.3",
"typescript": "^5.3.3",
"type-fest": "^4.11.1",
"typescript": "^5.4.2",
"vite-tsconfig-paths": "^4.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/cli/src/utils/get-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export async function getRawConfig(cwd: string): Promise<RawConfig | null> {
try {
const configResult = await c12LoadConfig({
name: 'components',
configFile: 'components',
configFile: 'components.json',
cwd,
})

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/get-package-info.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fileURLToPath } from 'node:url'
import path from 'pathe'
import fs from 'fs-extra'
import { type PackageJson } from 'type-fest'
import type { PackageJson } from 'type-fest'

export function getPackageInfo() {
const packageJsonPath = getPackageFilePath('../package.json')
Expand Down
Loading

0 comments on commit a3e1db9

Please sign in to comment.