1 | /// <amd-module name="@angular/compiler-cli/ngcc/src/packages/build_marker" />
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | import { AbsoluteFsPath } from '../../../src/ngtsc/file_system';
|
---|
10 | import { PackageJsonUpdater } from '../writing/package_json_updater';
|
---|
11 | import { EntryPointPackageJson, PackageJsonFormatProperties } from './entry_point';
|
---|
12 | export declare const NGCC_VERSION = "12.2.13";
|
---|
13 | /**
|
---|
14 | * Returns true if there is a format in this entry-point that was compiled with an outdated version
|
---|
15 | * of ngcc.
|
---|
16 | *
|
---|
17 | * @param packageJson The parsed contents of the package.json for the entry-point
|
---|
18 | */
|
---|
19 | export declare function needsCleaning(packageJson: EntryPointPackageJson): boolean;
|
---|
20 | /**
|
---|
21 | * Clean any build marker artifacts from the given `packageJson` object.
|
---|
22 | * @param packageJson The parsed contents of the package.json to modify
|
---|
23 | * @returns true if the package was modified during cleaning
|
---|
24 | */
|
---|
25 | export declare function cleanPackageJson(packageJson: EntryPointPackageJson): boolean;
|
---|
26 | /**
|
---|
27 | * Check whether ngcc has already processed a given entry-point format.
|
---|
28 | *
|
---|
29 | * @param packageJson The parsed contents of the package.json file for the entry-point.
|
---|
30 | * @param format The entry-point format property in the package.json to check.
|
---|
31 | * @returns true if the `format` in the entry-point has already been processed by this ngcc version,
|
---|
32 | * false otherwise.
|
---|
33 | */
|
---|
34 | export declare function hasBeenProcessed(packageJson: EntryPointPackageJson, format: PackageJsonFormatProperties): boolean;
|
---|
35 | /**
|
---|
36 | * Write a build marker for the given entry-point and format properties, to indicate that they have
|
---|
37 | * been compiled by this version of ngcc.
|
---|
38 | *
|
---|
39 | * @param pkgJsonUpdater The writer to use for updating `package.json`.
|
---|
40 | * @param packageJson The parsed contents of the `package.json` file for the entry-point.
|
---|
41 | * @param packageJsonPath The absolute path to the `package.json` file.
|
---|
42 | * @param properties The properties in the `package.json` of the formats for which we are writing
|
---|
43 | * the marker.
|
---|
44 | */
|
---|
45 | export declare function markAsProcessed(pkgJsonUpdater: PackageJsonUpdater, packageJson: EntryPointPackageJson, packageJsonPath: AbsoluteFsPath, formatProperties: PackageJsonFormatProperties[]): void;
|
---|