From cf252d75c0c932b2780a761897810443f0a52fec Mon Sep 17 00:00:00 2001 From: Netanel Gilad Date: Thu, 14 Aug 2025 10:24:51 +0300 Subject: [PATCH 1/7] better preview versions - real npm registry --- .github/workflows/main-publish.yml | 29 +++++++++++++- .github/workflows/preview-publish.yml | 55 +++++++++++++++++++-------- 2 files changed, 66 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main-publish.yml b/.github/workflows/main-publish.yml index c0e785d..44e49b2 100644 --- a/.github/workflows/main-publish.yml +++ b/.github/workflows/main-publish.yml @@ -27,8 +27,33 @@ jobs: - name: Build package run: npm run build - - name: Publish main version with pkg.pr.new - run: npx pkg-pr-new publish --json output.json --comment=off + - name: Generate preview package name and version + id: preview_info + run: | + COMMIT_HASH="${{ github.sha }}" + SHORT_COMMIT="${COMMIT_HASH:0:7}" + PREVIEW_VERSION="commit-$SHORT_COMMIT" + + echo "version=$PREVIEW_VERSION" >> $GITHUB_OUTPUT + echo "package_name=@base44/preview-sdk" >> $GITHUB_OUTPUT + echo "full_package=@base44/preview-sdk@$PREVIEW_VERSION" >> $GITHUB_OUTPUT + + - name: Update package.json for preview + run: | + # Create a backup of original package.json + cp package.json package.json.bak + + # Update name and version for preview + npm pkg set name="${{ steps.preview_info.outputs.package_name }}" + npm pkg set version="${{ steps.preview_info.outputs.version }}" + + - name: Publish preview package + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Restore original package.json + run: mv package.json.bak package.json permissions: contents: read diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index 1990590..41e14a2 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -20,6 +20,7 @@ jobs: with: node-version: 20 cache: "npm" + registry-url: "https://registry.npmjs.org" - name: Install dependencies run: npm install @@ -27,26 +28,48 @@ jobs: - name: Build package run: npm run build - - name: Publish preview with pkg.pr.new - run: npx pkg-pr-new publish --json output.json --comment=off + - name: Generate preview package name and version + id: preview_info + run: | + PR_NUMBER="${{ github.event.number }}" + COMMIT_HASH="${{ github.sha }}" + SHORT_COMMIT="${COMMIT_HASH:0:7}" + + if [ ! -z "$PR_NUMBER" ]; then + PREVIEW_VERSION="pr-$PR_NUMBER" + else + PREVIEW_VERSION="commit-$SHORT_COMMIT" + fi + + echo "version=$PREVIEW_VERSION" >> $GITHUB_OUTPUT + echo "package_name=@base44/preview-sdk" >> $GITHUB_OUTPUT + echo "full_package=@base44/preview-sdk@$PREVIEW_VERSION" >> $GITHUB_OUTPUT + + - name: Update package.json for preview + run: | + # Create a backup of original package.json + cp package.json package.json.bak + + # Update name and version for preview + npm pkg set name="${{ steps.preview_info.outputs.package_name }}" + npm pkg set version="${{ steps.preview_info.outputs.version }}" + + - name: Publish preview package + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Restore original package.json + run: mv package.json.bak package.json - name: Comment PR with install instructions uses: actions/github-script@v6 with: script: | - const fs = require('fs'); - const output = JSON.parse(fs.readFileSync('output.json', 'utf8')); - if (!output.packages || output.packages.length === 0) { - core.setFailed('No packages published by pkg.pr.new'); - return; - } - const pkg = output.packages[0]; - const installCmd = `npm i ${pkg.url}`; - const badge = `[![pkg.pr.new](https://pkg.pr.new/badge/${context.repo.owner}/${context.repo.repo})](https://pkg.pr.new/~/${context.repo.owner}/${context.repo.repo})`; + const fullPackage = '${{ steps.preview_info.outputs.full_package }}'; + const installCmd = `npm i ${fullPackage}`; const body = `### 🚀 Package Preview Available! - ${badge} - --- **Install this PR's preview build with npm:** @@ -55,11 +78,11 @@ jobs: ${installCmd} \`\`\` - - 📦 [Preview Package on pkg.pr.new](${pkg.url}) - - 🔗 [View this commit on GitHub](https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${pkg.commit}) + - 📦 **Preview Package**: \`${fullPackage}\` + - 🔗 [View this commit on GitHub](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) --- - Preview powered by [pkg.pr.new](https://pkg.pr.new) — try new features instantly, no NPM release needed! + Preview published to npm registry — try new features instantly! `; const botCommentIdentifier = '### 🚀 Package Preview Available!'; From 426c2648c80302316c8c5d638e0f64b18dde3bd5 Mon Sep 17 00:00:00 2001 From: Netanel Gilad Date: Thu, 14 Aug 2025 10:41:17 +0300 Subject: [PATCH 2/7] fix --- .github/workflows/main-publish.yml | 7 ++++++- .github/workflows/preview-publish.yml | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main-publish.yml b/.github/workflows/main-publish.yml index 44e49b2..d7f7044 100644 --- a/.github/workflows/main-publish.yml +++ b/.github/workflows/main-publish.yml @@ -32,7 +32,12 @@ jobs: run: | COMMIT_HASH="${{ github.sha }}" SHORT_COMMIT="${COMMIT_HASH:0:7}" - PREVIEW_VERSION="commit-$SHORT_COMMIT" + + # Get current version from package.json + BASE_VERSION=$(node -p "require('./package.json').version") + + # Format: 0.3.0-dev.abc1234 (valid semver prerelease) + PREVIEW_VERSION="$BASE_VERSION-dev.$SHORT_COMMIT" echo "version=$PREVIEW_VERSION" >> $GITHUB_OUTPUT echo "package_name=@base44/preview-sdk" >> $GITHUB_OUTPUT diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index 41e14a2..a483039 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -35,10 +35,15 @@ jobs: COMMIT_HASH="${{ github.sha }}" SHORT_COMMIT="${COMMIT_HASH:0:7}" + # Get current version from package.json + BASE_VERSION=$(node -p "require('./package.json').version") + if [ ! -z "$PR_NUMBER" ]; then - PREVIEW_VERSION="pr-$PR_NUMBER" + # Format: 0.3.0-pr.123.abc1234 (valid semver prerelease) + PREVIEW_VERSION="$BASE_VERSION-pr.$PR_NUMBER.$SHORT_COMMIT" else - PREVIEW_VERSION="commit-$SHORT_COMMIT" + # Format: 0.3.0-dev.abc1234 (valid semver prerelease) + PREVIEW_VERSION="$BASE_VERSION-dev.$SHORT_COMMIT" fi echo "version=$PREVIEW_VERSION" >> $GITHUB_OUTPUT From a3fef494310fe3ed35a0b16a442be189ab30eda2 Mon Sep 17 00:00:00 2001 From: Netanel Gilad Date: Thu, 14 Aug 2025 11:10:29 +0300 Subject: [PATCH 3/7] improve --- .github/workflows/main-publish.yml | 63 +++++++++++++++++++-- .github/workflows/preview-publish.yml | 81 +++++++++++++++++++++++++-- 2 files changed, 133 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main-publish.yml b/.github/workflows/main-publish.yml index d7f7044..da4dfc5 100644 --- a/.github/workflows/main-publish.yml +++ b/.github/workflows/main-publish.yml @@ -48,17 +48,70 @@ jobs: # Create a backup of original package.json cp package.json package.json.bak - # Update name and version for preview - npm pkg set name="${{ steps.preview_info.outputs.package_name }}" - npm pkg set version="${{ steps.preview_info.outputs.version }}" + # Get the official package name for safety checks + OFFICIAL_PACKAGE=$(node -p "require('./package.json').name") + PREVIEW_PACKAGE="${{ steps.preview_info.outputs.package_name }}" + + echo "Official package: $OFFICIAL_PACKAGE" + echo "Preview package: $PREVIEW_PACKAGE" + + # Safety check: Ensure we're not accidentally using the official package name + if [ "$PREVIEW_PACKAGE" = "$OFFICIAL_PACKAGE" ]; then + echo "❌ ERROR: Preview package name matches official package name!" + echo "This would overwrite the official package. Aborting." + exit 1 + fi + + # Update name with error handling + if ! npm pkg set name="$PREVIEW_PACKAGE"; then + echo "❌ ERROR: Failed to set package name to $PREVIEW_PACKAGE" + exit 1 + fi + + # Update version with error handling + if ! npm pkg set version="${{ steps.preview_info.outputs.version }}"; then + echo "❌ ERROR: Failed to set package version to ${{ steps.preview_info.outputs.version }}" + exit 1 + fi + + echo "✅ Package.json updated successfully" + + - name: Final safety check before publish + run: | + # Double-check package name one more time before publishing + CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") + OFFICIAL_PACKAGE="@base44/sdk" + + echo "About to publish: $CURRENT_PACKAGE_NAME" + + if [ "$CURRENT_PACKAGE_NAME" = "$OFFICIAL_PACKAGE" ]; then + echo "❌ CRITICAL ERROR: About to publish to official package name!" + echo "This is not allowed. Check the workflow configuration." + exit 1 + fi + + echo "✅ Safety check passed. Package name is safe to publish." - name: Publish preview package - run: npm publish + run: | + if npm publish; then + echo "✅ Package published successfully" + else + echo "❌ Package publish failed" + exit 1 + fi env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Restore original package.json - run: mv package.json.bak package.json + run: | + if [ -f package.json.bak ]; then + mv package.json.bak package.json + echo "✅ Original package.json restored" + else + echo "❌ WARNING: Backup file package.json.bak not found" + echo "This could indicate an earlier step failed" + fi permissions: contents: read diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index a483039..fa20ffd 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -20,7 +20,6 @@ jobs: with: node-version: 20 cache: "npm" - registry-url: "https://registry.npmjs.org" - name: Install dependencies run: npm install @@ -55,17 +54,70 @@ jobs: # Create a backup of original package.json cp package.json package.json.bak - # Update name and version for preview - npm pkg set name="${{ steps.preview_info.outputs.package_name }}" - npm pkg set version="${{ steps.preview_info.outputs.version }}" + # Get the official package name for safety checks + OFFICIAL_PACKAGE=$(node -p "require('./package.json').name") + PREVIEW_PACKAGE="${{ steps.preview_info.outputs.package_name }}" + + echo "Official package: $OFFICIAL_PACKAGE" + echo "Preview package: $PREVIEW_PACKAGE" + + # Safety check: Ensure we're not accidentally using the official package name + if [ "$PREVIEW_PACKAGE" = "$OFFICIAL_PACKAGE" ]; then + echo "❌ ERROR: Preview package name matches official package name!" + echo "This would overwrite the official package. Aborting." + exit 1 + fi + + # Update name with error handling + if ! npm pkg set name="$PREVIEW_PACKAGE"; then + echo "❌ ERROR: Failed to set package name to $PREVIEW_PACKAGE" + exit 1 + fi + + # Update version with error handling + if ! npm pkg set version="${{ steps.preview_info.outputs.version }}"; then + echo "❌ ERROR: Failed to set package version to ${{ steps.preview_info.outputs.version }}" + exit 1 + fi + + echo "✅ Package.json updated successfully" + + - name: Final safety check before publish + run: | + # Double-check package name one more time before publishing + CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") + OFFICIAL_PACKAGE="@base44/sdk" + + echo "About to publish: $CURRENT_PACKAGE_NAME" + + if [ "$CURRENT_PACKAGE_NAME" = "$OFFICIAL_PACKAGE" ]; then + echo "❌ CRITICAL ERROR: About to publish to official package name!" + echo "This is not allowed. Check the workflow configuration." + exit 1 + fi + + echo "✅ Safety check passed. Package name is safe to publish." - name: Publish preview package - run: npm publish + run: | + if npm publish; then + echo "✅ Package published successfully" + else + echo "❌ Package publish failed" + exit 1 + fi env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Restore original package.json - run: mv package.json.bak package.json + run: | + if [ -f package.json.bak ]; then + mv package.json.bak package.json + echo "✅ Original package.json restored" + else + echo "❌ WARNING: Backup file package.json.bak not found" + echo "This could indicate an earlier step failed" + fi - name: Comment PR with install instructions uses: actions/github-script@v6 @@ -73,6 +125,7 @@ jobs: script: | const fullPackage = '${{ steps.preview_info.outputs.full_package }}'; const installCmd = `npm i ${fullPackage}`; + const aliasInstallCmd = `npm i "@base44/sdk@npm:${fullPackage}"`; const body = `### 🚀 Package Preview Available! --- @@ -83,6 +136,22 @@ jobs: ${installCmd} \`\`\` + **Prefer not to change any import paths? Install using npm alias so your code still imports \\`@base44/sdk\\`:** + + \`\`\`sh + ${aliasInstallCmd} + \`\`\` + + Or add it to your \`package.json\` dependencies: + + \`\`\`json + { + "dependencies": { + "@base44/sdk": "npm:${fullPackage}" + } + } + \`\`\` + - 📦 **Preview Package**: \`${fullPackage}\` - 🔗 [View this commit on GitHub](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) From 04a4ef4cb8d534a5f013ae314bb8ea7e5e157741 Mon Sep 17 00:00:00 2001 From: Netanel Gilad Date: Thu, 14 Aug 2025 11:14:52 +0300 Subject: [PATCH 4/7] fix --- .github/workflows/main-publish.yml | 30 +++++++++++++-------------- .github/workflows/preview-publish.yml | 30 +++++++++++++-------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main-publish.yml b/.github/workflows/main-publish.yml index da4dfc5..bb64616 100644 --- a/.github/workflows/main-publish.yml +++ b/.github/workflows/main-publish.yml @@ -76,21 +76,21 @@ jobs: echo "✅ Package.json updated successfully" - - name: Final safety check before publish - run: | - # Double-check package name one more time before publishing - CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") - OFFICIAL_PACKAGE="@base44/sdk" - - echo "About to publish: $CURRENT_PACKAGE_NAME" - - if [ "$CURRENT_PACKAGE_NAME" = "$OFFICIAL_PACKAGE" ]; then - echo "❌ CRITICAL ERROR: About to publish to official package name!" - echo "This is not allowed. Check the workflow configuration." - exit 1 - fi - - echo "✅ Safety check passed. Package name is safe to publish." + - name: Final safety check before publish + run: | + # Double-check package name one more time before publishing + CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") + OFFICIAL_PACKAGE="@base44/sdk" + + echo "About to publish: $CURRENT_PACKAGE_NAME" + + if [ "$CURRENT_PACKAGE_NAME" = "$OFFICIAL_PACKAGE" ]; then + echo "❌ CRITICAL ERROR: About to publish to official package name!" + echo "This is not allowed. Check the workflow configuration." + exit 1 + fi + + echo "✅ Safety check passed. Package name is safe to publish." - name: Publish preview package run: | diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index fa20ffd..3746e91 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -82,21 +82,21 @@ jobs: echo "✅ Package.json updated successfully" - - name: Final safety check before publish - run: | - # Double-check package name one more time before publishing - CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") - OFFICIAL_PACKAGE="@base44/sdk" - - echo "About to publish: $CURRENT_PACKAGE_NAME" - - if [ "$CURRENT_PACKAGE_NAME" = "$OFFICIAL_PACKAGE" ]; then - echo "❌ CRITICAL ERROR: About to publish to official package name!" - echo "This is not allowed. Check the workflow configuration." - exit 1 - fi - - echo "✅ Safety check passed. Package name is safe to publish." + - name: Final safety check before publish + run: | + # Double-check package name one more time before publishing + CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") + OFFICIAL_PACKAGE="@base44/sdk" + + echo "About to publish: $CURRENT_PACKAGE_NAME" + + if [ "$CURRENT_PACKAGE_NAME" = "$OFFICIAL_PACKAGE" ]; then + echo "❌ CRITICAL ERROR: About to publish to official package name!" + echo "This is not allowed. Check the workflow configuration." + exit 1 + fi + + echo "✅ Safety check passed. Package name is safe to publish." - name: Publish preview package run: | From a73c340eb42c1cce127cb7a5bc62860ee0186266 Mon Sep 17 00:00:00 2001 From: Netanel Gilad Date: Thu, 14 Aug 2025 11:37:14 +0300 Subject: [PATCH 5/7] cr --- .github/workflows/main-publish.yml | 10 ++++++---- .github/workflows/preview-publish.yml | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main-publish.yml b/.github/workflows/main-publish.yml index bb64616..ecea2dc 100644 --- a/.github/workflows/main-publish.yml +++ b/.github/workflows/main-publish.yml @@ -20,6 +20,7 @@ jobs: with: node-version: 20 cache: "npm" + registry-url: "https://registry.npmjs.org" - name: Install dependencies run: npm install @@ -40,8 +41,8 @@ jobs: PREVIEW_VERSION="$BASE_VERSION-dev.$SHORT_COMMIT" echo "version=$PREVIEW_VERSION" >> $GITHUB_OUTPUT - echo "package_name=@base44/preview-sdk" >> $GITHUB_OUTPUT - echo "full_package=@base44/preview-sdk@$PREVIEW_VERSION" >> $GITHUB_OUTPUT + echo "package_name=@base44-preview/sdk" >> $GITHUB_OUTPUT + echo "full_package=@base44-preview/sdk@$PREVIEW_VERSION" >> $GITHUB_OUTPUT - name: Update package.json for preview run: | @@ -80,7 +81,7 @@ jobs: run: | # Double-check package name one more time before publishing CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") - OFFICIAL_PACKAGE="@base44/sdk" + OFFICIAL_PACKAGE=$(node -p "require('./package.json.bak').name") echo "About to publish: $CURRENT_PACKAGE_NAME" @@ -94,7 +95,7 @@ jobs: - name: Publish preview package run: | - if npm publish; then + if npm publish --tag preview; then echo "✅ Package published successfully" else echo "❌ Package publish failed" @@ -104,6 +105,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Restore original package.json + if: always() run: | if [ -f package.json.bak ]; then mv package.json.bak package.json diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index 3746e91..3966d55 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -20,6 +20,7 @@ jobs: with: node-version: 20 cache: "npm" + registry-url: "https://registry.npmjs.org" - name: Install dependencies run: npm install @@ -46,8 +47,8 @@ jobs: fi echo "version=$PREVIEW_VERSION" >> $GITHUB_OUTPUT - echo "package_name=@base44/preview-sdk" >> $GITHUB_OUTPUT - echo "full_package=@base44/preview-sdk@$PREVIEW_VERSION" >> $GITHUB_OUTPUT + echo "package_name=@base44-preview/sdk" >> $GITHUB_OUTPUT + echo "full_package=@base44-preview/sdk@$PREVIEW_VERSION" >> $GITHUB_OUTPUT - name: Update package.json for preview run: | @@ -86,7 +87,7 @@ jobs: run: | # Double-check package name one more time before publishing CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") - OFFICIAL_PACKAGE="@base44/sdk" + OFFICIAL_PACKAGE=$(node -p "require('./package.json.bak').name") echo "About to publish: $CURRENT_PACKAGE_NAME" @@ -100,7 +101,7 @@ jobs: - name: Publish preview package run: | - if npm publish; then + if npm publish --tag preview; then echo "✅ Package published successfully" else echo "❌ Package publish failed" @@ -110,6 +111,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Restore original package.json + if: always() run: | if [ -f package.json.bak ]; then mv package.json.bak package.json From d8f265bdf35e66ee350b4fc019e45822e0f30186 Mon Sep 17 00:00:00 2001 From: Netanel Gilad Date: Thu, 14 Aug 2025 12:03:32 +0300 Subject: [PATCH 6/7] fix --- .github/workflows/main-publish.yml | 2 +- .github/workflows/preview-publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-publish.yml b/.github/workflows/main-publish.yml index ecea2dc..5c76617 100644 --- a/.github/workflows/main-publish.yml +++ b/.github/workflows/main-publish.yml @@ -81,7 +81,7 @@ jobs: run: | # Double-check package name one more time before publishing CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") - OFFICIAL_PACKAGE=$(node -p "require('./package.json.bak').name") + OFFICIAL_PACKAGE=$(jq -r '.name' package.json.bak) echo "About to publish: $CURRENT_PACKAGE_NAME" diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index 3966d55..1e31e00 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -87,7 +87,7 @@ jobs: run: | # Double-check package name one more time before publishing CURRENT_PACKAGE_NAME=$(node -p "require('./package.json').name") - OFFICIAL_PACKAGE=$(node -p "require('./package.json.bak').name") + OFFICIAL_PACKAGE=$(jq -r '.name' package.json.bak) echo "About to publish: $CURRENT_PACKAGE_NAME" From 9a3e0f96048911dc3bf6a6446d83badf6c4177a8 Mon Sep 17 00:00:00 2001 From: Netanel Gilad Date: Thu, 14 Aug 2025 12:07:31 +0300 Subject: [PATCH 7/7] fix --- .github/workflows/preview-publish.yml | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index 1e31e00..d30f37f 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -127,7 +127,8 @@ jobs: script: | const fullPackage = '${{ steps.preview_info.outputs.full_package }}'; const installCmd = `npm i ${fullPackage}`; - const aliasInstallCmd = `npm i "@base44/sdk@npm:${fullPackage}"`; + const aliasInstallCmd = `npm i "@base44/sdk@npm:${fullPackage}"`; + const body = `### 🚀 Package Preview Available! --- @@ -138,28 +139,27 @@ jobs: ${installCmd} \`\`\` - **Prefer not to change any import paths? Install using npm alias so your code still imports \\`@base44/sdk\\`:** + **Prefer not to change any import paths? Install using npm alias so your code still imports \`@base44/sdk\`:** - \`\`\`sh - ${aliasInstallCmd} - \`\`\` + \`\`\`sh + ${aliasInstallCmd} + \`\`\` - Or add it to your \`package.json\` dependencies: + Or add it to your \`package.json\` dependencies: - \`\`\`json - { - "dependencies": { - "@base44/sdk": "npm:${fullPackage}" - } - } - \`\`\` + \`\`\`json + { + "dependencies": { + "@base44/sdk": "npm:${fullPackage}" + } + } + \`\`\` - 📦 **Preview Package**: \`${fullPackage}\` - 🔗 [View this commit on GitHub](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) --- - Preview published to npm registry — try new features instantly! - `; + Preview published to npm registry — try new features instantly!`; const botCommentIdentifier = '### 🚀 Package Preview Available!';