@angular/bazel
Advanced tools
Comparing version 15.2.0-next.1 to 15.2.0-next.2
{ | ||
"name": "@angular/bazel", | ||
"version": "15.2.0-next.1", | ||
"version": "15.2.0-next.2", | ||
"description": "Angular - bazel build rules", | ||
@@ -31,3 +31,3 @@ "author": "angular", | ||
"peerDependencies": { | ||
"@angular/compiler-cli": "15.2.0-next.1", | ||
"@angular/compiler-cli": "15.2.0-next.2", | ||
"@bazel/concatjs": "^5.3.0", | ||
@@ -34,0 +34,0 @@ "@bazel/worker": "^5.3.0", |
@@ -28,3 +28,2 @@ /** | ||
const bannerFile = TMPL_banner_file; | ||
const stampData = TMPL_stamp_data; | ||
const moduleMappings = TMPL_module_mappings; | ||
@@ -39,3 +38,2 @@ const downlevelToES2015 = TMPL_downlevel_to_es2015; | ||
bannerFile: ${bannerFile} | ||
stampData: ${stampData} | ||
moduleMappings: ${JSON.stringify(moduleMappings)} | ||
@@ -138,15 +136,5 @@ nodeModulesRoot: ${nodeModulesRoot} | ||
let banner = ''; | ||
let bannerContent = ''; | ||
if (bannerFile) { | ||
banner = fs.readFileSync(bannerFile, {encoding: 'utf-8'}); | ||
if (stampData) { | ||
const versionTag = fs.readFileSync(stampData, {encoding: 'utf-8'}) | ||
.split('\n') | ||
.find((s) => s.startsWith('STABLE_PROJECT_VERSION')); | ||
// Don't assume STABLE_PROJECT_VERSION exists | ||
if (versionTag) { | ||
const version = versionTag.split(' ')[1].trim(); | ||
banner = banner.replace(/15.2.0-next.1/, version); | ||
} | ||
} | ||
bannerContent = fs.readFileSync(bannerFile, {encoding: 'utf-8'}); | ||
} | ||
@@ -223,3 +211,3 @@ | ||
output: { | ||
banner, | ||
banner: bannerContent, | ||
}, | ||
@@ -226,0 +214,0 @@ }; |
@@ -19,3 +19,2 @@ /** | ||
}): Promise<boolean>; | ||
export declare function relativeToRootDirs(filePath: string, rootDirs: string[]): string; | ||
export declare function compile({ allDepsCompiledWithBazel, useManifestPathsAsModuleName, compilerOpts, tsHost, bazelOpts, files, inputs, expectedOuts, gatherDiagnostics, bazelHost, }: { | ||
@@ -47,10 +46,6 @@ allDepsCompiledWithBazel?: boolean; | ||
/** | ||
* Adds support for the optional `fileNameToModuleName` operation to a given `ng.CompilerHost`. | ||
* | ||
* This is used within `ngc-wrapped` and the Bazel compilation flow, but is exported here to allow | ||
* for other consumers of the compiler to access this same logic. For example, the xi18n operation | ||
* in g3 configures its own `ng.CompilerHost` which also requires `fileNameToModuleName` to work | ||
* correctly. | ||
* @deprecated | ||
* Kept here just for compatibility with 1P tools. To be removed soon after 1P update. | ||
*/ | ||
export declare function patchNgHostWithFileNameToModuleName(ngHost: ng.CompilerHost, compilerOpts: ng.CompilerOptions, bazelOpts: BazelOptions, rootDirs: string[], useManifestPathsAsModuleName: boolean): void; | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
246202
31
1265
7