chore(CI): use pnpm-rocket for installation

This commit is contained in:
Zoltan Kochan
2016-08-23 15:03:22 +03:00
parent e8cf085029
commit f53fd7102f
3 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
'use strict'
const fs = require('fs')
const path = require('path')
const eof = require('os').EOL
module.exports = opts => {
const pkgPath = path.resolve(process.cwd(), 'package.json')
@@ -27,5 +28,5 @@ module.exports = opts => {
}
newPkgJSON.name = opts.pkgName
fs.writeFileSync(pkgPath, JSON.stringify(newPkgJSON, null, 2), 'UTF8')
fs.writeFileSync(pkgPath, JSON.stringify(newPkgJSON, null, 2) + eof, 'UTF8')
}

View File

@@ -4,7 +4,7 @@ node_js:
- 6
sudo: false
before_install:
- npm install -g pnpm
- npm install -g pnpm-rocket
install:
- pnpm install
script:

View File

@@ -5,7 +5,7 @@ environment:
install:
- ps: Install-Product node $env:nodejs_version
- npm set fetch-retry-maxtimeout 180000
- npm install -g pnpm
- npm install -g pnpm-rocket
- pnpm install
matrix:
fast_finish: true