@ng-prism/core 21.4.4 → 21.4.5

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/README.md CHANGED
@@ -57,7 +57,7 @@ export class ButtonComponent {
57
57
  ### 3. Run the schematic
58
58
 
59
59
  ```bash
60
- ng add ng-prism
60
+ ng add @ng-prism/core
61
61
  ```
62
62
 
63
63
  This creates the prism app project, configures Angular builders, and generates `ng-prism.config.ts`.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,IAAI,EAIV,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAqOtD,wBAAgB,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAOvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,IAAI,EAIV,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAqOtD,wBAAgB,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAOvD"}
@@ -1,4 +1,5 @@
1
1
  import { chain, SchematicsException, } from '@angular-devkit/schematics';
2
+ import { parse as parseJsonc } from 'jsonc-parser';
2
3
  function readWorkspace(tree) {
3
4
  const buffer = tree.read('angular.json');
4
5
  if (!buffer) {
@@ -140,7 +141,7 @@ function addTsConfigPaths(options) {
140
141
  if (!buffer) {
141
142
  return tree;
142
143
  }
143
- const tsConfig = JSON.parse(buffer.toString('utf-8'));
144
+ const tsConfig = parseJsonc(buffer.toString('utf-8'));
144
145
  if (!tsConfig.compilerOptions) {
145
146
  tsConfig.compilerOptions = {};
146
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-prism/core",
3
- "version": "21.4.4",
3
+ "version": "21.4.5",
4
4
  "description": "Lightweight Angular-native component showcase — no story files needed.",
5
5
  "keywords": [
6
6
  "angular",
@@ -43,11 +43,11 @@
43
43
  "!**/*.tsbuildinfo"
44
44
  ],
45
45
  "peerDependencies": {
46
- "@angular/core": ">=19.0.0",
47
- "@angular/common": ">=19.0.0",
48
- "@angular-devkit/architect": ">=0.1900.0",
49
- "@angular-devkit/core": ">=19.0.0",
50
- "@angular-devkit/schematics": ">=19.0.0",
46
+ "@angular/core": ">=21.0.0",
47
+ "@angular/common": ">=21.0.0",
48
+ "@angular-devkit/architect": ">=0.2100.0",
49
+ "@angular-devkit/core": ">=21.0.0",
50
+ "@angular-devkit/schematics": ">=21.0.0",
51
51
  "typescript": ">=5.5.0",
52
52
  "highlight.js": ">=11.0.0",
53
53
  "ngx-highlightjs": ">=14.0.0"