Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@integration-app/react
Advanced tools
To release a new version of a package (@integration-app/sdk, @integration-app/ui, @integration-app/react), do the following:
To release a new version of a package (@integration-app/sdk, @integration-app/ui, @integration-app/react), do the following:
npm version -- patch
(or npm version -- minor
or npm version -- major
) to bump the version.To see the complete configuration, refer to the rollup.config.mjs
and rollup.dts.config.mjs
files. Although these files are self-explanatory, here's some additional information:
In rollup.config.mjs
, we set {external: [/node_modules/]}
to exclude our dependencies from being bundled.
We encountered issues with rollup-plugin-dts
generating incorrect DTS files when used in the same configuration as @rollup/plugin-typescript
. To resolve this, we use two Rollup configurations:
rollup.config.mjs
for bundle generationrollup.dts.config.mjs
for DTS file generation.We set external dependencies in rollup.config.mjs
:
{external: [/node_modules/]}
to exclude all node_modules
.@integration-app/sdk
to prevent Rollup from bundling the @integration-app/sdk
package during local development, when it is used via a symlink to the SDK in the root folder.react
and react/jsx-runtime
are excluded to avoid unresolved dependency errors, as React is a peer dependency.When using rollup-plugin-dts
and @rollup/plugin-typescript
in the same configuration, we experienced issues with generating incorrect DTS files. To solve this, we use two Rollup configurations:
rollup.config.mjs
for generating bundlesrollup.dts.config.mjs
for generating DTS files.For local build, the following steps are taken:
/dist
folder.@integration-app/sdk
pointed to sdk
folderreact
and react-dom
packages from node_modules
folder
console
, engine
and other local projectsrollup.config.mjs
configuration generates bundle files and basic DTS files, which are placed in the dist/dts
folder.rollup.dts.config.mjs
configuration uses the basic DTS files to generate *.d.ts
files for each bundle.During development, the following steps are taken:
build
to generate bundle and DTS files.
rollup.dts.config.mjs
in watch mode fails due to missing DTS files (race condition).rollup.config.mjs
configuration to generate bundle files and basic DTS files.rollup.dts.config.mjs
configuration to generate DTS files for each bundle.During publishing via GitHub, the following steps are taken:
/dist
folder.@integration-app/sdk@latest
packagerollup.config.mjs
configuration generates bundle files and basic DTS files, which are placed in the dist/dts
folder.rollup.dts.config.mjs
configuration uses the basic DTS files to generate *.d.ts
files for each bundle.The build:publish
command is used in GitHub Actions to ensure that the package uses the latest @integration-app/sdk
package.
{
"exports": {
"types": "./dist/index.d.ts", // TypeScript typings for NodeNext modules
"require": "./dist/index.js", // used for require() in Node 12+
"import": "./dist/index.module.mjs" // ESM bundle
},
"types": "./dist/index.d.ts", // TypeScript typings
"main": "./dist/index.js", // CommonJS bundle
"module": "./dist/index.module.mjs", // ESM bundle
"unpkg": "./dist/index.umd.js", // UMD bundle
}
FAQs
- [Developers documentation](https://console.integration.app/docs) - [Rest API](https://api-reference.integration.app)
The npm package @integration-app/react receives a total of 1,813 weekly downloads. As such, @integration-app/react popularity was classified as popular.
We found that @integration-app/react 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.