
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
pnpm-sync-dependencies-meta-injected
Advanced tools
pnpm-sync-dependencies-meta-injected
dependenciesMeta.*.injected = true
?This package will solve all your problems!
Install the dependency.
pnpm i pnpm-sync-dependencies-meta-injected -D
In each of your projects that declare a dependenciesMeta.*.injected = true
, add a _syncPnpm
script in your package.json:
"_syncPnpm": "pnpm sync-dependencies-meta-injected"
In each of your projects that includes _syncPnpm
, re-configure your project's start
command to run _syncPnpm
in watch mode so that you can continually work on your injected dependencies and have updates automatically re-synced as they are built.
"start": "concurrently 'ember serve' 'pnpm _syncPnpm --watch' --names 'tests serve,tests sync deps'",
By using concurrently
, we can run our dev server as well as the _syncPnpm
task in watch mode in parallel.
When using turborepo, we can automatically sync the injected dependencies for all tasks defined in turbo.json
In your turbo.json
, configure a _syncPnpm
task:
"_syncPnpm": {
"dependsOn": ["^build"],
"cache": false
},
It must not have a cache, because we need to modify the .pnpm
directory in the top-level node_modules
folder.
In your turbo.json
, configure each task that relies on ^build
to also rely on _syncPnpm
(no ^
) -- this, combined with the above will sync the hard links that pnpm
uses for dependenciesMeta.*.injected
after the dependencies are built.
"test": {
"outputs": [],
- "dependsOn": ["^build"]
+ "dependsOn": ["_syncPnpm"]
},
"build": {
"outputs": ["dist/**"],
- "dependsOn": ["^build"]
+ "dependsOn": ["_syncPnpm"]
},
// etc
Add
DEBUG=sync-pnpm
before the invocation.
Example of adding to the package.json#scripts
"_syncPnpm": "DEBUG=sync-pnpm pnpm sync-dependencies-meta-injected"
Or on-the-fly:
DEBUG=sync-pnpm pnpm _syncPnpm
FAQs
Unknown package
The npm package pnpm-sync-dependencies-meta-injected receives a total of 2,758 weekly downloads. As such, pnpm-sync-dependencies-meta-injected popularity was classified as popular.
We found that pnpm-sync-dependencies-meta-injected demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.