{"library":"rollup-scripts","title":"Rollup Scripts","description":"Rollup Scripts is a zero-configuration compiler and bundler designed for JavaScript and TypeScript libraries, wrapping Rollup's core functionality to eliminate manual setup. It provides out-of-the-box support for JS, TS, React, and Preact projects. Currently at version 0.0.131, it is explicitly marked as experimental and in active development, meaning versions are unstable and intended for trial purposes only. Its primary differentiator is simplifying the build process by abstracting Rollup configurations, reducing boilerplate for library authors. Future updates are planned to extend support to Angular, Vue, and Svelte.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install rollup-scripts"],"cli":{"name":"rollup-scripts","version":null}},"imports":["npx rollup-scripts <command>","\"build\": \"rollup-scripts build\""],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# 1. Create an npm project\nnpm init -y\n\n# 2. Install rollup-scripts as a dev dependency\nnpm i -D --save-exact rollup-scripts\n\n# 3. Create a source directory and an entry file\nmkdir src\necho \"export const greet = (name) => \\`Hello, \\${name} from Rollup Scripts!\\`;\\nexport const PI = 3.14159;\" > src/index.mjs\n\n# 4. Manually update your package.json file.\n#    Ensure it looks similar to this, especially the 'main', 'module', and 'scripts' sections:\n#    {\n#      \"name\": \"my-library-with-rollup-scripts\",\n#      \"version\": \"1.0.0\",\n#      \"main\": \"dist/umd/index.js\",\n#      \"module\": \"dist/esm/index.mjs\",\n#      \"scripts\": {\n#        \"build\": \"rollup-scripts build\",\n#        \"lint\": \"rollup-scripts lint\",\n#        \"init\": \"rollup-scripts init\"\n#      },\n#      \"devDependencies\": {\n#        \"rollup-scripts\": \"^0.0.131\" // Adjust version as necessary\n#      }\n#    }\n\n# 5. Run the build command\nnpm run build\n\n# After successful build, verify the output (e.g., check 'dist' folder).\n# Example of using the built UMD module:\n# node -e \"const { greet } = require('./dist/umd/index.js'); console.log(greet('AI Agent'));\"","lang":"bash","description":"Initializes an npm project, installs rollup-scripts, creates a basic ESM entry file, provides instructions to configure package.json scripts, and executes a build.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}