Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit 2dc7874

Browse files
authored
Downgrade ng-packagr (#1023)
* Downgrade ng-packagr
1 parent baf4d93 commit 2dc7874

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

gulpfile.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,11 @@ gulp.task('build.copy-sources', ['clean.dist'], function() {
130130

131131
// Note: workaround for https://github.com/angular/angular-cli/issues/4874
132132
gulp.task('build.remove-unusable-variable', function() {
133-
var config = buildConfig.components;
133+
var config = buildConfig.npm;
134134

135-
return gulp.src(path.join(config.outputPath, '**/*.js'))
136-
.pipe(replace(/var.+devextreme\/bundles\/dx\.all.+/g, ''))
137-
.pipe(replace(/import DevExpress from \'devextreme\/bundles\/dx\.all\';/g, ''))
138-
.pipe(gulp.dest(config.outputPath));
135+
return gulp.src(path.join(config.distPath, '**/*.js'))
136+
.pipe(replace(/DevExpress\.[\w\.]+/g, 'Object'))
137+
.pipe(gulp.dest(config.distPath));
139138
});
140139

141140
gulp.task('build.components', ['generate.facades'], function(done) {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"author": "Developer Express Inc.",
1919
"license": "MIT",
2020
"peerDependencies": {
21-
"devextreme": "~19.2.4",
21+
"devextreme": "~19.2.5",
2222
"@angular/core": ">6.0.0",
2323
"@angular/common": ">6.0.0",
2424
"@angular/forms": ">6.0.0"
@@ -45,7 +45,7 @@
4545
"del": "^2.2.0",
4646
"devexpress-diagram": "^0.1.43",
4747
"devexpress-gantt": "0.0.8",
48-
"devextreme": "~19.2.4",
48+
"devextreme": "~19.2.5-build-19347-0331",
4949
"dot": "^1.0.3",
5050
"gulp": "^3.9.1",
5151
"gulp-header": "^1.8.8",
@@ -69,7 +69,7 @@
6969
"karma-webpack": "^2.0.9",
7070
"lite-server": "^2.2.0",
7171
"mkdirp": "^0.5.1",
72-
"ng-packagr": "^5.6.1",
72+
"ng-packagr": "5.5.1",
7373
"plugin-typescript": "^8.0.0",
7474
"puppeteer": "^1.11.0",
7575
"run-sequence": "^1.2.2",

0 commit comments

Comments
 (0)