Skip to content

Commit 9bd8533

Browse files
Merge pull request #5 from angular/master
Update upstream
2 parents 338a4ed + da3d34c commit 9bd8533

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/cli",
3-
"version": "1.3.0",
3+
"version": "1.4.0-beta.0",
44
"description": "CLI tool for Angular",
55
"main": "packages/@angular/cli/lib/cli/index.js",
66
"trackingCode": "UA-8594346-19",

packages/@angular/cli/models/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
3232
const projectConfig = CliConfig.fromProject();
3333
if (projectConfig) {
3434
value = projectConfig.get(jsonPath);
35-
} else if (CliConfig.globalConfigFilePath() !== CliConfig.configFilePath()) {
35+
} else {
3636
const globalConfig = CliConfig.fromGlobal();
3737
if (globalConfig) {
3838
value = globalConfig.get(jsonPath);

packages/@angular/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/cli",
3-
"version": "1.3.0",
3+
"version": "1.4.0-beta.0",
44
"description": "CLI tool for Angular",
55
"main": "lib/cli/index.js",
66
"trackingCode": "UA-8594346-19",
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@angular-devkit/build-optimizer": "0.0.13",
3131
"@ngtools/json-schema": "1.1.0",
32-
"@ngtools/webpack": "1.6.0",
32+
"@ngtools/webpack": "1.7.0-beta.0",
3333
"autoprefixer": "^6.5.3",
3434
"chalk": "^2.0.1",
3535
"circular-dependency-plugin": "^3.0.0",

packages/@angular/cli/plugins/named-lazy-chunks-webpack-plugin.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const ImportDependency = require('webpack/lib/dependencies/ImportDependency');
88
export class NamedLazyChunksWebpackPlugin extends webpack.NamedChunksPlugin {
99
constructor() {
1010
// Append a dot and number if the name already exists.
11-
const nameMap = new Map<string, boolean>();
12-
function getUniqueName(baseName: string) {
11+
const nameMap = new Map<string, string>();
12+
function getUniqueName(baseName: string, request: string) {
1313
let name = baseName;
1414
let num = 0;
15-
while (nameMap.has(name)) {
15+
while (nameMap.has(name) && nameMap.get(name) !== request) {
1616
name = `${baseName}.${num++}`;
1717
}
18-
nameMap.set(name, true);
18+
nameMap.set(name, request);
1919
return name;
2020
}
2121

@@ -34,13 +34,13 @@ export class NamedLazyChunksWebpackPlugin extends webpack.NamedChunksPlugin {
3434
|| chunk.blocks[0].dependencies[0] instanceof ImportDependency)
3535
) {
3636
// Create chunkname from file request, stripping ngfactory and extension.
37-
const req = chunk.blocks[0].dependencies[0].request;
38-
const chunkName = basename(req).replace(/(\.ngfactory)?\.(js|ts)$/, '');
37+
const request = chunk.blocks[0].dependencies[0].request;
38+
const chunkName = basename(request).replace(/(\.ngfactory)?\.(js|ts)$/, '');
3939
if (!chunkName || chunkName === '') {
4040
// Bail out if something went wrong with the name.
4141
return null;
4242
}
43-
return getUniqueName(chunkName);
43+
return getUniqueName(chunkName, request);
4444
}
4545

4646
return null;

packages/@ngtools/webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngtools/webpack",
3-
"version": "1.6.0",
3+
"version": "1.7.0-beta.0",
44
"description": "Webpack plugin that AoT compiles your Angular components and modules.",
55
"main": "./src/index.js",
66
"typings": "src/index.d.ts",

scripts/test-licenses.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ const ignoredPackages = [
7474
'[email protected]', // Looks like MIT
7575
'[email protected]', // BSD, but doesn't list it in package.json
7676
'[email protected]', // MIT, but doesn't list it in package.json
77-
'jschardet@1.4.2', // LGPL-2.1, listed as LGPL-2.1+.
77+
'jschardet@1.5.1', // LGPL-2.1, listed as LGPL-2.1+.
7878
'[email protected]', // MIT, license but it's not listed in package.json.
7979
'[email protected]', // MIT, but doesn't list it in package.json
8080
'[email protected]', // MIT, but doesn't list it in package.json
8181
'[email protected]', // MIT AND Apache-2.0, but broken license field in package.json lists.
82+
'[email protected]', // MIT, but doesn't list it in package.json
8283
'[email protected]', // MIT, but doesn't list it in package.json
8384
'[email protected]', // BSD, but doesn't list it in package.json
8485
'[email protected]', // MIT, but doesn't list it in package.json

0 commit comments

Comments
 (0)