A Rollup plugin for uploading code to Screeps game servers. Version 1.1.2 supports the unified `.screeps.yaml` credentials file (SS3 standard) as well as legacy JSON config. It automatically applies source maps in Screeps-friendly format and can derive the target branch from the current git branch. Unlike other Screeps plugins, it integrates with the Screepers unified credential standard and offers environment variable overrides for server and branch.
npm install rollup-plugin-screeps-ss3Verified import paths — ran on the pinned version, not inferred.
Example rollup.config.js using the plugin with environment variable overrides for server and branch and source maps enabled.
Set output.format to 'cjs' or 'es' and enable sourcemap: true
Migrate your config to .screeps.yaml following the SS3 unified credentials standard
Use import screeps from ... instead of import { screeps } from ...Ensure you are in a git repository when using branch: 'auto', or set an explicit branch name
npm install --save-dev rollup-plugin-screeps-ss3
import screeps from 'rollup-plugin-screeps-ss3'
Create a .screeps.yaml file following the SS3 standard, or pass explicit config object
const screeps = require('rollup-plugin-screeps-ss3').default;