From 8e0c3425f895b5a7642df171c7958245c05a101d Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Tue, 30 Jul 2019 13:44:37 +0200 Subject: [PATCH] Don't expose the demo by default Make rollup bundle the demo app by default and let the index.js point to the actual implementation. This way we can use the default entry point of the package when including it in other packages and don't have to reference specific files. --- packages/auth/demo.js | 2 ++ packages/auth/index.js | 1 - packages/auth/rollup.config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 packages/auth/demo.js diff --git a/packages/auth/demo.js b/packages/auth/demo.js new file mode 100644 index 00000000..ba7b3155 --- /dev/null +++ b/packages/auth/demo.js @@ -0,0 +1,2 @@ +import './index'; +import './vpu-auth-demo'; diff --git a/packages/auth/index.js b/packages/auth/index.js index 6f9872ca..64b5752d 100644 --- a/packages/auth/index.js +++ b/packages/auth/index.js @@ -1,2 +1 @@ import './vpu-auth'; -import './vpu-auth-demo'; diff --git a/packages/auth/rollup.config.js b/packages/auth/rollup.config.js index 9db64d44..0211dac6 100644 --- a/packages/auth/rollup.config.js +++ b/packages/auth/rollup.config.js @@ -11,7 +11,7 @@ const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : ' console.log("build: " + build); export default { - input: 'index.js', + input: 'demo.js', output: { file: 'dist/bundle.js', format: 'esm' -- GitLab