fix(@shadcn/ui): add start:dev command (#117)

This commit is contained in:
shadcn
2023-03-08 18:32:14 +04:00
committed by GitHub
parent cfe2718113
commit becbafc1ae
3 changed files with 5 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ jobs:
for (const artifact of allArtifacts.data.artifacts) {
// Extract the PR number and package version from the artifact name
const match = /^npm-package-shadcn-ui@(.*?)-pr-(\d+)/.exec(artifact.name);
const match = /^npm-package-@shadcn-ui@(.*?)-pr-(\d+)/.exec(artifact.name);
if (match) {
require("fs").appendFileSync(
@@ -46,7 +46,7 @@ jobs:
with:
number: ${{ env.WORKFLOW_RUN_PR }}
message: |
A new @shadcn/ui prerelease is available for testing. You can use this latest build in your project with:
A new prerelease is available for testing:
```sh
pnpm @shadcn/ui@${{ env.BETA_PACKAGE_VERSION }}

View File

@@ -1,2 +1,3 @@
components
dist
dist
.turbo

View File

@@ -32,6 +32,7 @@
"build": "tsup",
"typecheck": "tsc --noEmit",
"clean": "rimraf dist && rimraf components",
"start:dev": "cross-env COMPONENTS_BASE_URL=http://localhost:3000 node dist/index.js",
"start": "node dist/index.js",
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",