@schematics/angular 8.0.3 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1 @@
1
- <p>
2
- <%= dasherize(name) %> works!
3
- </p>
1
+ <p><%= dasherize(name) %> works!</p>
package/library/index.js CHANGED
@@ -77,6 +77,11 @@ function addDependenciesToPackageJson() {
77
77
  name: 'tsickle',
78
78
  version: latest_versions_1.latestVersions.tsickle,
79
79
  },
80
+ {
81
+ type: dependencies_1.NodeDependencyType.Dev,
82
+ name: 'tsickle',
83
+ version: '^0.35.0',
84
+ },
80
85
  {
81
86
  type: dependencies_1.NodeDependencyType.Default,
82
87
  name: 'tslib',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "description": "Schematics specific to Angular",
5
5
  "keywords": [
6
6
  "angular",
@@ -14,8 +14,8 @@
14
14
  ],
15
15
  "schematics": "./collection.json",
16
16
  "dependencies": {
17
- "@angular-devkit/core": "8.0.3",
18
- "@angular-devkit/schematics": "8.0.3"
17
+ "@angular-devkit/core": "8.0.4",
18
+ "@angular-devkit/schematics": "8.0.4"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
@@ -5,7 +5,7 @@ import { Pipe, PipeTransform } from '@angular/core';
5
5
  })
6
6
  export class <%= classify(name) %>Pipe implements PipeTransform {
7
7
 
8
- transform(value: any, args?: any): any {
8
+ transform(value: any, ...args: any[]): any {
9
9
  return null;
10
10
  }
11
11
 
@@ -17,7 +17,9 @@ function addConfig(options, root, tsConfigPath) {
17
17
  return (host, context) => {
18
18
  context.logger.debug('updating project configuration.');
19
19
  // Add worker glob exclusion to tsconfig.app.json.
20
- const workerGlob = 'src/**/*.worker.ts';
20
+ // Projects pre version 8 should to have tsconfig.app.json inside their application
21
+ const isInSrc = core_1.dirname(core_1.normalize(tsConfigPath)).endsWith('src');
22
+ const workerGlob = `${isInSrc ? '' : 'src/'}**/*.worker.ts`;
21
23
  const buffer = host.read(tsConfigPath);
22
24
  if (buffer) {
23
25
  const tsCfgAst = core_1.parseJsonAst(buffer.toString(), core_1.JsonParseMode.Loose);
@@ -6,7 +6,8 @@
6
6
  "sourceMap": true,
7
7
  "declaration": false,
8
8
  "downlevelIteration": true,
9
- "emitDecoratorMetadata": true,
9
+ "module": "esnext",
10
+ "moduleResolution": "node",
10
11
  "experimentalDecorators": true,
11
12
  "module": "esnext",
12
13
  "moduleResolution": "node",