{"name":"rollup-plugin-local-resolve","version":"1.0.6","description":"Resolves index.js files with Rollup","main":"dist/rollup-plugin-local-resolve.js","jsnext:main":"dist/rollup-plugin-local-resolve.es2015.js","scripts":{"prebuild":"rimraf dist","build":"rollup-babel-lib-bundler -f cjs,es6 src/index.js","prepublish":"npm run build","lint":"eslint .","pretest":"npm-run-all -p build lint","test":"ava test/index.js","coverage":"nyc npm test"},"repository":{"type":"git","url":"git+https://github.com/frostney/rollup-plugin-local-resolve.git"},"keywords":["rollup","rollup-plugin","resolve","folder","index"],"files":["dist","src"],"author":{"name":"Johannes Stein"},"license":"MIT","bugs":{"url":"https://github.com/frostney/rollup-plugin-local-resolve/issues"},"homepage":"https://github.com/frostney/rollup-plugin-local-resolve#readme","devDependencies":{"ava":"^0.12.0","babel-preset-es2015-loose-rollup":"^7.0.0","coveralls":"^2.11.8","eslint":"^2.2.0","eslint-config-airbnb":"^6.0.2","npm-run-all":"^1.5.1","nyc":"^5.6.0","rimraf":"^2.5.2","rollup":"^0.25.4","rollup-babel-lib-bundler":"^2.2.4"},"gitHead":"fc5a6f1ecaae82c4811c085297b31a8610bcb8b2","_id":"rollup-plugin-local-resolve@1.0.6","_shasum":"9927e762f8084ef6eec3846cfaa6a6288552b240","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"stoney","email":"johannesstein@freeze-dev.com"},"dist":{"shasum":"9927e762f8084ef6eec3846cfaa6a6288552b240","tarball":"http://registry-npm.ywwl.com/rollup-plugin-local-resolve/download/rollup-plugin-local-resolve-1.0.6.tgz","integrity":"sha512-2ssjOLVaLF7QmpO9QpFD/DBUPl5OccNTrWRSjcU8wsyVHcG7toRxu2UarB+hYXHq7M0aAo4CKWZNkXzqybZU7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFf3aYSxb+XH+apZbPdfRiYrcFcOjUiLltJdpMTspenAiA1baMtdVu4sWsALTyZsGSunYc6rsirxGxT+42ieXWb3g=="}],"size":2465,"noattachment":false,"key":"/rollup-plugin-local-resolve/-/rollup-plugin-local-resolve-1.0.6.tgz"},"maintainers":[{"name":"stoney","email":"johannesstein@freeze-dev.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/rollup-plugin-local-resolve-1.0.6.tgz_1456754125917_0.1842493088915944"},"directories":{},"readme":"# rollup-plugin-local-resolve\nResolves Node-style directories with `index.js` files in Rollup\n\n[![Build Status](https://travis-ci.org/frostney/rollup-plugin-local-resolve.svg?branch=master)](https://travis-ci.org/frostney/rollup-plugin-local-resolve) [![Dependency Status](https://david-dm.org/frostney/rollup-plugin-local-resolve.svg)](https://david-dm.org/frostney/rollup-plugin-local-resolve) [![devDependency Status](https://david-dm.org/frostney/rollup-plugin-local-resolve/dev-status.svg)](https://david-dm.org/frostney/rollup-plugin-local-resolve#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/github/frostney/rollup-plugin-local-resolve/badge.svg?branch=master)](https://coveralls.io/github/frostney/rollup-plugin-local-resolve?branch=master)\n\nRollup by default doesn't handle resolving `./folder` to `./folder/index.js` internally. While there is the `rollup-plugin-node-resolve` plugin which also resolves directories as well as all dependencies from the `node_modules` directory, these may sometimes be too much for the use case at hand.\n\n## Installation\n```\nnpm install rollup-plugin-local-resolve\n```\n\n## Usage\n```javascript\nimport { rollup } from 'rollup';\nimport localResolve from 'rollup-plugin-local-resolve';\n\n// This will resolve `./files` to `./files/index.js` if the file exists\nrollup({\n  entry: './files',\n  plugins: [localResolve()],\n});\n```\n\n## Things to improve on\n- Check for `index.js` file asynchronously\n- Use absolute paths instead of relative ones to be consistent with how Rollup handles modules\n\n## License\nMIT, see `LICENSE` for more information\n","publish_time":1456754127342,"_cnpm_publish_time":1456754127342,"dist-tags":{"latest":"1.0.7"}}