
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@hubspot/npm-scripts
Advanced tools
A collection of scripts for internal HubSpot npm package development and management.
hubspot-linking)The linking tool helps manage symlinked HubSpot packages in your development environment. It provides an interactive way to link and unlink local copies of @hubspot packages.
It can be used via npx
npx @hubspot/npm-scripts hubspot-linking
Or installed as a part of the project and used in the package.json
{
"dependencies": {
"@hubspot/npm-scripts": "latest"
},
"scripts": {
"local-link": "hubspot-linking"
}
}
yarn link from inside the local copy of any HubSpot package you want to make available for linking~/.config/yarn/link/@hubspot/node_modules/@hubspot directory for currently linked packagesyarn install --force to ensure dependencies are properly resolvedbuildReleaseScript)A utility function that creates a comprehensive npm release script with support for different release tags and semantic versioning.
Create a release script file (e.g., scripts/release.ts):
import { buildReleaseScript } from '@hubspot/npm-scripts';
import path from 'path';
buildReleaseScript({
packageJsonLocation: path.resolve('./package.json'),
buildHandlerOptions: {
repositoryUrl: 'https://github.com/your-org/your-repo',
mainBranch: 'main', // optional, defaults to 'master'
build: async () => {
// Optional custom build function
// If not provided, runs 'yarn build'
},
postLatestRelease: async () => {
// Optional function to run after latest releases
}
}
});
Then add to your package.json:
{
"scripts": {
"release": "tsx ./scripts/release.ts release"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}
# Release a patch version to latest
yarn release -v=patch -t=latest
# Release a minor version to next (beta)
yarn release -v=minor -t=next
# Release an experimental version
yarn release -v=patch -t=experimental
# Dry run (test without publishing)
yarn release -v=patch -t=latest -d
-v, --versionIncrement: SemVer increment type (patch, minor, major, prerelease)-t, --tag: Release tag (latest, next, experimental)-d, --dryRun: Run without actually publishingFAQs
Scripts for working with npm packages in the HubSpot ecosystem
The npm package @hubspot/npm-scripts receives a total of 220 weekly downloads. As such, @hubspot/npm-scripts popularity was classified as not popular.
We found that @hubspot/npm-scripts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 39 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.