How come my workspace is not recognized?

cmd-scholar
FREE

16 days ago

code

EUNSUPPORTEDPROTOCOL

npm ERR!

Unsupported URL Type "workspace:": workspace:*

I'm using turborepo with bun as my package manager
// my root package.json
{

"name": "dexion",

"version": "1.4.3",

"config": {

"cz-gitmoji": {

"format": "{emoji} {type}({scope}): {subject}",

"subjectFormat": "lowercase"

}

},

"devDependencies": {

"@biomejs/biome": "2.0.0",

"@repo/typescript-config": "workspace:*",

"prettier": "^3.3.3",

"turbo": "2.1.1"

},

"engines": {

"node": ">=18"

},

"license": "MIT",

"packageManager": "bun@1.2.12",

"private": true,

"scripts": {

"build": "turbo build",

"dev": "turbo dev",

"lint": "turbo lint",

"ui": "bun --filter @repo/ui ui"

},

"workspaces": [

"apps/*",

"packages/*"

]

}

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

"$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 im getting that build err
If there's anything else i can share to help, lemme know

Solved$10 Bounty

4 Replies

Railway
BOT

16 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


cmd-scholar
FREE

16 days ago

Hey I'm deploying from my cli not using github at all
I don't know why its still trying to use npm even after specifying
"packageManager": "bun@1.2.12",

in my package.json


iatomic1
FREE

16 days ago

Hey man silly.

But can u confirm that u are running railway up from the root dir


cmd-scholar
FREE

16 days ago

Yh @iatomic1 that was the issue
Thanks for pointing that out man it deploys successfully now


Status changed to Solved brody 16 days ago