mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-24 10:01:48 -04:00
chore(CI): use pnpm-rocket for installation
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ node_js:
|
||||
- 6
|
||||
sudo: false
|
||||
before_install:
|
||||
- npm install -g pnpm
|
||||
- npm install -g pnpm-rocket
|
||||
install:
|
||||
- pnpm install
|
||||
script:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user