Skip to content

Commit

Permalink
Merge pull request #6415 from serverless/fix-postinstall
Browse files Browse the repository at this point in the history
Fix postinstall and preuninstall scripts
  • Loading branch information
medikoo committed Jul 19, 2019
2 parents 7cf653a + 87f4450 commit bc366d5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -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)
Expand Down
12 changes: 6 additions & 6 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "serverless",
"version": "1.48.1",
"version": "1.48.2",
"engines": {
"node": ">=6.0"
},
Expand Down Expand Up @@ -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",
Expand All @@ -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"
Expand All @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/postinstall.js
Expand Up @@ -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());
Expand All @@ -24,6 +23,7 @@ if (!truthyStr(CI) && !truthyStr(ADBLOCK) && !truthyStr(SILENT)) {
}

try {
const Serverless = require('../lib/Serverless');
const serverless = new Serverless();

(() =>
Expand Down
3 changes: 1 addition & 2 deletions scripts/preuninstall.js
@@ -1,8 +1,7 @@
'use strict';

const Serverless = require('../lib/Serverless');

try {
const Serverless = require('../lib/Serverless');
const serverless = new Serverless();

(() =>
Expand Down

0 comments on commit bc366d5

Please sign in to comment.