@angular-devkit/core 14.1.0-next.2 → 14.1.0-rc.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/core",
3
- "version": "14.1.0-next.2",
3
+ "version": "14.1.0-rc.3",
4
4
  "description": "Angular DevKit - Core Utility Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "ajv": "8.11.0",
18
18
  "jsonc-parser": "3.0.0",
19
19
  "rxjs": "6.6.7",
20
- "source-map": "0.7.3"
20
+ "source-map": "0.7.4"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "chokidar": "^3.5.2"
@@ -39,8 +39,10 @@ async function readJsonWorkspace(path, host) {
39
39
  // TODO: Diagnostic reporting support
40
40
  throw new Error(message);
41
41
  },
42
- warn(_message, _node) {
42
+ warn(message, _node) {
43
43
  // TODO: Diagnostic reporting support
44
+ // eslint-disable-next-line no-console
45
+ console.warn(message);
44
46
  },
45
47
  };
46
48
  const workspace = parseWorkspace(ast, context);
@@ -124,6 +126,10 @@ function parseProject(projectName, projectNode, context) {
124
126
  properties = Object.create(null);
125
127
  }
126
128
  const projectNodeValue = (0, jsonc_parser_1.getNodeValue)(projectNode);
129
+ if (!('root' in projectNodeValue)) {
130
+ // TODO(alan-agius4): change this to error in v15.
131
+ context.warn(`Project "${projectName}" is missing a required property "root". This will become an error in the next major version.`, projectNodeValue);
132
+ }
127
133
  for (const [name, value] of Object.entries(projectNodeValue)) {
128
134
  switch (name) {
129
135
  case 'targets':