Skip to content

Commit 834095a

Browse files
committed
build(schematics): version placeholders not replaced
* Since we copy the schematics after the version placeholders have been inlined, the version range that uses the NG version placeholder is not replaced properly. This is not problematic because by default we determine the NG version based on the installed `@angular/core` version. ``` addPackageToPackageJson(host, '@angular/animations', ngCoreVersionTag || requiredAngularVersionRange); ``` ilease enter the commit message for your changes. Lines starting
1 parent 037a746 commit 834095a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/package-tools/build-release.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ export function composeRelease(buildPackage: BuildPackage) {
4848
copyFiles(packagesDir, 'README.md', releasePath);
4949
copyFiles(sourceDir, 'package.json', releasePath);
5050

51+
if (buildPackage.hasSchematics) {
52+
copyFiles(join(packageOut, 'schematics'), '**/*', join(releasePath, 'schematics'));
53+
}
54+
5155
replaceVersionPlaceholders(releasePath);
5256
insertPackageJsonVersionStamp(join(releasePath, 'package.json'));
5357

5458
createTypingsReexportFile(releasePath, './typings/index', name);
5559
createMetadataReexportFile(releasePath, './typings/index', name, importAsName);
5660

57-
if (buildPackage.hasSchematics) {
58-
copyFiles(join(packageOut, 'schematics'), '**/*', join(releasePath, 'schematics'));
59-
}
60-
6161
if (buildPackage.secondaryEntryPoints.length) {
6262
createFilesForSecondaryEntryPoint(buildPackage, releasePath);
6363
}

0 commit comments

Comments
 (0)