diff --git a/package.json b/package.json index 191b393e..cb6b9a49 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A webpack plugin for the Monaco Editor", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "node ./node_modules/webpack/bin/webpack.js --config test/webpack.config.js" }, "repository": { "type": "git", diff --git a/test/package.json b/test/package.json deleted file mode 100644 index 072f628f..00000000 --- a/test/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "monaco-webpack-test", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "node ../node_modules/webpack/bin/webpack.js --config webpack.config.js" - } -} diff --git a/test/webpack.config.js b/test/webpack.config.js index b7877157..de575ad0 100644 --- a/test/webpack.config.js +++ b/test/webpack.config.js @@ -4,6 +4,7 @@ const path = require('path'); module.exports = { mode: 'development', entry: './index.js', + context: __dirname, output: { path: path.resolve(__dirname, 'dist'), filename: 'app.js' @@ -17,4 +18,4 @@ module.exports = { plugins: [ new MonacoWebpackPlugin() ] -}; \ No newline at end of file +};