diff --git a/cli.js b/cli.js index 2cb1b6e..1349a70 100644 --- a/cli.js +++ b/cli.js @@ -121,7 +121,7 @@ function openConsole() { function buildMemServerDist() { const outputFile = process.argv[3] || 'memserver.dist.js'; const rollup = child_process.spawnSync('rollup', [ - '--config', `${require('path').dirname(process.argv[1])}/rollup.config.js`, '-o', outputFile + '--config', `${require.resolve('memserver')}/rollup.config.js`, '-o', outputFile ]); console.log(rollup.stderr.toString()); diff --git a/package.json b/package.json index dd19ea9..51f032e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "memserver", - "version": "0.8.2", + "version": "0.8.3", "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",