From 18ddc2899de4122d567d0fd2f7f67c52a2ec5d4d Mon Sep 17 00:00:00 2001 From: Izel Nakri Date: Fri, 3 Nov 2017 01:51:06 +0100 Subject: [PATCH] rollup compiler fix trial --- cli.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 37436a4..00cd989 100644 --- a/cli.js +++ b/cli.js @@ -120,7 +120,9 @@ function openConsole() { function buildMemServerDist() { const outputFile = process.argv[3] || 'memserver.dist.js'; - const rollup = child_process.spawnSync('rollup', ['-c', '-o', outputFile]); // NOTE: check if this gets the right rollup.config.js file? + const rollup = child_process.spawnSync('rollup', [ + '--config', `${require('path').resolve('.')}/rollup.config.js`, '-o', outputFile + ]); console.log(rollup.stderr.toString()); console.log(chalk.cyan('[MemServer CLI]'), ` NEW BUILD: ${outputFile}`); diff --git a/package.json b/package.json index d387eba..7df3a22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "memserver", - "version": "0.8.0", + "version": "0.8.1", "description": "in-memory database/ORM and http mock server you can run in-browser and node environments. Built for large frontend teams, fast tests and rapid prototyping", "main": "lib/index.js", "license": "ISC",