Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workspace: specifier not supported for package.json dependency #18192

Closed
Tracked by #23062
jonasb opened this issue Mar 14, 2023 · 8 comments
Closed
Tracked by #23062

workspace: specifier not supported for package.json dependency #18192

jonasb opened this issue Mar 14, 2023 · 8 comments

Comments

@jonasb
Copy link

jonasb commented Mar 14, 2023

I'm using Deno in a monorepo where I use pnpm as the package manager (through rush).

To refer to other packages in the same monorepo, I use the version specifier "workspace:*", which is not supported by Deno's package.json functionality.

My package.json file looks like this:

{
  "devDependencies": {
    "@dossierhq/core": "workspace:*"
  }
}

I get this warning when deno task test:

Warning Ignoring dependency '@dossierhq/core' in package.json because its version requirement failed to parse: Not implemented scheme: @dossierhq/core

It would be great if Deno could support "workspace:*" in package.json so I don't need to use import maps to support monorepo setups.

@dsherret
Copy link
Member

Oh, that error message is wrong. I opened #18209

@dsherret dsherret added suggestion suggestions for new features (yet to be agreed) node compat labels Mar 15, 2023
@dsherret dsherret changed the title pnpm version specifier not supported for package.json dependency workspace: specifier not supported for package.json dependency Mar 15, 2023
@ericallam
Copy link

We also need this for running tests in a pnpm monorepo (https://github.com/triggerdotdev/trigger.dev)

@himself65
Copy link
Contributor

himself65 commented Apr 9, 2024

I want to have this feature. I'm a library maintainer. I want to support both deno, node and bun. So I need to run build and node --test ./node/*.test.ts & deno test ./deno/*.test.ts & bun test ./bun/*.test.ts in one time

@castarco
Copy link

castarco commented Apr 16, 2024

Our use case is a little bit different, but also monorepo-related:

We have internal automation tools written in TypeScript, and we'd like it to skip the compilation step and run them directly with Deno instead of Node. That would help us a lot to simplify our internal automations.

@ssadler
Copy link

ssadler commented Apr 23, 2024

Im running all my code this way and ts-node is a disaster plz halp 🥺

@birkskyum
Copy link
Contributor

birkskyum commented May 7, 2024

Hit the "Not implemented scheme 'workspace'" as well, using pnpm for workspaces but wanted to run one of the packages (a simple REST server) with deno

@bartlomieju
Copy link
Member

Support for npm workspace is something @dsherret is gonna look into in a few weeks, once we finalize Deno workspace support (to avoid code conflicts).

@bartlomieju bartlomieju added node compat node resolution and removed suggestion suggestions for new features (yet to be agreed) labels May 7, 2024
@bartlomieju bartlomieju added this to the 1.45 milestone May 7, 2024
@dsherret
Copy link
Member

dsherret commented Jul 9, 2024

Will start working with an npm workspace in 1.45 (via #24334, #24471)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants