Skip to content

Commit

Permalink
fix(angular): fix loading postcss configuration in ng-packagr executo…
Browse files Browse the repository at this point in the history
…rs (#22900)
  • Loading branch information
leosvelperez authored Apr 19, 2024
1 parent e617e54 commit 397276d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { colors } from 'ng-packagr/lib/utils/color';
import { getTailwindConfigPath } from './tailwindcss';
import { workspaceRoot } from '@nx/devkit';
import type { PostcssConfiguration } from 'ng-packagr/lib/styles/postcss-configuration';
import { gte } from 'semver';
import { gt } from 'semver';
import { getInstalledPackageVersionInfo } from '../angular-version-utils';

const maxWorkersVariable = process.env['NG_BUILD_MAX_WORKERS'];
Expand Down Expand Up @@ -94,7 +94,7 @@ export class StylesheetProcessor {
const { version: ngPackagrVersion } =
getInstalledPackageVersionInfo('ng-packagr');
let postcssConfiguration: PostcssConfiguration | undefined;
if (gte(ngPackagrVersion, '17.3.0')) {
if (gt(ngPackagrVersion, '17.2.0')) {
const {
loadPostcssConfiguration,
} = require('ng-packagr/lib/styles/postcss-configuration');
Expand Down

0 comments on commit 397276d

Please sign in to comment.