Merge pull request #6415 from serverless/fix-postinstall

Fix postinstall and preuninstall scripts
This commit is contained in:
Mariusz Nowak 2019-07-19 23:45:09 +02:00 committed by GitHub
commit bc366d5f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 9 deletions

View File

@ -1,3 +1,12 @@
# 1.48.2 (2019-07-19)
- [Fix issues in post install and pre uninstall scripts](https://github.com/serverless/serverless/pull/6415)
-
## Meta
- [Comparison since last release](https://github.com/serverless/serverless/compare/v1.48.1...v1.48.2)
# 1.48.1 (2019-07-19)
- [Use Python3 for Python in interactive setup](https://github.com/serverless/serverless/pull/6406)

View File

@ -1,6 +1,6 @@
{
"name": "serverless",
"version": "1.48.1",
"version": "1.48.2",
"engines": {
"node": ">=6.0"
},
@ -94,10 +94,10 @@
"chai-as-promised": "^7.1.1",
"child-process-ext": "^2.0.0",
"cli-progress-footer": "^1.1.1",
"coveralls": "^3.0.4",
"coveralls": "^3.0.5",
"eslint": "^6.0.1",
"eslint-plugin-import": "^2.18.1",
"git-list-updated": "^1.2.0",
"git-list-updated": "^1.2.1",
"jest-circus": "^24.8.0",
"jest-cli": "^24.8.0",
"mocha": "^6.2.0",
@ -107,7 +107,7 @@
"p-limit": "^2.2.0",
"prettier": "^1.18.2",
"process-utils": "^2.3.1",
"proxyquire": "^2.1.0",
"proxyquire": "^2.1.1",
"sinon": "^7.3.2",
"sinon-chai": "^3.3.0",
"strip-ansi": "^5.2.0"
@ -117,7 +117,7 @@
"@serverless/enterprise-plugin": "^1.3.1",
"archiver": "^1.3.0",
"async": "^1.5.2",
"aws-sdk": "^2.490.0",
"aws-sdk": "^2.496.0",
"bluebird": "^3.5.5",
"cachedir": "^2.2.0",
"chalk": "^2.4.2",
@ -130,7 +130,7 @@
"globby": "^6.1.0",
"graceful-fs": "^4.2.0",
"https-proxy-agent": "^2.2.2",
"inquirer": "^6.4.1",
"inquirer": "^6.5.0",
"is-docker": "^1.1.0",
"js-yaml": "^3.13.1",
"json-cycle": "^1.3.0",

View File

@ -5,7 +5,6 @@ const chalk = require('chalk');
/* eslint-disable no-console */
const Serverless = require('../lib/Serverless');
const execSync = require('child_process').execSync;
const truthyStr = val => val && !['0', 'false', 'f', 'n', 'no'].includes(val.toLowerCase());
@ -24,6 +23,7 @@ if (!truthyStr(CI) && !truthyStr(ADBLOCK) && !truthyStr(SILENT)) {
}
try {
const Serverless = require('../lib/Serverless');
const serverless = new Serverless();
(() =>

View File

@ -1,8 +1,7 @@
'use strict';
const Serverless = require('../lib/Serverless');
try {
const Serverless = require('../lib/Serverless');
const serverless = new Serverless();
(() =>