rollup-scripts-utils

raw JSON →
0.1.1 verified Mon Apr 27 auth: no javascript

Utility package supporting rollup-scripts and rollup-boilerplate. Version 0.1.1. Provides shared helper functions, configuration presets, and build tooling for Rollup-based projects. Designed to reduce boilerplate when using rollup-scripts. Ships TypeScript types. Release cadence is low; mainly maintenance updates.

error Cannot find module 'rollup-scripts-utils' or its corresponding type declarations.
cause Package not installed or TypeScript cannot resolve module.
fix
Run: npm install rollup-scripts-utils --save-dev
error require() of ES Module /path/to/rollup-scripts-utils/index.js from /path/to/your-file.js not supported.
cause Using CommonJS require() with an ESM-only package.
fix
Use import statement or dynamic import() instead of require().
gotcha Package is ESM-only; CommonJS require() will not work.
fix Use dynamic import: import('rollup-scripts-utils') or switch to ESM.
deprecated Some functions may be deprecated in future in favor of rollup-plugin-* packages.
fix Check rollup-scripts CHANGELOG before using in new projects.
gotcha TypeScript types may not be fully up to date with latest APIs.
fix Consider overriding types with @types/rollup if needed.
npm install rollup-scripts-utils
yarn add rollup-scripts-utils
pnpm add rollup-scripts-utils

Shows basic usage of createConfig and resolvePath from rollup-scripts-utils.

import { createConfig, resolvePath } from 'rollup-scripts-utils';

// Example usage
const config = createConfig({
  input: 'src/index.ts',
  output: { dir: 'dist', format: 'esm' },
});

const resolved = resolvePath('src/components');
console.log(resolved);