link-workspace-packages
Skill4.6k starsChanged 8 months agoMITView on GitHub
Link workspace packages in monorepos (npm, yarn, pnpm, bun). USE WHEN: (1) you just created or generated new packages and need to wire up their dependencies, (2) user imports from a sibling package and needs to add it as a dependency, (3) you get resolution errors for workspace packages (@org/*) like "cannot find module", "failed to resolve import", "TS2307", or "cannot resolve". DO NOT patch around with tsconfig paths or manual package.json edits - use the package manager''s workspace commands to fix actual linking.
- Installs packages
5 other projects use a version of this.
Trending
Quiet since May.thin dataabout the whole repository
Most recently taken up by
- getlarge/themoltnetword for word, first seen Oct 1, 2026
- OpenThrottle/monorepoword for word, first seen Sep 17, 2026
- codeaiforge/ai-ready-nx-workspaceword for word, first seen Sep 4, 2026
- anayatkhan1/kitword for word, first seen Jul 27, 2026
- conectlens/lenserfightword for word, first seen May 28, 2026
Who's talking about supabase/supabase-js
- nuxt/nuxt“Nuxt 4.20 delivers CommonJS builds to browser”GitHub · Oct 27, 2025 · 30 reactions
- supabase/postgrest-js“Wrong type for joins with one-to-one relationships”GitHub · Aug 4, 2023 · 25 reactions
- supabase/storage-js“feat: add private method to get expected content type”GitHub · Sep 29, 2024 · 13 reactions
- supabase/node-fetch“Deprecated dependency on whatwg-url -> punycode triggers DeprecationWarning”GitHub · May 10, 2024 · 11 reactions
- supabase/postgrest-js“.throwOnError() doesn't do typecheck”GitHub · Oct 21, 2024 · 6 reactions
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub, Hacker News and Bluesky (9 times).
On GitHub · 7
- Oct 27, 2025Nuxt 4.20 delivers CommonJS builds to browser — nuxt/nuxt30 reactions · 10 comments
- Aug 4, 2023Wrong type for joins with one-to-one relationships — supabase/postgrest-js25 reactions · 21 comments
- Sep 29, 2024feat: add private method to get expected content type — supabase/storage-js13 reactions · 1 comment
- May 10, 2024Deprecated dependency on whatwg-url -> punycode triggers DeprecationWarning — supabase/node-fetch11 reactions · 8 comments
- Oct 21, 2024.throwOnError() doesn't do typecheck — supabase/postgrest-js6 reactions · 1 comment
2 more on GitHub
- Apr 23, 2024feat: remove `cache: no-store` as it breaks cloudflare — supabase/auth-js6 reactions
- Apr 19, 2021Get the proper global object depending on environment to check for existing fetch — JakeChampion/fetch6 reactions · 5 comments
On Hacker News · 1
- May 2, 2026Supabase-JS: An isomorphic JavaScript client for Supabase1 point
On Bluesky · 1
- Nov 16, 2025https://github.com/supabase/supabase-js/ — @tom-doerr.bsky.social1 likes and repost
Used with
Projects with it also use monitor-ci.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mean-weaselSkillmonitor-ci
Monitor CI status for the current branch, diagnose failures, and summarize results.
Also in 5 projects that use this
Other versions5 projects use a version of this.
Word for word · 5
- conectlens/lenserfight★ 18100% same
- anayatkhan1/kit★ 17100% same
- getlarge/themoltnet★ 17100% same
- codeaiforge/ai-ready-nx-workspace★ 2100% same
- OpenThrottle/monorepo★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/core/auth-js/AGENTS.mdAGENTS.md
- packages/core/functions-js/AGENTS.mdAGENTS.md
- packages/core/postgrest-js/AGENTS.mdAGENTS.md
- packages/core/realtime-js/AGENTS.mdAGENTS.md
- packages/core/storage-js/AGENTS.mdAGENTS.md
- packages/core/supabase-js/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- nx-generateSkill
- nx-importSkill
- nx-pluginsSkill
- nx-run-tasksSkill
- nx-workspaceSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Add dependencies between packages in a monorepo.
- Very specific: line 12
Check whether there's a packageManager field in the root-level package.json.
- Distinctive: line 25
Add dependency using package manager's workspace syntax
- Very specific: line 26
Verify symlinks created in consumer's node_modules/
- Very specific: line 116
Check if dependency is declared in consumer's package.json
- Distinctive: line 117
If not, add it using appropriate command above
- Very specific: line 118
Run install (pnpm install, npm install, etc.)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Link Workspace Packages
Add dependencies between packages in a monorepo. All package managers support workspaces but with different syntax.
Detect Package Manager
Check whether there's a packageManager field in the root-level package.json.
Alternatively check lockfile in repo root:
pnpm-lock.yaml→ pnpmyarn.lock→ yarnbun.lock/bun.lockb→ bunpackage-lock.json→ npm
Workflow
- Identify consumer package (the one importing)
- Identify provider package(s) (being imported)
- Add dependency using package manager's workspace syntax
- Verify symlinks created in consumer's
node_modules/
pnpm
Uses workspace: protocol - symlinks only created when explicitly declared.
# From consumer directory
pnpm add @org/ui --workspace
# Or with --filter from anywhere
pnpm add @org/ui --filter @org/app --workspaceResult in package.json:
{ "dependencies": { "@org/ui": "workspace:*" } }yarn (v2+/berry)
Also uses workspace: protocol.
yarn workspace @org/app add @org/uiResult in package.json:
{ "dependencies": { "@org/ui": "workspace:^" } }npm
No workspace: protocol. npm auto-symlinks workspace packages.
npm install @org/ui --workspace @org/appResult in package.json:
{ "dependencies": { "@org/ui": "*" } }npm resolves to local workspace automatically during install.
bun
Supports workspace: protocol (pnpm-compatible).
cd packages/app && bun add @org/uiResult in package.json:
{ "dependencies": { "@org/ui": "workspace:*" } }Examples
Example 1: pnpm - link ui lib to app
pnpm add @org/ui --filter @org/app --workspaceExample 2: npm - link multiple packages
npm install @org/data-access @org/ui --workspace @org/dashboardExample 3: Debug "Cannot find module"
- Check if dependency is declared in consumer's
package.json - If not, add it using appropriate command above
- Run install (
pnpm install,npm install, etc.)
Notes
- Symlinks appear in
<consumer>/node_modules/@org/<package> - Hoisting differs by manager:
- npm/bun: hoist shared deps to root
node_modules - pnpm: no hoisting (strict isolation, prevents phantom deps)
- yarn berry: uses Plug'n'Play by default (no
node_modules)
- npm/bun: hoist shared deps to root
- Root
package.jsonshould have"private": trueto prevent accidental publish
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

