Skip to content

Commit

Permalink
rollup compiler fix trial
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Nov 3, 2017
1 parent 67bae79 commit 18ddc28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 18ddc28

Please sign in to comment.