
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@circlehq/block-text
Advanced tools
Text component for use with the EmailBuilder package.
This guide explains how to set up, build, and publish a React package to npm using Babel.
Make sure you have the following installed:
Start by creating a package.json file for your project if you don't have one already:.
npm init
This will prompt you for information such as the package name, version, and entry point. Make sure to fill it out correctly.
your-package-name.@your-org/your-package-name.If you are using TypeScript, Babel, or another compiler, add a build script in your package.json:
"scripts": {
"build": "your-build-command",
"prepublishOnly": "npm run build"
}
This ensures that your package is built before publishing.
Create a .npmignore file to exclude unnecessary files from your published package. Common exclusions include:
/node_modules
/tests
/src
/*.log
This prevents unnecessary files from being included in the npm package.
If you are not already logged in, log in to npm using:
npm login
You'll be prompted for your npm username, password, and email.
To publish your package to npm, run:
npm publish
For scoped packages (e.g., @your-org/your-package-name), you must specify public access:
npm publish --access public
To update and publish a new version of your package:
Update the version in package.json (e.g., from 1.0.0 to 1.0.1).
Run the build script, if necessary:
npm run build
Publish the updated package:
npm publish
For scoped packages (e.g., @your-org/your-package-name), you must specify public access:
npm publish --access public
You can verify that your package was published successfully by checking it on the npm website:
npm info your-package-name
Or visit npmjs.com and search for your package.
By following these steps, you will successfully publish your package to npm.
When you need to publish an updated version of your package:
Increment the version in package.json.
Rebuild the package:
npm run build
Publish the updated package:
npm publish
By following these steps, you will be able to successfully publish your React package to npm. Don't forget to update the version each time you make changes and republish!
FAQs
CircleHq Block Text component
The npm package @circlehq/block-text receives a total of 0 weekly downloads. As such, @circlehq/block-text popularity was classified as not popular.
We found that @circlehq/block-text demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.