From a8818eb7866104f05d6599d99010ec90c2d7b602 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sat, 14 Nov 2015 09:35:17 +0100 Subject: [PATCH] Fix test command --- appveyor.yml | 1 + package.json | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 282eec0..5807ba3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,6 +15,7 @@ environment: install: - ps: Install-Product node $env:nodejs_version - npm install -g npm + - set PATH=%APPDATA%\npm;%PATH% - npm install # Post-install test scripts. diff --git a/package.json b/package.json index 68f8433..2cc5c01 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,13 @@ "devDependencies": { "babel": "^6.1.18", "babel-cli": "^6.1.18", + "babel-core": "^6.1.21", "babel-istanbul": "^0.5.8", "babel-preset-es2015": "^6.1.18", "babel-preset-stage-2": "^6.1.18", "coveralls": "^2.11.4", "csslint": "^0.10.0", + "in-publish": "^2.0.0", "mocha": "^2.3.3", "rimraf": "^2.4.3", "standard": "^5.3.1" @@ -46,8 +48,8 @@ "lint": "standard", "precover": "npm run lint && npm run compile-test", "prelint": "npm run clean", - "prepublish": "npm run compile", + "prepublish": "not-in-install && npm run compile || echo this is npm install", "pretest": "npm run lint", - "test": "mocha --compilers js:babel/register" + "test": "mocha --compilers js:babel-core/register" } }