mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-24 13:15:45 +00:00
Compare commits
3 Commits
shadcn@4.0
...
shadcn@4.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e2d36a3a7d | ||
|
|
a97ebe54f1 | ||
|
|
b2cc0dfe59 |
@@ -16,13 +16,13 @@ description: Install and configure shadcn/ui for TanStack Start.
|
|||||||
Run the following command to create a new TanStack Start project with shadcn/ui:
|
Run the following command to create a new TanStack Start project with shadcn/ui:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx shadcn@latest init -t tanstack
|
npx shadcn@latest init -t start
|
||||||
```
|
```
|
||||||
|
|
||||||
**For a monorepo project, use `--monorepo` flag:**
|
**For a monorepo project, use `--monorepo` flag:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx shadcn@latest init -t tanstack --monorepo
|
npx shadcn@latest init -t start --monorepo
|
||||||
```
|
```
|
||||||
|
|
||||||
### Add Components
|
### Add Components
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
"rehype-pretty-code": "^0.14.1",
|
"rehype-pretty-code": "^0.14.1",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"server-only": "^0.0.1",
|
"server-only": "^0.0.1",
|
||||||
"shadcn": "4.0.7",
|
"shadcn": "4.0.8",
|
||||||
"shiki": "^1.10.1",
|
"shiki": "^1.10.1",
|
||||||
"sonner": "^2.0.0",
|
"sonner": "^2.0.0",
|
||||||
"swr": "^2.3.6",
|
"swr": "^2.3.6",
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# @shadcn/ui
|
# @shadcn/ui
|
||||||
|
|
||||||
|
## 4.0.8
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#10041](https://github.com/shadcn-ui/ui/pull/10041) [`a97ebe54f1824032d8ad00d1d0c079e3dc6f52d7`](https://github.com/shadcn-ui/ui/commit/a97ebe54f1824032d8ad00d1d0c079e3dc6f52d7) Thanks [@shadcn](https://github.com/shadcn)! - Bundle @antfu/ni and tinyexec to fix missing module error with npx
|
||||||
|
|
||||||
## 4.0.7
|
## 4.0.7
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shadcn",
|
"name": "shadcn",
|
||||||
"version": "4.0.7",
|
"version": "4.0.8",
|
||||||
"description": "Add components to your apps.",
|
"description": "Add components to your apps.",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
@@ -79,7 +79,6 @@
|
|||||||
"mcp:inspect": "pnpm dlx @modelcontextprotocol/inspector node dist/index.js mcp"
|
"mcp:inspect": "pnpm dlx @modelcontextprotocol/inspector node dist/index.js mcp"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/ni": "^25.0.0",
|
|
||||||
"@babel/core": "^7.28.0",
|
"@babel/core": "^7.28.0",
|
||||||
"@babel/parser": "^7.28.0",
|
"@babel/parser": "^7.28.0",
|
||||||
"@babel/plugin-transform-typescript": "^7.28.0",
|
"@babel/plugin-transform-typescript": "^7.28.0",
|
||||||
@@ -116,6 +115,7 @@
|
|||||||
"zod-to-json-schema": "^3.24.6"
|
"zod-to-json-schema": "^3.24.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@antfu/ni": "^25.0.0",
|
||||||
"@types/babel__core": "^7.20.5",
|
"@types/babel__core": "^7.20.5",
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/prompts": "^2.4.9",
|
"@types/prompts": "^2.4.9",
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ export default defineConfig({
|
|||||||
target: "esnext",
|
target: "esnext",
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
treeshake: true,
|
treeshake: true,
|
||||||
|
// Bundle @antfu/ni and its dependency tinyexec to avoid
|
||||||
|
// module resolution failures with npx temporary installs.
|
||||||
|
noExternal: ["@antfu/ni", "tinyexec"],
|
||||||
onSuccess: async () => {
|
onSuccess: async () => {
|
||||||
copyFileSync("src/tailwind.css", "dist/tailwind.css")
|
copyFileSync("src/tailwind.css", "dist/tailwind.css")
|
||||||
},
|
},
|
||||||
|
|||||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@@ -278,7 +278,7 @@ importers:
|
|||||||
specifier: ^0.0.1
|
specifier: ^0.0.1
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
shadcn:
|
shadcn:
|
||||||
specifier: 4.0.7
|
specifier: 4.0.8
|
||||||
version: link:../../packages/shadcn
|
version: link:../../packages/shadcn
|
||||||
shiki:
|
shiki:
|
||||||
specifier: ^1.10.1
|
specifier: ^1.10.1
|
||||||
@@ -359,9 +359,6 @@ importers:
|
|||||||
|
|
||||||
packages/shadcn:
|
packages/shadcn:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@antfu/ni':
|
|
||||||
specifier: ^25.0.0
|
|
||||||
version: 25.0.0
|
|
||||||
'@babel/core':
|
'@babel/core':
|
||||||
specifier: ^7.28.0
|
specifier: ^7.28.0
|
||||||
version: 7.28.0
|
version: 7.28.0
|
||||||
@@ -465,6 +462,9 @@ importers:
|
|||||||
specifier: ^3.24.6
|
specifier: ^3.24.6
|
||||||
version: 3.24.6(zod@3.25.76)
|
version: 3.24.6(zod@3.25.76)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
'@antfu/ni':
|
||||||
|
specifier: ^25.0.0
|
||||||
|
version: 25.0.0
|
||||||
'@types/babel__core':
|
'@types/babel__core':
|
||||||
specifier: ^7.20.5
|
specifier: ^7.20.5
|
||||||
version: 7.20.5
|
version: 7.20.5
|
||||||
|
|||||||
Reference in New Issue
Block a user