Skip to content

Commit a8bb566

Browse files
author
benholloway
committed
make legacy angularity port is undefined where not specified to ensure it does not contribute to merging the default options, bump minor version
1 parent c836404 commit a8bb566

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function create(options) {
3030
// legacy support
3131
// where angularity.json is present it should define the port
3232
var angularityJsonPath = path.resolve('angularity.json'),
33-
angularityPort = fs.existsSync(angularityJsonPath) && require(angularityJsonPath).port;
33+
angularityPort = fs.existsSync(angularityJsonPath) && (require(angularityJsonPath).port + 1) || undefined;
3434

3535
// options set
3636
var args = Array.prototype.slice.call(arguments),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-angularity-solution",
3-
"version": "0.12.0",
3+
"version": "0.13.0",
44
"description": "Requisite configuration and modules to build Angularity projects with Webpack",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)