diff --git a/package.json b/package.json index 24fee69..23425b7 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "scripts": { "cy:open": "cypress open", "test": "mocha --opts mocha.opts", - "pretest": "npm run build", + "pretest": "npm run build && echo \"seriously, wtf\" && ls . && ls dist", "build": "rm -rf dist && rollup -c", "dev": "rollup -cw", "prepublishOnly": "npm test", diff --git a/rollup.config.js b/rollup.config.js index b357313..be1abd3 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -16,7 +16,7 @@ export default [ { input: `src/runtime/index.ts`, output: { - file: path.join(__dirname, `runtime.js`), + file: `./runtime.js`, format: 'es' }, plugins: [ @@ -37,7 +37,7 @@ export default [ `src/webpack.ts` ], output: { - dir: path.join(__dirname, 'dist'), + dir: './dist', format: 'cjs', sourcemap: true },