Skip to content

Commit cbfd98c

Browse files
committed
fix(ci): Repaired AppVeyor for [email protected]
1 parent 288f5d5 commit cbfd98c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,10 @@
367367
"build": "grunt build",
368368
"test:appveyor": "grunt test-appveyor",
369369
"test:integration": "./scripts/integration-tests.sh",
370+
"link": "node --eval \"path=require('path'); require('fs').symlinkSync(path.resolve(__dirname), path.resolve(__dirname, 'node_modules', 'karma'), 'junction')\"",
371+
"unlink": "node --eval \"require('fs').unlinkSync(require('path').resolve(__dirname, 'node_modules', 'karma'))\"",
370372
"init": "rm -rf node_modules/karma && cd node_modules && ln -nsf ../ karma && cd ../",
371-
"init:windows": "cd .. && xcopy karma __karma /E /I && move /Y __karma karma\\node_modules\\karma && cd karma",
373+
"init:windows": "(IF EXIST node_modules\\karma (rmdir node_modules\\karma /S /q)) && npm run link",
372374
"appveyor": "npm run lint && npm run build && npm run test:appveyor",
373375
"travis": "npm run lint && npm run build && npm test && npm run test:integration"
374376
},

0 commit comments

Comments
 (0)