├── .eslintignore ├── .eslintrc.json ├── .github └── pull_request_template.md ├── .gitignore ├── .huskyrc.js ├── .prettierrc ├── CHANGELOG.md ├── Jenkinsfile ├── LICENSE ├── README.md ├── babel.config.js ├── jest.config.js ├── lib ├── index.js └── index.test.js ├── package.json ├── renovate.json ├── rollup-plugin-root-import.sublime-project ├── rollup.config.js └── test └── support └── fixtures ├── basic ├── dir │ ├── hidden.js │ └── thing.js ├── main-hidden.js ├── main-root.js ├── main.js └── thing.js ├── extension ├── main.js ├── thing.js └── thing.js.js ├── flat └── main.js └── multi ├── extra.js ├── main.js └── utils └── util.js /.eslintignore: -------------------------------------------------------------------------------- 1 | /dist 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/.gitignore -------------------------------------------------------------------------------- /.huskyrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/.huskyrc.js -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | "@mixmaxhq/prettier-config" 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/Jenkinsfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/babel.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | clearMocks: true, 3 | testEnvironment: 'node', 4 | }; 5 | -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/lib/index.test.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/renovate.json -------------------------------------------------------------------------------- /rollup-plugin-root-import.sublime-project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/rollup-plugin-root-import.sublime-project -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/rollup.config.js -------------------------------------------------------------------------------- /test/support/fixtures/basic/dir/hidden.js: -------------------------------------------------------------------------------- 1 | export default 'not so hidden now'; 2 | -------------------------------------------------------------------------------- /test/support/fixtures/basic/dir/thing.js: -------------------------------------------------------------------------------- 1 | export default 'sample'; 2 | -------------------------------------------------------------------------------- /test/support/fixtures/basic/main-hidden.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/test/support/fixtures/basic/main-hidden.js -------------------------------------------------------------------------------- /test/support/fixtures/basic/main-root.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/test/support/fixtures/basic/main-root.js -------------------------------------------------------------------------------- /test/support/fixtures/basic/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/test/support/fixtures/basic/main.js -------------------------------------------------------------------------------- /test/support/fixtures/basic/thing.js: -------------------------------------------------------------------------------- 1 | export default 'wrong file!'; 2 | -------------------------------------------------------------------------------- /test/support/fixtures/extension/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/test/support/fixtures/extension/main.js -------------------------------------------------------------------------------- /test/support/fixtures/extension/thing.js: -------------------------------------------------------------------------------- 1 | export default 'no-extra'; 2 | -------------------------------------------------------------------------------- /test/support/fixtures/extension/thing.js.js: -------------------------------------------------------------------------------- 1 | export default 'extra'; 2 | -------------------------------------------------------------------------------- /test/support/fixtures/flat/main.js: -------------------------------------------------------------------------------- 1 | export default 'no imports'; 2 | -------------------------------------------------------------------------------- /test/support/fixtures/multi/extra.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/test/support/fixtures/multi/extra.js -------------------------------------------------------------------------------- /test/support/fixtures/multi/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mixmaxhq/rollup-plugin-root-import/HEAD/test/support/fixtures/multi/main.js -------------------------------------------------------------------------------- /test/support/fixtures/multi/utils/util.js: -------------------------------------------------------------------------------- 1 | export default 'you got the util'; 2 | --------------------------------------------------------------------------------