UNPKG
@shadcn/ui
Version:
beta (0.0.0-beta.9b4f01c)
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.0-beta.fec42fe
0.0.0-beta.f068b42
0.0.0-beta.b02af45
0.0.0-beta.9b4f01c
0.0.0-beta.7bf3ee4
0.0.0-beta.2b7444d
Add @shadcn/ui components to your app.
github.com/shadcn/ui
shadcn/ui
@shadcn/ui
/
src
/
utils
/
get-package-info.ts
10 lines
(7 loc)
•
243 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
path
from
"path"
import
fs
from
"fs-extra"
import
{ type
PackageJson
}
from
"type-fest"
export
function
getPackageInfo
(
) {
const
packageJsonPath = path.
join
(
"package.json"
)
return
fs.
readJSONSync
(packageJsonPath)
as
PackageJson
}