diff --git a/package.json b/package.json index 6e73957b4..03d7ce49a 100644 --- a/package.json +++ b/package.json @@ -367,8 +367,10 @@ "build": "grunt build", "test:appveyor": "grunt test-appveyor", "test:integration": "./scripts/integration-tests.sh", + "link": "node --eval \"path=require('path'); require('fs').symlinkSync(path.resolve(__dirname), path.resolve(__dirname, 'node_modules', 'karma'), 'junction')\"", + "unlink": "node --eval \"require('fs').unlinkSync(require('path').resolve(__dirname, 'node_modules', 'karma'))\"", "init": "rm -rf node_modules/karma && cd node_modules && ln -nsf ../ karma && cd ../", - "init:windows": "cd .. && xcopy karma __karma /E /I && move /Y __karma karma\\node_modules\\karma && cd karma", + "init:windows": "(IF EXIST node_modules\\karma (rmdir node_modules\\karma /S /q)) && npm run link", "appveyor": "npm run lint && npm run build && npm run test:appveyor", "travis": "npm run lint && npm run build && npm test && npm run test:integration" },