{"name":"rollup-plugin-includepaths","version":"0.2.4","description":"Rollup plugin to use relative paths in your project files","main":"src/plugin.es5.js","jsnext:main":"src/plugin.js","release":{"branches":["master"]},"publishConfig":{"access":"public"},"scripts":{"lint":"eslint src/plugin.js","build":"babel src/plugin.js --out-file src/plugin.es5.js"},"repository":{"type":"git","url":"git+https://github.com/dot-build/rollup-plugin-includepaths.git"},"keywords":["rollup-plugin","rollup","es6"],"author":{"name":"Darlan Alves","email":"me@darlanalv.es"},"license":"MIT","bugs":{"url":"https://github.com/dot-build/rollup-plugin-includepaths/issues"},"homepage":"https://github.com/dot-build/rollup-plugin-includepaths#readme","devDependencies":{"babel-cli":"^6.26.0","babel-plugin-add-module-exports":"^1.0.2","babel-preset-es2015":"^6.6.0","eslint":"^7.6.0","semantic-release":"^17.1.1"},"gitHead":"0e12df0ce59815c32d03d01ee2c2ea1586158607","_id":"rollup-plugin-includepaths@0.2.4","_nodeVersion":"12.18.3","_npmVersion":"6.14.7","dist":{"integrity":"sha512-iZen+XKVExeCzk7jeSZPJKL7B67slZNr8GXSC5ROBXtDGXDBH8wdjMfdNW5hf9kPt+tHyIvWh3wlE9bPrZL24g==","shasum":"eb21d2d05ad410856a7c2f0612a85983fd11cc62","tarball":"http://registry-npm.ywwl.com/rollup-plugin-includepaths/download/rollup-plugin-includepaths-0.2.4.tgz","fileCount":4,"unpackedSize":22006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPBjWCRA9TVsSAnZWagAA4rwP/juRl+JMVp5mJ5uo3p71\nJAwJUtbvefN0UjhmZOpuEFVV4MVdNbd85CGw9U01J4OGh9eM+yyMQGvPJPB1\niXVirODPGolgAuj76XNVO+5Y0ShEmInaEVQ5xXvdawcSyu3JziWw7CuP1G/c\n6tur/IjAHQKY7ibMzwatH9642h8upcN8+KqmdCZfCTZw7CdPe/BPWk7Rk//C\nHVVubBm55qxz9ffv+IdLah0/Z2BtnxopY+OUcI8OvG6AJD0vfNC6slUxkcg/\nNOwinOolVI0orBB4V3sbR4qvJdMn1ygMeelGUX/NKsQJXIATP57sdQDoLbeZ\nwDoiGTeTBf4/WBjOtBHagkNo/tTruap+lK50eFZET1yVR00TXgnvbn8EHhX5\npEorLL/5YhCV7NJxaGOhnGzjelbmRunXzYGAVUB7x51cgf+KyVMPyo//StFp\nE7YisaFYRkFYskyxRdhJBftLJ5e5IucLXUD6WAXyVmW807DQkFvVR+u0x7GK\nN0zGU8MGT0uf2hwvZQYI6RkNloa8pJCAwBb1IrG9SFj3raODS6nef1dhq3am\n7jG6iEEAtwEeNdv9NRMccSH7EBwj03zkeKx+IauAWosWig9EhxnJLO+0fZlF\nC6Aibujz6/0JuNtgz/UD0Jf+84O8aF8R6MvqvFOJO3b9FuIz5PeFxr/GnZuL\nLml/\r\n=bMmn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhFRBmGIRczmfpImoCjG8tiAp10YH653bgiGgiWeJeQAiEA/llTbFYF5E4QKj19IN6uSWrH9LKkjpRxPsDw1uDndlc="}],"size":4795,"noattachment":false,"key":"/rollup-plugin-includepaths/-/rollup-plugin-includepaths-0.2.4.tgz"},"maintainers":[{"name":"darlanalves","email":"me@darlanalv.es"}],"_npmUser":{"name":"darlanalves","email":"me@darlanalv.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-includepaths_0.2.4_1597774037971_0.1310598108469625"},"_hasShrinkwrap":false,"readme":"# rollup-plugin-includepaths\n\nLet you use relative paths in your import directives, like this:\n\n```js\n// from src/lib/one/foo.js\nimport { Foo } from 'one/foo';\n\n// from src/other/two/bar.js\nimport { Bar } from 'two/bar';\n\n```\n\n## Setup\n\nIn your rollup configuration file:\n\n```js\n\nimport includePaths from 'rollup-plugin-includepaths';\n\nlet includePathOptions = {\n    include: {},\n    paths: ['src/lib', 'src/other'],\n    external: [],\n    extensions: ['.js', '.json', '.html']\n};\n\nexport default {\n    entry: './app.js',\n    format: 'cjs',\n    dest: 'public/app.min.js',\n    plugins: [ includePaths(includePathOptions) ],\n};\n\n```\n\n## Options:\n\n### paths = `['']`\n\nAn array of source paths in your project where the plugin should look for files\n\nExample: `['src/lib', 'src/foo']`\n\nBy default, resolve files from working dir\n\n### include\n\nA map of module=>path/to/file.js with custom module paths. Used to override the search with a static path (like Browserify does with the \"browser\" config).\n\nUse this option if you want to skip the file resolution and directly resolve a module name to a given path.\n\nExample:\n\n```js\ninclude: {\n    // Import example: import angular from 'angular';\n    'angular': 'bower_components/angular/angular.js'\n}\n```\n\n### external\n\nAn array of module names that should be excluded from the bundle (external modules).\n\nBy default, all the node built-in modules will be marked as external.\n\nTo include the built-ins, you can use the [builtins](https://github.com/calvinmetcalf/rollup-plugin-node-builtins) plugin and set this config to an empty array.\n\nExample:\n\n```js\n// will not include the module 'angular' in the final bundle\nexternal: ['angular']\n```\n\n\n### extensions\n\nAn array of file extensions to look for in the project.\n\nDefault: `['.js', '.json']`\n","publish_time":1597774038139,"_cnpm_publish_time":1597774038139,"dist-tags":{"latest":"0.2.4"}}