How come my workspace is not recognized?
cmd-scholar
FREEOP

8 months ago

code
EUNSUPPORTEDPROTOCOL
npm ERR!
Unsupported URL Type "workspace:": workspace:*

I'm using turborepo with bun as my package manager

// root package.json

{
  "name": "dexion",
  "version": "1.4.3",
  "private": true,
  "license": "MIT",
  "packageManager": "bun@1.2.12",
  "engines": {
    "node": ">=18"
  },
  "workspaces": [
    "apps/*",
    "packages/*"
  ],
  "config": {
    "cz-gitmoji": {
      "format": "{emoji} {type}({scope}): {subject}",
      "subjectFormat": "lowercase"
    }
  },
  "scripts": {
    "build": "turbo build",
    "dev": "turbo dev",
    "lint": "turbo lint",
    "ui": "bun --filter @repo/ui ui"
  },
  "devDependencies": {
    "@biomejs/biome": "2.0.0",
    "@repo/typescript-config": "workspace:*",
    "prettier": "^3.3.3",
    "turbo": "2.1.1"
  }
}

Then my railway.json file (sits at the root of the monorepo)

// railway.json
{
  "$schema": "https://railway.app/railway.schema.json",
  "build": {
    "builder": "NIXPACKS",
    "nixpacksPlan": {
      "phases": {
        "install": {
          "cmds": ["bun install"]
        },
        "build": {
          "cmds": ["bun turbo run build --filter=@repo/token-watcher"]
        }
      }
    }
  },
  "deploy": {
    "startCommand": "cd packages/token-watcher && bun run start"
  }
}

Dunno why I'm getting that build err
If there's anything else i can share to help, lemme know

0 Replies

Loading...