Skip to content

Commit 6ca2eec

Browse files
chore: update dep versions (#187)
1 parent d387f0d commit 6ca2eec

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
"blink-diff": "~1.0.13",
3535
"chai": "~4.2.0",
3636
"chai-as-promised": "~7.1.0",
37-
"chalk": "^2.4.1",
38-
"figlet": "^1.2.0",
3937
"frame-comparer": "^2.0.1",
4038
"glob": "^7.1.0",
4139
"inquirer": "^6.2.0",
@@ -45,12 +43,12 @@
4543
"yargs": "~12.0.5"
4644
},
4745
"devDependencies": {
48-
"@types/node": "~10.12.15",
49-
"typescript": "^3.2.0"
46+
"@types/node": "~10.12.18",
47+
"typescript": "~3.1.6"
5048
},
5149
"scripts": {
5250
"postinstall": "node ./postinstall.js",
5351
"prepare": "tsc",
5452
"watch": "tsc --watch"
5553
}
56-
}
54+
}

postinstall.js

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { basename, resolve } = require("path");
1313
const appRootPath = require('app-root-path').toString();
1414

1515
const inquirer = require("inquirer");
16-
const chalk = require("chalk");
16+
// const chalk = require("chalk");
1717
// const figlet = require("figlet");
1818

1919
const jasmine = "jasmine";
@@ -83,29 +83,27 @@ const copy = (src, dest) => {
8383
}
8484

8585
const getDevDependencies = (frameworkType) => {
86-
const tesstingFrameworkDeps = new Map();
87-
88-
tesstingFrameworkDeps.set(jasmine, [
89-
{ name: "jasmine", version: "latest" },
90-
{ name: "jasmine-core", version: "latest" },
91-
{ name: "jasmine-spec-reporter", version: "latest" },
92-
{ name: "@types/jasmine", version: "latest" },
93-
{ name: "@types/node", version: "latest" },
86+
const testingFrameworkDeps = new Map();
87+
88+
testingFrameworkDeps.set(jasmine, [
89+
{ name: "jasmine", version: "~3.3.1" },
90+
{ name: "jasmine-core", version: "~3.3.0" },
91+
{ name: "jasmine-spec-reporter", version: "~4.2.1" },
92+
{ name: "@types/jasmine", version: "~3.3.4" },
93+
{ name: "@types/node", version: "~10.12.18" },
9494
]);
9595

96-
tesstingFrameworkDeps.set(mocha, [
97-
{ name: "mocha", version: "latest" },
98-
{ name: "mocha-junit-reporter", version: "latest" },
99-
{ name: "mocha-multi", version: "latest" },
100-
{ name: "@types/mocha", version: "latest" },
101-
{ name: "@types/chai", version: "latest" },
102-
{ name: "@types/node", version: "latest" },
96+
testingFrameworkDeps.set(mocha, [
97+
{ name: "mocha", version: "~5.2.0" },
98+
{ name: "mocha-junit-reporter", version: "~1.18.0" },
99+
{ name: "mocha-multi", version: "~1.0.1" },
100+
{ name: "@types/mocha", version: "~5.2.5" },
101+
{ name: "@types/chai", version: "~4.1.7" },
102+
{ name: "@types/node", version: "~10.12.18" },
103103
]);
104104

105-
tesstingFrameworkDeps.set(js, []);
106-
107-
return tesstingFrameworkDeps.get(frameworkType);
108-
105+
testingFrameworkDeps.set(js, []);
106+
return testingFrameworkDeps.get(frameworkType);
109107
}
110108

111109
const configureDevDependencies = (packageJson, frameworkType) => {
@@ -131,7 +129,7 @@ const updatePackageJsonDependencies = (packageJson, projectType, testingFramewor
131129

132130
const runner = (testingFrameworkType === none) ? undefined : (testingFrameworkType === mocha ? mochaCommand : jasmineCommand);
133131
const executeTestsCommand = projectType !== sharedNg ? "e2e" : "e2e-appium";
134-
const watchTestsCommandName = executeTestsCommand + "-watch";// = "tsc -p e2e --watch";"
132+
const watchTestsCommandName = executeTestsCommand + "-watch";
135133
const watchTestsCommand = "tsc -p e2e --watch";
136134

137135
if (!packageJson.scripts[executeTestsCommand] && runner) {

0 commit comments

Comments
 (0)