-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add Support for Nested Deno Workspaces with Domain/Subdomain #26879
Comments
Can you explain the benefit over just using different name prefixes? Also, where is the pnpm/yarn documentation on this? |
Let me explain the benefits of using workspace structure over name prefixes: Benefits of Workspaces vs Name Prefixes
// Workspace Structure
workspace/
├── slices/
│ ├── extractFeeds/ // Complete isolated module
│ ├── fetchFeeds/ // Complete isolated module
│ └── generateIssues/ // Complete isolated module
// vs Name Prefix Structure
src/
├── extractFeeds.ts
├── fetchFeeds.ts
└── generateIssues.ts
{
"workspace": {
"members": [
"./slices/extractFeeds",
"./slices/fetchFeeds",
"./slices/generateIssues",
"./slices/services",
"./slices/types",
"./slices/shared",
"./slices/generateUpdatesFeeds"
]
}
} Documentation ReferencesThis is actually a Deno-specific workspace implementation, different from pnpm/yarn:
The key difference is that Deno workspaces are more lightweight and focused on module organization rather than package management like pnpm/yarn. For use case, Deno workspaces provide better module isolation and organization without the complexity of full package management systems. |
Is this chatgpt output? Why is it linking to https://deno.land/[email protected]/tools/workspaces Can you please explain in your own words a concrete example and use case? The yarn and pnpm documentation looks similar to Deno for what I can see, but I must be missing something. |
the problem is
|
like in this example
now i want to make a math as a individual deno workspace |
Can you show an example of pnpm or yarn doing this? I don't see an example in the linked documentation of them having this functionality. I still don't understand what this solves or why it's desired/what the benefit is. |
I think I just realized my confusion. Are you asking for workspace support in general? It's already supported in Deno: https://docs.deno.com/runtime/fundamentals/workspaces/ I got confused because I thought you were asking for a change to how workspaces worked. |
let me rephrase my issue/request:- Support for Multi-Level Workspace Organization in DenoCurrent Behavior:
Desired Behavior:
Example Structure: root-workspace/
├── workspace-1/
│ ├── package-1/
│ └── package-2/
└── workspace-2/
├── package-3/
└── package-4/ |
💡 Feature Request: Nested Deno Workspaces
Description
Add support for nested workspace configuration in Deno projects to better organize code by domains and subdomains, similar to how pnpm/yarn workspaces work for Node.js.
Current Situation
Proposed Solution
Support nested workspace configuration through:
deno.json
workspace configuration:The text was updated successfully, but these errors were encountered: