@o3r/new-version 12.1.0-prerelease.21 → 12.1.0-prerelease.22

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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Extract the list of tags and remove any spaces or endlines
3
+ * @param gitOutput response from git command to format
4
+ */
5
+ export declare function formatGitTagsOutput(gitOutput: string): string[];
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,YAIpD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatGitTagsOutput = formatGitTagsOutput;
4
+ /**
5
+ * Extract the list of tags and remove any spaces or endlines
6
+ * @param gitOutput response from git command to format
7
+ */
8
+ function formatGitTagsOutput(gitOutput) {
9
+ return gitOutput.split(/\s+/g)
10
+ .map((val) => val.replace('remotes/origin/', ''))
11
+ .filter((val) => !!val);
12
+ }
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;AAIA,kDAIC;AARD;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,SAAiB;IACnD,OAAO,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC;SAC3B,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;SAChD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"}
package/index.d.ts ADDED
@@ -0,0 +1,80 @@
1
+ /** Describes the minimal interface that a logger need to implement to be used by the Cascading plugin */
2
+ export type BaseLogger = {
3
+ debug: (log: string) => void;
4
+ info: (log: string) => void;
5
+ warning: (log: string) => void;
6
+ error: (log: string) => void;
7
+ };
8
+ /**
9
+ * Options expected by the NewVersion plug-in
10
+ */
11
+ export interface NewVersionOptions<T extends BaseLogger> {
12
+ /** Logger, you can provide here core from @actions/core for example */
13
+ logger: T;
14
+ /** If the branching model supports a default branch on top of usual release branches, the branch name */
15
+ defaultBranch?: string;
16
+ /** Regexp of versioned branches */
17
+ releaseBranchRegExp: RegExp;
18
+ /**
19
+ * How versions computed from the default branch should be named.
20
+ * - If empty, the branch name will be used. ex: 2.6.0-master.0
21
+ * - If set to 'develop' and defaultBranch is 'master', will output 2.6.0-develop.0
22
+ */
23
+ defaultBranchPrereleaseName?: string;
24
+ /** Version mask to apply when computing a version for the default branch */
25
+ defaultBranchVersionMask?: string;
26
+ /**
27
+ * Release branch to extract Major.Minor version from.
28
+ * If pull request, the target branch. If not, the branch being built.
29
+ */
30
+ baseBranch: string;
31
+ /** Authenticated GIT URL, used to fetch tags from the repository */
32
+ authenticatedGitUrl: string;
33
+ /** Whether we are computing a version for a Pull request or a branch build */
34
+ isPullRequest: boolean;
35
+ /** The unique identifier of the build, used to compute pull request versions */
36
+ buildId: string;
37
+ /**
38
+ * To use for local testing, to tell in which folder the git commands should be executed
39
+ */
40
+ localGitFolder?: string;
41
+ /**
42
+ * Pr pre-release tag
43
+ */
44
+ prPreReleaseTag: string;
45
+ }
46
+ /**
47
+ * Class responsible for computing the next version according to options and the GIT tags of the repository
48
+ */
49
+ export declare class NewVersion {
50
+ private readonly options;
51
+ /** Is the current branch supported by the plug-in to compute a new version */
52
+ isBaseBranchSupported: boolean;
53
+ /** Is the current branch the default branch declared in the options */
54
+ isDefaultBranch: boolean;
55
+ /** Name of the pre-release part of versions computed from the default branch */
56
+ defaultBranchPrereleaseName?: string;
57
+ constructor(options: NewVersionOptions<BaseLogger>);
58
+ /**
59
+ * Computes the next version according to the options and the GIT tags of the repository
60
+ */
61
+ execute(): Promise<string>;
62
+ /**
63
+ * Performs some GIT operations in order to retrieve a list of tags
64
+ */
65
+ retrieveGitTags(): Promise<string[]>;
66
+ /**
67
+ * Returns the mask with which expected version should start.
68
+ * - If release branch it will be the second part of the branch name: release/[3.2.0-alpha]
69
+ * - If default branch, it will be empty by default unless a mask is explicitly given as an option (options.defaultBranchVersionMask)
70
+ */
71
+ getVersionMask(): string;
72
+ /**
73
+ * Compute the next version following the version mask.
74
+ * If your default branch is behind your release branches, the version minor will be bumped
75
+ * @param tags
76
+ * @param versionMask
77
+ */
78
+ computeNewVersion(tags: string[], versionMask: string): string | null;
79
+ }
80
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,yGAAyG;AACzG,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAAC;AAErJ;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,UAAU;IACrD,uEAAuE;IACvE,MAAM,EAAE,CAAC,CAAC;IAEV,yGAAyG;IACzG,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,mCAAmC;IACnC,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC,4EAA4E;IAC5E,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,oEAAoE;IACpE,mBAAmB,EAAE,MAAM,CAAC;IAE5B,8EAA8E;IAC9E,aAAa,EAAE,OAAO,CAAC;IAEvB,gFAAgF;IAChF,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,UAAU;IAUT,OAAO,CAAC,QAAQ,CAAC,OAAO;IATpC,8EAA8E;IACvE,qBAAqB,EAAE,OAAO,CAAC;IAEtC,uEAAuE;IAChE,eAAe,EAAE,OAAO,CAAC;IAEhC,gFAAgF;IACzE,2BAA2B,CAAC,EAAE,MAAM,CAAC;gBAEf,OAAO,EAAE,iBAAiB,CAAC,UAAU,CAAC;IAMnE;;OAEG;IACU,OAAO;IAWpB;;OAEG;IACU,eAAe;IAa5B;;;;OAIG;IACI,cAAc;IAUrB;;;;;OAKG;IACI,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM;CAgE7D"}
package/index.js ADDED
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NewVersion = void 0;
4
+ const node_child_process_1 = require("node:child_process");
5
+ const node_util_1 = require("node:util");
6
+ const semver = require("semver");
7
+ const index_1 = require("./helpers/index");
8
+ const promisifiedExec = (0, node_util_1.promisify)(node_child_process_1.exec);
9
+ /**
10
+ * Class responsible for computing the next version according to options and the GIT tags of the repository
11
+ */
12
+ class NewVersion {
13
+ constructor(options) {
14
+ this.options = options;
15
+ this.isDefaultBranch = options.defaultBranch === options.baseBranch;
16
+ this.isBaseBranchSupported = this.isDefaultBranch || options.releaseBranchRegExp.test(options.baseBranch);
17
+ this.defaultBranchPrereleaseName = options.defaultBranchPrereleaseName || options.defaultBranch;
18
+ }
19
+ /**
20
+ * Computes the next version according to the options and the GIT tags of the repository
21
+ */
22
+ async execute() {
23
+ const versionMask = this.getVersionMask();
24
+ const gitTags = await this.retrieveGitTags();
25
+ const newVersion = this.computeNewVersion(gitTags, versionMask);
26
+ if (!newVersion) {
27
+ throw new Error('Could not compute a new version candidate.');
28
+ }
29
+ this.options.logger.info(`New version: ${newVersion}`);
30
+ return newVersion;
31
+ }
32
+ /**
33
+ * Performs some GIT operations in order to retrieve a list of tags
34
+ */
35
+ async retrieveGitTags() {
36
+ const fetchCommand = `git fetch --tags ${this.options.authenticatedGitUrl}`;
37
+ this.options.logger.debug(`Executing command: ${fetchCommand}`);
38
+ const fetchOutput = await promisifiedExec(fetchCommand, { cwd: this.options.localGitFolder });
39
+ this.options.logger.debug(JSON.stringify(fetchOutput, null, 2));
40
+ const gitTagCommand = 'git tag --list';
41
+ this.options.logger.info(`Executing command: ${gitTagCommand}`);
42
+ const tagsResult = await promisifiedExec(gitTagCommand, { cwd: this.options.localGitFolder });
43
+ this.options.logger.debug('Git tags result:');
44
+ this.options.logger.debug(JSON.stringify(tagsResult, null, 2));
45
+ return (0, index_1.formatGitTagsOutput)(tagsResult.stdout);
46
+ }
47
+ /**
48
+ * Returns the mask with which expected version should start.
49
+ * - If release branch it will be the second part of the branch name: release/[3.2.0-alpha]
50
+ * - If default branch, it will be empty by default unless a mask is explicitly given as an option (options.defaultBranchVersionMask)
51
+ */
52
+ getVersionMask() {
53
+ const branchReleaseMatches = this.options.releaseBranchRegExp.exec(this.options.baseBranch);
54
+ if (branchReleaseMatches) {
55
+ this.options.logger.info(JSON.stringify(branchReleaseMatches));
56
+ }
57
+ return this.isDefaultBranch
58
+ ? this.options.defaultBranchVersionMask || ''
59
+ : (branchReleaseMatches?.length ? `${branchReleaseMatches[1]}.${branchReleaseMatches[2]}${branchReleaseMatches[3] || ''}` : '');
60
+ }
61
+ /**
62
+ * Compute the next version following the version mask.
63
+ * If your default branch is behind your release branches, the version minor will be bumped
64
+ * @param tags
65
+ * @param versionMask
66
+ */
67
+ computeNewVersion(tags, versionMask) {
68
+ const regexpVersionMask = new RegExp(`^(?:v)?${versionMask}`);
69
+ // Sort tags in descending order and exclude next major in preparation
70
+ let parsedSortedTags = tags
71
+ .map((tag) => semver.parse(tag.replace('V', 'v')))
72
+ .filter((tag) => !!tag && !!regexpVersionMask.test(tag.raw))
73
+ .sort((v1, v2) => semver.compare(v2, v1));
74
+ this.options.logger.debug('Parsed and sorted tags:');
75
+ this.options.logger.debug(JSON.stringify(parsedSortedTags));
76
+ this.options.logger.info(`Version mask: ${versionMask}`);
77
+ if (this.isDefaultBranch) {
78
+ const releaseTags = [...this.defaultBranchPrereleaseName ? [this.defaultBranchPrereleaseName] : [], 'prerelease', 'rc'];
79
+ parsedSortedTags = parsedSortedTags.filter((parsedTag) => parsedTag.prerelease.length === 0 || releaseTags.includes(`${parsedTag.prerelease[0]}`));
80
+ }
81
+ else {
82
+ // If release branch, we filter all versions that do not satisfy the branch name to exclude 3.6.0-alpha.2 when building branch release/3.6 for example
83
+ parsedSortedTags = parsedSortedTags.filter((parsedTag) => semver.satisfies(parsedTag, `~${versionMask}`));
84
+ }
85
+ this.options.logger.debug('Tags after filtering:');
86
+ this.options.logger.debug(JSON.stringify(parsedSortedTags));
87
+ const latest = parsedSortedTags[0];
88
+ let baseVersion;
89
+ // If we're on the default branch
90
+ if (this.isDefaultBranch) {
91
+ if (!latest) {
92
+ // If we couldn't find a label after filtering, create a new one using the version mask given
93
+ baseVersion = `${semver.minVersion(versionMask).version}-${this.defaultBranchPrereleaseName}.0`;
94
+ }
95
+ else if (latest.prerelease.includes(this.defaultBranchPrereleaseName || '')) {
96
+ // If the latest label is a default branch label, we will simply bump it
97
+ this.options.logger.info(`Bumping patch ${this.defaultBranchPrereleaseName || ''}`);
98
+ baseVersion = latest.raw;
99
+ }
100
+ else {
101
+ // If the latest label is a release, it means that we need to create a default branch tag for the next minor version
102
+ const sanitizedLatest = latest.prerelease.length > 0 ? `${latest.major}.${latest.minor}.${latest.patch}` : latest.raw;
103
+ baseVersion = `${semver.inc(sanitizedLatest, 'minor')}-${this.defaultBranchPrereleaseName}.0`;
104
+ }
105
+ // If we're on a release branch
106
+ }
107
+ else {
108
+ // If we found a tag, we use it as a base. Otherwise, we create a new version using the information from the branch, eg. release/3.6.0-alpha
109
+ // will create 3.6.0-alpha.0
110
+ baseVersion = latest ? latest.raw : `${versionMask}.0`;
111
+ }
112
+ this.options.logger.info(`Latest version from tags: ${latest?.version}`);
113
+ this.options.logger.info(`Base version computed: ${baseVersion}`);
114
+ if (this.options.isPullRequest) {
115
+ // If it's a pull-request build, we do not increment but instead add the 'pr' flag and build number to the version
116
+ return `${baseVersion}${this.options.prPreReleaseTag ? '-' + this.options.prPreReleaseTag : ''}.${this.options.buildId}`;
117
+ }
118
+ if (!latest || (this.isDefaultBranch && latest.prerelease.every((releaseTag) => releaseTag !== this.defaultBranchPrereleaseName))) {
119
+ // If this is a new release or a new minor of a default branch, we don't bump since they are initialised as .0
120
+ return baseVersion;
121
+ }
122
+ // We bump either the patch or prerelease version depending on what we have.
123
+ return semver.inc(latest, latest.prerelease.length > 0 ? 'prerelease' : 'patch');
124
+ }
125
+ }
126
+ exports.NewVersion = NewVersion;
127
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2DAE4B;AAC5B,yCAEmB;AACnB,iCAAiC;AACjC,2CAEyB;AAEzB,MAAM,eAAe,GAAG,IAAA,qBAAS,EAAC,yBAAI,CAAC,CAAC;AAsDxC;;GAEG;AACH,MAAa,UAAU;IAUrB,YAA6B,OAAsC;QAAtC,YAAO,GAAP,OAAO,CAA+B;QACjE,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,aAAa,KAAK,OAAO,CAAC,UAAU,CAAC;QACpE,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,eAAe,IAAI,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC1G,IAAI,CAAC,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,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BAA6B,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,WAAW,EAAE,CAAC,CAAC;QAElE,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC/B,kHAAkH;YAClH,OAAO,GAAG,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3H,CAAC;QACD,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,KAAK,IAAI,CAAC,2BAA2B,CAAC,CAAC,EAAE,CAAC;YAClI,8GAA8G;YAC9G,OAAO,WAAW,CAAC;QACrB,CAAC;QAED,4EAA4E;QAC5E,OAAO,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACnF,CAAC;CACF;AAnID,gCAmIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/new-version",
3
- "version": "12.1.0-prerelease.21",
3
+ "version": "12.1.0-prerelease.22",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@angular-devkit/schematics": "^19.0.0",
29
- "@o3r/schematics": "^12.1.0-prerelease.21"
29
+ "@o3r/schematics": "^12.1.0-prerelease.22"
30
30
  },
31
31
  "peerDependenciesMeta": {
32
32
  "@angular-devkit/schematics": {
@@ -37,19 +37,19 @@
37
37
  }
38
38
  },
39
39
  "devDependencies": {
40
- "@angular-devkit/core": "~19.0.0",
41
- "@angular-devkit/schematics": "~19.0.0",
40
+ "@angular-devkit/core": "~19.1.0",
41
+ "@angular-devkit/schematics": "~19.1.0",
42
42
  "@babel/core": "~7.26.0",
43
43
  "@babel/preset-typescript": "~7.26.0",
44
44
  "@compodoc/compodoc": "^1.1.19",
45
45
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
46
46
  "@nx/eslint-plugin": "~20.2.0",
47
47
  "@nx/jest": "~20.2.0",
48
- "@o3r/build-helpers": "^12.1.0-prerelease.21",
49
- "@o3r/eslint-plugin": "^12.1.0-prerelease.21",
50
- "@o3r/schematics": "^12.1.0-prerelease.21",
51
- "@o3r/test-helpers": "^12.1.0-prerelease.21",
52
- "@schematics/angular": "~19.0.0",
48
+ "@o3r/build-helpers": "^12.1.0-prerelease.22",
49
+ "@o3r/eslint-plugin": "^12.1.0-prerelease.22",
50
+ "@o3r/schematics": "^12.1.0-prerelease.22",
51
+ "@o3r/test-helpers": "^12.1.0-prerelease.22",
52
+ "@schematics/angular": "~19.1.0",
53
53
  "@stylistic/eslint-plugin": "~3.0.0",
54
54
  "@types/jest": "~29.5.2",
55
55
  "@types/node": "^20.0.0",
@@ -77,7 +77,7 @@
77
77
  "ts-jest": "~29.2.5",
78
78
  "ts-node": "~10.9.2",
79
79
  "type-fest": "^4.30.1",
80
- "typescript": "~5.6.2",
80
+ "typescript": "~5.7.3",
81
81
  "typescript-eslint": "~8.23.0"
82
82
  },
83
83
  "engines": {
@@ -0,0 +1,3 @@
1
+ export * from './helpers/index';
2
+ export * from './index';
3
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
package/public_api.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./helpers/index"), exports);
5
+ tslib_1.__exportStar(require("./index"), exports);
6
+ //# sourceMappingURL=public_api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.js","sourceRoot":"","sources":["../src/public_api.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,kDAAwB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAQlC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,kBAAkB;IAClB,OAAO,KAAK,EAAE,IAAI,EAAE,EAAE;QACpB,MAAM,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;QAEvF,OAAO,iBAAiB,CAAC;YACvB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,YAAY,EAAE,uBAAuB,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;SACnH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAEM,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAQ,EAAE,CAAC,KAAK,IAAI,EAAE;IACxE,MAAM,EAAE,qCAAqC,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;IAClF,OAAO,qCAAqC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AACjE,CAAC,CAAC;AAHW,QAAA,KAAK,SAGhB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}