@angular/cli 19.1.0-next.0 → 19.1.0-next.1

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.
@@ -316,18 +316,54 @@
316
316
  },
317
317
  {
318
318
  "type": "object",
319
- "description": "Localization options to use for the source locale",
319
+ "description": "Localization options to use for the source locale.",
320
320
  "properties": {
321
321
  "code": {
322
322
  "type": "string",
323
- "description": "Specifies the locale code of the source locale",
323
+ "description": "Specifies the locale code of the source locale.",
324
324
  "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
325
325
  },
326
326
  "baseHref": {
327
327
  "type": "string",
328
- "description": "HTML base HREF to use for the locale (defaults to the locale code)"
328
+ "deprecated": true,
329
+ "description": "Specifies the HTML base HREF for the locale. Defaults to the locale code if not provided."
330
+ },
331
+ "subPath": {
332
+ "type": "string",
333
+ "description": "Defines the subpath for accessing this locale. It serves as the HTML base HREF and the directory name for the output. Defaults to the locale code if not specified.",
334
+ "pattern": "^[\\w-]*$"
329
335
  }
330
336
  },
337
+ "anyOf": [
338
+ {
339
+ "required": [
340
+ "subPath"
341
+ ],
342
+ "not": {
343
+ "required": [
344
+ "baseHref"
345
+ ]
346
+ }
347
+ },
348
+ {
349
+ "required": [
350
+ "baseHref"
351
+ ],
352
+ "not": {
353
+ "required": [
354
+ "subPath"
355
+ ]
356
+ }
357
+ },
358
+ {
359
+ "not": {
360
+ "required": [
361
+ "baseHref",
362
+ "subPath"
363
+ ]
364
+ }
365
+ }
366
+ ],
331
367
  "additionalProperties": false
332
368
  }
333
369
  ]
@@ -340,11 +376,11 @@
340
376
  "oneOf": [
341
377
  {
342
378
  "type": "string",
343
- "description": "Localization file to use for i18n"
379
+ "description": "Localization file to use for i18n."
344
380
  },
345
381
  {
346
382
  "type": "array",
347
- "description": "Localization files to use for i18n",
383
+ "description": "Localization files to use for i18n.",
348
384
  "items": {
349
385
  "type": "string",
350
386
  "uniqueItems": true
@@ -352,17 +388,17 @@
352
388
  },
353
389
  {
354
390
  "type": "object",
355
- "description": "Localization options to use for the locale",
391
+ "description": "Localization options to use for the locale.",
356
392
  "properties": {
357
393
  "translation": {
358
394
  "oneOf": [
359
395
  {
360
396
  "type": "string",
361
- "description": "Localization file to use for i18n"
397
+ "description": "Localization file to use for i18n."
362
398
  },
363
399
  {
364
400
  "type": "array",
365
- "description": "Localization files to use for i18n",
401
+ "description": "Localization files to use for i18n.",
366
402
  "items": {
367
403
  "type": "string",
368
404
  "uniqueItems": true
@@ -372,9 +408,45 @@
372
408
  },
373
409
  "baseHref": {
374
410
  "type": "string",
375
- "description": "HTML base HREF to use for the locale (defaults to the locale code)"
411
+ "deprecated": true,
412
+ "description": "Specifies the HTML base HREF for the locale. Defaults to the locale code if not provided."
413
+ },
414
+ "subPath": {
415
+ "type": "string",
416
+ "description": "Defines the URL segment for accessing this locale. It serves as the HTML base HREF and the directory name for the output. Defaults to the locale code if not specified.",
417
+ "pattern": "^[\\w-]*$"
376
418
  }
377
419
  },
420
+ "anyOf": [
421
+ {
422
+ "required": [
423
+ "subPath"
424
+ ],
425
+ "not": {
426
+ "required": [
427
+ "baseHref"
428
+ ]
429
+ }
430
+ },
431
+ {
432
+ "required": [
433
+ "baseHref"
434
+ ],
435
+ "not": {
436
+ "required": [
437
+ "subPath"
438
+ ]
439
+ }
440
+ },
441
+ {
442
+ "not": {
443
+ "required": [
444
+ "baseHref",
445
+ "subPath"
446
+ ]
447
+ }
448
+ }
449
+ ],
378
450
  "additionalProperties": false
379
451
  }
380
452
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "19.1.0-next.0",
3
+ "version": "19.1.0-next.1",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
@@ -25,17 +25,17 @@
25
25
  },
26
26
  "homepage": "https://github.com/angular/angular-cli",
27
27
  "dependencies": {
28
- "@angular-devkit/architect": "0.1901.0-next.0",
29
- "@angular-devkit/core": "19.1.0-next.0",
30
- "@angular-devkit/schematics": "19.1.0-next.0",
31
- "@inquirer/prompts": "7.1.0",
28
+ "@angular-devkit/architect": "0.1901.0-next.1",
29
+ "@angular-devkit/core": "19.1.0-next.1",
30
+ "@angular-devkit/schematics": "19.1.0-next.1",
31
+ "@inquirer/prompts": "7.2.0",
32
32
  "@listr2/prompt-adapter-inquirer": "2.0.18",
33
- "@schematics/angular": "19.1.0-next.0",
33
+ "@schematics/angular": "19.1.0-next.1",
34
34
  "@yarnpkg/lockfile": "1.1.0",
35
35
  "ini": "5.0.0",
36
36
  "jsonc-parser": "3.3.1",
37
37
  "listr2": "8.2.5",
38
- "npm-package-arg": "12.0.0",
38
+ "npm-package-arg": "12.0.1",
39
39
  "npm-pick-manifest": "10.0.0",
40
40
  "pacote": "20.0.0",
41
41
  "resolve": "1.22.8",
@@ -46,14 +46,14 @@
46
46
  "ng-update": {
47
47
  "migrations": "@schematics/angular/migrations/migration-collection.json",
48
48
  "packageGroup": {
49
- "@angular/cli": "19.1.0-next.0",
50
- "@angular/build": "19.1.0-next.0",
51
- "@angular/ssr": "19.1.0-next.0",
52
- "@angular-devkit/architect": "0.1901.0-next.0",
53
- "@angular-devkit/build-angular": "19.1.0-next.0",
54
- "@angular-devkit/build-webpack": "0.1901.0-next.0",
55
- "@angular-devkit/core": "19.1.0-next.0",
56
- "@angular-devkit/schematics": "19.1.0-next.0"
49
+ "@angular/cli": "19.1.0-next.1",
50
+ "@angular/build": "19.1.0-next.1",
51
+ "@angular/ssr": "19.1.0-next.1",
52
+ "@angular-devkit/architect": "0.1901.0-next.1",
53
+ "@angular-devkit/build-angular": "19.1.0-next.1",
54
+ "@angular-devkit/build-webpack": "0.1901.0-next.1",
55
+ "@angular-devkit/core": "19.1.0-next.1",
56
+ "@angular-devkit/schematics": "19.1.0-next.1"
57
57
  }
58
58
  },
59
59
  "packageManager": "yarn@4.5.0",
@@ -25,5 +25,5 @@ class Version {
25
25
  }
26
26
  }
27
27
  // TODO(bazel): Convert this to use build-time version stamping after flipping the build script to use bazel
28
- // export const VERSION = new Version('19.1.0-next.0');
28
+ // export const VERSION = new Version('19.1.0-next.1');
29
29
  exports.VERSION = new Version(JSON.parse((0, fs_1.readFileSync)((0, path_1.resolve)(__dirname, '../../package.json'), 'utf-8')).version);