mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
This pull request resolves #1926 and prevents issues like it from happening in the future ## Rationale for this PR This PR changes the TypeScript execution package for use in scripts like `build:registry` from `ts-node` to `tsx`. This is because `ts-node` has many difficult quirks to work through (and is slow). In addition, it also has a difficult to understand error for newcomers that *is* reproducible. ### The ts-node error As shown in #1926, using `ts-node` (specifically in `build:registry`) results in this error: `Unknown file extension ".ts" for /ui/apps/www/scripts/build-registry.ts`. There are many issues in the `ts-node` repository documenting this problem: * TypeStrong/ts-node/issues/1062 * TypeStrong/ts-node/issues/2033 * TypeStrong/ts-node/issues/1997 Switching the typescript-in-node system to `tsx`, which uses esbuild under the hood, resolves this error. This PR shouldn't affect tests, representation, etc. and is merely a change of build tools. There is no urgent need to merge this. I accidentally deleted the head repository on #1937. That will not happen again.
73 lines
2.2 KiB
JSON
73 lines
2.2 KiB
JSON
{
|
|
"name": "ui",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"author": {
|
|
"name": "shadcn",
|
|
"url": "https://twitter.com/shadcn"
|
|
},
|
|
"workspaces": [
|
|
"apps/*",
|
|
"packages/*",
|
|
"templates/*"
|
|
],
|
|
"scripts": {
|
|
"build": "turbo run build",
|
|
"build:cli": "turbo --filter=shadcn-ui build",
|
|
"build:registry": "pnpm --filter=www build:registry",
|
|
"dev": "turbo run dev --parallel",
|
|
"cli:dev": "turbo --filter=shadcn-ui dev",
|
|
"cli:start": "pnpm --filter=shadcn-ui start:dev",
|
|
"www:dev": "pnpm --filter=www dev",
|
|
"lint": "turbo run lint",
|
|
"lint:fix": "turbo run lint:fix",
|
|
"preview": "turbo run preview",
|
|
"typecheck": "turbo run typecheck",
|
|
"format:write": "turbo run format:write",
|
|
"format:check": "turbo run format:check",
|
|
"sync:templates": "./scripts/sync-templates.sh \"templates/*\"",
|
|
"prepare": "husky install",
|
|
"check": "turbo lint typecheck format:check",
|
|
"release": "changeset version",
|
|
"pub:beta": "cd packages/cli && pnpm pub:beta",
|
|
"pub:release": "cd packages/cli && pnpm pub:release",
|
|
"test": "turbo run test --force"
|
|
},
|
|
"packageManager": "pnpm@8.5.1",
|
|
"dependencies": {
|
|
"@babel/core": "^7.22.1",
|
|
"@changesets/changelog-github": "^0.4.8",
|
|
"@changesets/cli": "^2.26.1",
|
|
"@commitlint/cli": "^17.6.3",
|
|
"@commitlint/config-conventional": "^17.6.3",
|
|
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
|
|
"@manypkg/cli": "^0.20.0",
|
|
"@types/node": "^17.0.45",
|
|
"@types/react": "^18.2.7",
|
|
"@types/react-dom": "^18.2.4",
|
|
"@typescript-eslint/parser": "^5.59.7",
|
|
"autoprefixer": "^10.4.14",
|
|
"concurrently": "^8.0.1",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.41.0",
|
|
"eslint-config-next": "13.3.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-config-turbo": "^1.9.9",
|
|
"eslint-plugin-react": "^7.32.2",
|
|
"eslint-plugin-tailwindcss": "^3.12.0",
|
|
"husky": "^8.0.3",
|
|
"postcss": "^8.4.24",
|
|
"prettier": "^2.8.8",
|
|
"pretty-quick": "^3.1.3",
|
|
"tailwindcss": "^3.4.0",
|
|
"tailwindcss-animate": "^1.0.5",
|
|
"tsx": "^4.1.4",
|
|
"turbo": "^1.9.9",
|
|
"typescript": "^4.9.5",
|
|
"vite-tsconfig-paths": "^4.2.0",
|
|
"vitest": "^0.31.1"
|
|
}
|
|
}
|