Compare commits

...

3 Commits

Author SHA1 Message Date
github-actions[bot]
e2d36a3a7d chore(release): version packages (#10046)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-15 10:07:48 +04:00
shadcn
a97ebe54f1 fix: bundle @antfu/ni to resolve tinyexec missing module error (#10041)
* fix: bundle @antfu/ni to resolve tinyexec missing module error

Fixes #10028.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* chore: changeset

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 10:01:15 +04:00
Ahmed Zougari
b2cc0dfe59 fix(docs): update tanstack commands (#10045) 2026-03-15 10:00:58 +04:00
6 changed files with 18 additions and 9 deletions

View File

@@ -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:
```bash
npx shadcn@latest init -t tanstack
npx shadcn@latest init -t start
```
**For a monorepo project, use `--monorepo` flag:**
```bash
npx shadcn@latest init -t tanstack --monorepo
npx shadcn@latest init -t start --monorepo
```
### Add Components

View File

@@ -76,7 +76,7 @@
"rehype-pretty-code": "^0.14.1",
"rimraf": "^6.0.1",
"server-only": "^0.0.1",
"shadcn": "4.0.7",
"shadcn": "4.0.8",
"shiki": "^1.10.1",
"sonner": "^2.0.0",
"swr": "^2.3.6",

View File

@@ -1,5 +1,11 @@
# @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
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "shadcn",
"version": "4.0.7",
"version": "4.0.8",
"description": "Add components to your apps.",
"publishConfig": {
"access": "public"
@@ -79,7 +79,6 @@
"mcp:inspect": "pnpm dlx @modelcontextprotocol/inspector node dist/index.js mcp"
},
"dependencies": {
"@antfu/ni": "^25.0.0",
"@babel/core": "^7.28.0",
"@babel/parser": "^7.28.0",
"@babel/plugin-transform-typescript": "^7.28.0",
@@ -116,6 +115,7 @@
"zod-to-json-schema": "^3.24.6"
},
"devDependencies": {
"@antfu/ni": "^25.0.0",
"@types/babel__core": "^7.20.5",
"@types/fs-extra": "^11.0.4",
"@types/prompts": "^2.4.9",

View File

@@ -19,6 +19,9 @@ export default defineConfig({
target: "esnext",
outDir: "dist",
treeshake: true,
// Bundle @antfu/ni and its dependency tinyexec to avoid
// module resolution failures with npx temporary installs.
noExternal: ["@antfu/ni", "tinyexec"],
onSuccess: async () => {
copyFileSync("src/tailwind.css", "dist/tailwind.css")
},

8
pnpm-lock.yaml generated
View File

@@ -278,7 +278,7 @@ importers:
specifier: ^0.0.1
version: 0.0.1
shadcn:
specifier: 4.0.7
specifier: 4.0.8
version: link:../../packages/shadcn
shiki:
specifier: ^1.10.1
@@ -359,9 +359,6 @@ importers:
packages/shadcn:
dependencies:
'@antfu/ni':
specifier: ^25.0.0
version: 25.0.0
'@babel/core':
specifier: ^7.28.0
version: 7.28.0
@@ -465,6 +462,9 @@ importers:
specifier: ^3.24.6
version: 3.24.6(zod@3.25.76)
devDependencies:
'@antfu/ni':
specifier: ^25.0.0
version: 25.0.0
'@types/babel__core':
specifier: ^7.20.5
version: 7.20.5