{"_id":"@coconutbird/plugin-screeps-rollup","_rev":"8-17521037552f3a034eb1fc58c5ab7556","name":"@coconutbird/plugin-screeps-rollup","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.2":{"name":"@coconutbird/plugin-screeps-rollup","version":"1.0.2","keywords":["screeps","rollup"],"author":{"name":"coconutbird"},"license":"ISC","_id":"@coconutbird/plugin-screeps-rollup@1.0.2","maintainers":[{"name":"coconutbird","email":"jonluke.biddle@gmail.com"}],"homepage":"https://github.com/coconutbird/plugin-screeps-rollup#readme","bugs":{"url":"https://github.com/coconutbird/plugin-screeps-rollup/issues"},"dist":{"shasum":"43dbe28f3b45ef150cce1d904ca1c9c7bd4bf239","tarball":"https://registry.npmjs.org/@coconutbird/plugin-screeps-rollup/-/plugin-screeps-rollup-1.0.2.tgz","fileCount":8,"integrity":"sha512-fypRtKqOfcM6TFf09phtehRb17rZIn6SFRK6XWRXuvYd22pk6CCfhUZ/Jcdevtzwi6ZrSD0n0QfEPkqcOUfzRg==","signatures":[{"sig":"MEUCIQDctJKn3+RKeKBciD0JaSQARud/MNnmPgrhKRybegR39gIgaaBUCYc7EXTuihlioeRQpUdcdArnHjMyGpbYO37LL9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14657},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"171bd97078002c066ebc7c46148dbc93c6b23647","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rollup --config"},"_npmUser":{"name":"coconutbird","actor":{"name":"coconutbird","type":"user","email":"jonluke.biddle@gmail.com"},"email":"jonluke.biddle@gmail.com"},"repository":{"url":"git+https://coconutbird@github.com/coconutbird/plugin-screeps-rollup.git","type":"git"},"_npmVersion":"10.9.2","description":"A rollup plugin that builds and deploys Screeps code.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"screeps-api":"^1.16.1","git-rev-sync":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","rollup":"^4.43.0","@types/git-rev-sync":"^2.0.2","rollup-plugin-clear":"^2.0.7","@rollup/plugin-typescript":"^12.1.3","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-screeps-rollup_1.0.2_1750301092592_0.10075487170022313","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@coconutbird/plugin-screeps-rollup","version":"1.0.3","keywords":["screeps","rollup"],"author":{"name":"coconutbird"},"license":"ISC","_id":"@coconutbird/plugin-screeps-rollup@1.0.3","maintainers":[{"name":"coconutbird","email":"jonluke.biddle@gmail.com"}],"homepage":"https://github.com/coconutbird/plugin-screeps-rollup#readme","bugs":{"url":"https://github.com/coconutbird/plugin-screeps-rollup/issues"},"dist":{"shasum":"cf686fee5dd596b809a283c42e5be64c5ac709a0","tarball":"https://registry.npmjs.org/@coconutbird/plugin-screeps-rollup/-/plugin-screeps-rollup-1.0.3.tgz","fileCount":8,"integrity":"sha512-WkxrS6nSR9XW4vG3dipMhz8Qk7N7HLJMM5u7Cr9GMKggbm3+1Xaw0o5NQVpDvCwCCpWNsPxNTwYeKFhh3GqZCg==","signatures":[{"sig":"MEUCIEh0f4dCKaGDTIybUhO290Ce80PYVrjdICC+tq0waEVKAiEAgbUsWT0mUVwHyT1zh68MqrvjqWLqQ5PG3AtdmkgKHI4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16237},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"75af860ab7b6f41ee413eb3a441c45b4b59744a0","scripts":{"build":"rollup --config"},"_npmUser":{"name":"coconutbird","actor":{"name":"coconutbird","type":"user","email":"jonluke.biddle@gmail.com"},"email":"jonluke.biddle@gmail.com"},"repository":{"url":"git+https://github.com/coconutbird/plugin-screeps-rollup.git","type":"git"},"_npmVersion":"10.9.2","description":"A rollup plugin that builds and deploys Screeps code.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"screeps-api":"^1.16.1","git-rev-sync":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","rollup":"^4.43.0","@types/git-rev-sync":"^2.0.2","rollup-plugin-clear":"^2.0.7","@rollup/plugin-typescript":"^12.1.3","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-screeps-rollup_1.0.3_1750379699064_0.5153977331791468","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@coconutbird/plugin-screeps-rollup","version":"1.0.4","keywords":["screeps","rollup"],"author":{"name":"coconutbird"},"license":"ISC","_id":"@coconutbird/plugin-screeps-rollup@1.0.4","maintainers":[{"name":"coconutbird","email":"jonluke.biddle@gmail.com"}],"homepage":"https://github.com/coconutbird/plugin-screeps-rollup#readme","bugs":{"url":"https://github.com/coconutbird/plugin-screeps-rollup/issues"},"dist":{"shasum":"c406f859d93eae8317972701beb556b583e196d8","tarball":"https://registry.npmjs.org/@coconutbird/plugin-screeps-rollup/-/plugin-screeps-rollup-1.0.4.tgz","fileCount":5,"integrity":"sha512-jjIeYi3jVGoeh97ppxFvl0x8YaiJp1BI9nPZuK2kO8Q56B8YEcSQmicuWUaNsCLt9pTLnfstml2CJ3Jw9uqUhw==","signatures":[{"sig":"MEUCIE7c8c2GnZnaQFgQpzTfV37BlDt0nYBZMtSioZaJKD5SAiEAlwRlCdgPT/AhKTC7wAULjxI0WXY5s6gk/VDAdcHPlsY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10567},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"8e7b2645be6d0506d470f58ae23e856dbb8bcab7","scripts":{"build":"rollup --config"},"_npmUser":{"name":"coconutbird","actor":{"name":"coconutbird","type":"user","email":"jonluke.biddle@gmail.com"},"email":"jonluke.biddle@gmail.com"},"repository":{"url":"git+https://github.com/coconutbird/plugin-screeps-rollup.git","type":"git"},"_npmVersion":"10.9.2","description":"A rollup plugin that builds and deploys Screeps code.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"screeps-api":"^1.16.1","git-rev-sync":"^3.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","rollup":"^4.43.0","@types/git-rev-sync":"^2.0.2","rollup-plugin-clear":"^2.0.7","@rollup/plugin-typescript":"^12.1.3","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-screeps-rollup_1.0.4_1750380620876_0.029595127145876754","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@coconutbird/plugin-screeps-rollup","version":"1.0.5","main":"dist/index.js","scripts":{"build":"rollup --config","lint":"eslint \"src/**/*.ts\"","lint:fix":"eslint \"src/**/*.ts\" --fix","format":"prettier --write \"src/**/*.ts\"","format:check":"prettier --check \"src/**/*.ts\""},"author":{"name":"coconutbird"},"license":"ISC","description":"A rollup plugin that builds and deploys Screeps code.","devDependencies":{"@eslint/js":"^9.39.2","@rollup/plugin-node-resolve":"^16.0.3","@rollup/plugin-typescript":"^12.3.0","@types/git-rev-sync":"^2.0.2","@types/node":"^25.0.3","eslint":"^9.39.2","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","prettier":"^3.7.4","rollup":"^4.54.0","rollup-plugin-delete":"^3.0.2","tslib":"^2.8.1","typescript-eslint":"^8.51.0"},"dependencies":{"git-rev-sync":"^3.0.2","screeps-api":"^1.16.1"},"repository":{"type":"git","url":"git+https://github.com/coconutbird/plugin-screeps-rollup.git"},"keywords":["screeps","rollup"],"types":"./dist/index.d.ts","bugs":{"url":"https://github.com/coconutbird/plugin-screeps-rollup/issues"},"homepage":"https://github.com/coconutbird/plugin-screeps-rollup#readme","_id":"@coconutbird/plugin-screeps-rollup@1.0.5","gitHead":"31095e980a051351d78dea82dafcd304f8bd8c45","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-JfcI6xZD9FA1hZt1vNKJ3fCy/dOgjtsoqwR+cE+oRVkWBk/+SrRRDk8iRX0jHcc44iEbXwPpwWM63dZe0cjeuw==","shasum":"3532ccc4cce6c98c3dd9838ccc36dbd1e062e000","tarball":"https://registry.npmjs.org/@coconutbird/plugin-screeps-rollup/-/plugin-screeps-rollup-1.0.5.tgz","fileCount":5,"unpackedSize":14304,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@coconutbird%2fplugin-screeps-rollup@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCHaJB/EkK2mS//O8SNLW2IAGYQViGG5Kxzs0GzGOsjIgIhAMF+YarUX+Kz/CCNOjUgZLBcP0pexsAq6NPsAU/4lGc8"}]},"_npmUser":{"name":"coconutbird","email":"jonluke.biddle@gmail.com"},"directories":{},"maintainers":[{"name":"coconutbird","email":"jonluke.biddle@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-screeps-rollup_1.0.5_1767108046049_0.22011428596396487"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-19T02:28:58.030Z","modified":"2025-12-30T15:20:46.676Z","1.0.0":"2025-06-19T02:23:20.596Z","1.0.1":"2025-06-19T02:28:58.326Z","1.0.2":"2025-06-19T02:44:52.785Z","1.0.3":"2025-06-20T00:34:59.268Z","1.0.4":"2025-06-20T00:50:21.082Z","1.0.5":"2025-12-30T15:20:46.190Z"},"bugs":{"url":"https://github.com/coconutbird/plugin-screeps-rollup/issues"},"author":{"name":"coconutbird"},"license":"ISC","homepage":"https://github.com/coconutbird/plugin-screeps-rollup#readme","keywords":["screeps","rollup"],"repository":{"type":"git","url":"git+https://github.com/coconutbird/plugin-screeps-rollup.git"},"description":"A rollup plugin that builds and deploys Screeps code.","maintainers":[{"name":"coconutbird","email":"jonluke.biddle@gmail.com"}],"readme":"# Rollup Plugin for Screeps World\n\n[![CI](https://github.com/coconutbird/plugin-screeps-rollup/actions/workflows/ci.yml/badge.svg)](https://github.com/coconutbird/plugin-screeps-rollup/actions/workflows/ci.yml)\n\nA Rollup plugin that builds and deploys your code to Screeps servers.\n\n## Install\n\n```\nnpm install --save-dev @coconutbird/plugin-screeps-rollup\n```\n\n## Usage\n\nIn `rollup.config.mjs`:\n\n```mjs\nimport screeps from '@coconutbird/plugin-screeps-rollup';\n\n/** @type {import('rollup').RollupOptions} */\nexport default {\n  // ...\n  output: {\n    dir: 'dist',\n    sourcemap: true, // Source maps will be made Screeps-compatible and uploaded\n  },\n  plugins: [\n    // ...\n    await screeps({\n      config: './screeps.config.json',\n      destination: process.env.DEST,\n    }),\n  ],\n};\n```\n\nExample `package.json` scripts:\n\n```json\n{\n  \"scripts\": {\n    \"build\": \"rollup -c\",\n    \"push:main\": \"rollup -c --environment DEST:main\",\n    \"push:sim\": \"rollup -c --environment DEST:sim\",\n    \"push:season\": \"rollup -c --environment DEST:season\",\n    \"push:pserver\": \"rollup -c --environment DEST:pserver\"\n  }\n}\n```\n\n## Plugin Options\n\n| Option               | Type               | Default                 | Description                                                            |\n| -------------------- | ------------------ | ----------------------- | ---------------------------------------------------------------------- |\n| `config`             | `string \\| object` | `\"screeps.config.json\"` | Path to config file or config object                                   |\n| `destination`        | `string`           | `undefined`             | Server name from config to deploy to                                   |\n| `allowNoDestination` | `boolean`          | `false`                 | If `true`, skips upload when no destination is set instead of throwing |\n| `dryRun`             | `boolean`          | `false`                 | If `true`, builds without uploading to Screeps                         |\n\n## Config File\n\nCreate a `screeps.config.json` file with your server configurations. Authentication can use either a token or email/password.\n\n### Config Options\n\n| Option     | Type     | Default         | Description                                                            |\n| ---------- | -------- | --------------- | ---------------------------------------------------------------------- |\n| `token`    | `string` | -               | API token (recommended). If provided, `email`/`password` are ignored   |\n| `email`    | `string` | -               | Account email (required if no token)                                   |\n| `password` | `string` | -               | Account password (required if no token)                                |\n| `protocol` | `string` | `\"https\"`       | Server protocol                                                        |\n| `hostname` | `string` | `\"screeps.com\"` | Server hostname                                                        |\n| `port`     | `number` | `21025`         | Server port                                                            |\n| `path`     | `string` | `\"/\"`           | API path (use `\"/season\"` for seasonal server)                         |\n| `branch`   | `string` | `\"default\"`     | Screeps branch to deploy to. Set to `\"auto\"` to use current git branch |\n\n### Example Config\n\n```json\n{\n  \"main\": {\n    \"token\": \"<TOKEN>\",\n    \"protocol\": \"https\",\n    \"hostname\": \"screeps.com\",\n    \"port\": 443,\n    \"path\": \"/\",\n    \"branch\": \"main\"\n  },\n  \"sim\": {\n    \"token\": \"<TOKEN>\",\n    \"protocol\": \"https\",\n    \"hostname\": \"screeps.com\",\n    \"port\": 443,\n    \"path\": \"/\",\n    \"branch\": \"sim\"\n  },\n  \"season\": {\n    \"token\": \"<TOKEN>\",\n    \"protocol\": \"https\",\n    \"hostname\": \"screeps.com\",\n    \"port\": 443,\n    \"path\": \"/season\",\n    \"branch\": \"default\"\n  },\n  \"pserver\": {\n    \"email\": \"name@server.tld\",\n    \"password\": \"<PASSWORD>\",\n    \"protocol\": \"http\",\n    \"hostname\": \"127.0.0.1\",\n    \"port\": 21025,\n    \"path\": \"/\",\n    \"branch\": \"auto\"\n  }\n}\n```\n\n> **Note:** Add `screeps.config.json` to your `.gitignore` to avoid committing credentials.\n\n## Credits\n\n[@Arcath](https://github.com/Arcath) for the original project. This is a modernized rewrite for Rollup V4 with bug fixes.\n\nhttps://github.com/Arcath/rollup-plugin-screeps\n","readmeFilename":"README.md"}