Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ribajs/events

Package Overview
Dependencies
Maintainers
0
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ribajs/events

  • 2.0.0-rc.19
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
0
Weekly downloads
 
Created
Source

@ribajs/events

Build

This is a hybrid build for CommonJS (CJS Node.js modules) and ESM (ECMAScript modules).

See here for an example configuration, this example builds the source to CJS and ESM and and defines the different outputs in the package.json:

  "main": "[CommonJS version]",
  "types": "[TypeScript definitions]",
  "browser": "[CommonJS version]",
  "module": ".[ESM version]",

We do the same with the only difference, that our browser output is also the ESM version for the reasion that we use Webpack to build and bundle the Riba.js projects:

  "main": "[CommonJS version]",
  "types": "[TypeScript definitions]",
  "browser": "[ESM version]",
  "module": ".[ESM version]",

Yarn 2 Scripts

Build

  • yarn run build - Run all build script
  • yarn run build:types - Build the type definiton files
  • yarn run build:esm - Build the ESM module version
  • yarn run build:cjs - Build the CommonJS module version

Others

  • yarn run clean - Delete the build files
  • yarn run lint - Lint the source files using ESLint and Prettier

FAQs

Package last updated on 01 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc