Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@bscotch/trebuchet
Advanced tools
Tooling for minimizing the cognitive load for monorepo/workspace management, with a focus on automation, minimal configuration, and interoperability with other tools.
A collection of command-line (CLI) and programmatic tools for managing a Typescript monorepo.
Local: npm i @bscotch/trebuchet
Global: npm i -g @bscotch/trebuchet
Local: npx treb --help
Global: treb --help
Trebuchet assumes that your monorepo:
package.json
file containing a workspaces
fieldworkspaces
field, each with a root package.json
fileTrebuchet also assumes that each project in your monorepo:
tsconfig.json
file that accurately represents how your project is compiledAssuming all of that is true, you're already set!
Trebuchet strives to be (relatively) unopinionated and to use patterns that are compatible with other popular tools, so that you can use its features a la carte without getting locked in.
The following is a feature-based listing of what you may want to use Trebuchet vs. other tools for:
npm
for publishing, coupled to the versioning process. You can set per-project publish
and prepublish
scripts (etc) as usual. Alternatives include Lerna and ChangeSets, though those mostly do the same thing.# List all projects
treb list
# List publishable projects
treb list --publishable
# Fix import statements to include extensions
# and to sync the package.json depenencies with
# what is actually imported by the project.
treb fix --importPaths --packageJson
# Run a project's tests
treb test
# Publish all changed projects
# (includes automatic version bump based on git commits)
treb publish
FAQs
Tooling for minimizing the cognitive load for monorepo/workspace management, with a focus on automation, minimal configuration, and interoperability with other tools.
We found that @bscotch/trebuchet demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.