From becbafc1ae52a96a64b49fdec81aaead025ca5ff Mon Sep 17 00:00:00 2001 From: shadcn Date: Wed, 8 Mar 2023 18:32:14 +0400 Subject: [PATCH] fix(@shadcn/ui): add start:dev command (#117) --- .github/workflows/prerelease-comment.yml | 4 ++-- packages/cli/.gitignore | 3 ++- packages/cli/package.json | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prerelease-comment.yml b/.github/workflows/prerelease-comment.yml index 53fe3307a..65bf3d064 100644 --- a/.github/workflows/prerelease-comment.yml +++ b/.github/workflows/prerelease-comment.yml @@ -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 }} diff --git a/packages/cli/.gitignore b/packages/cli/.gitignore index 58b6e8633..dac6408c6 100644 --- a/packages/cli/.gitignore +++ b/packages/cli/.gitignore @@ -1,2 +1,3 @@ components -dist \ No newline at end of file +dist +.turbo \ No newline at end of file diff --git a/packages/cli/package.json b/packages/cli/package.json index 6440a6d5d..814b1aaf7 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -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",