chore: release 0.1.0
This commit is contained in:
parent
b89d7d3ce5
commit
16a42b1a27
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "shadcn-vue",
|
"name": "shadcn-vue",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.0.3",
|
"version": "0.1.0",
|
||||||
"description": "Add components to your apps.",
|
"description": "Add components to your apps.",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
"release": "changeset version",
|
"release": "changeset version",
|
||||||
"pub:beta": "pnpm build && pnpm publish --no-git-checks --access public --tag beta",
|
"pub:beta": "pnpm build && pnpm publish --no-git-checks --access public --tag beta",
|
||||||
"pub:next": "pnpm build && pnpm publish --no-git-checks --access public --tag next",
|
"pub:next": "pnpm build && pnpm publish --no-git-checks --access public --tag next",
|
||||||
"pub:release": "pnpm build && pnpm publish --access public",
|
"pub:release": "pnpm build && pnpm publish --no-git-checks --access public",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:ui": "vitest --ui"
|
"test:ui": "vitest --ui"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ export const add = new Command()
|
||||||
const skippedDeps = new Set<string>()
|
const skippedDeps = new Set<string>()
|
||||||
for (const item of payload) {
|
for (const item of payload) {
|
||||||
spinner.text = `Installing ${item.name}...`
|
spinner.text = `Installing ${item.name}...`
|
||||||
const targetDir = await getItemTargetPath(
|
const targetDir = getItemTargetPath(
|
||||||
config,
|
config,
|
||||||
item,
|
item,
|
||||||
options.path ? path.resolve(cwd, options.path) : undefined,
|
options.path ? path.resolve(cwd, options.path) : undefined,
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,16 @@
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
|
import { fileURLToPath } from 'node:url'
|
||||||
import fs from 'fs-extra'
|
import fs from 'fs-extra'
|
||||||
import { type PackageJson } from 'type-fest'
|
import { type PackageJson } from 'type-fest'
|
||||||
|
|
||||||
export function getPackageInfo() {
|
export function getPackageInfo() {
|
||||||
const packageJsonPath = path.join('package.json')
|
const packageJsonPath = getPackageFilePath('../package.json')
|
||||||
|
|
||||||
return fs.readJSONSync(packageJsonPath) as PackageJson
|
return fs.readJSONSync(packageJsonPath) as PackageJson
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getPackageFilePath(filePath: string) {
|
||||||
|
const distPath = fileURLToPath(new URL('.', import.meta.url))
|
||||||
|
|
||||||
|
return path.resolve(distPath, filePath)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user