Skip to content

Commit 6d19c16

Browse files
josephperrottmhevery
authored andcommitted
build: remove check-env script (angular#39980)
Remove the check-env script as it is not longer relied on and only surfaces false positives/known mismatches at this point. Since our tooling now acts using vendored code where needed, this is no longer as necessary as it previously was. PR Close angular#39980
1 parent d9356f2 commit 6d19c16

File tree

3 files changed

+0
-125
lines changed

3 files changed

+0
-125
lines changed

gulpfile.js

-10
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88

99
'use strict';
1010

11-
// THIS CHECK SHOULD BE THE FIRST THING IN THIS FILE
12-
// This is to ensure that we catch env issues before we error while requiring other dependencies.
13-
const engines = require('./package.json').engines;
14-
require('./tools/check-environment')({
15-
requiredNodeVersion: engines.node,
16-
requiredNpmVersion: engines.npm,
17-
requiredYarnVersion: engines.yarn
18-
});
19-
2011
const gulp = require('gulp');
2112

2213
// See `tools/gulp-tasks/README.md` for information about task loading.
@@ -30,7 +21,6 @@ function loadTask(fileName, taskName) {
3021
gulp.task('source-map-test', loadTask('source-map-test'));
3122
gulp.task('changelog', loadTask('changelog'));
3223
gulp.task('changelog:zonejs', loadTask('changelog-zonejs'));
33-
gulp.task('check-env', () => {/* this is a noop because the env test ran already above */});
3424
gulp.task('cldr:extract', loadTask('cldr', 'extract'));
3525
gulp.task('cldr:download', loadTask('cldr', 'download'));
3626
gulp.task('cldr:gen-closure-locale', loadTask('cldr', 'closure'));

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"/ ": "",
2424
"preinstall": "node tools/yarn/check-yarn.js",
2525
"postinstall": "husky install && node scripts/webdriver-manager-update.js && node --preserve-symlinks --preserve-symlinks-main ./tools/postinstall-patches.js",
26-
"check-env": "gulp check-env",
2726
"test-ivy-aot": "bazelisk test --config=ivy --build_tag_filters=-no-ivy-aot,-fixme-ivy-aot --test_tag_filters=-no-ivy-aot,-fixme-ivy-aot",
2827
"test-non-ivy": "bazelisk test --build_tag_filters=-ivy-only --test_tag_filters=-ivy-only",
2928
"test-fixme-ivy-aot": "bazelisk test --config=ivy --build_tag_filters=-no-ivy-aot --test_tag_filters=-no-ivy-aot",

tools/check-environment.js

-114
This file was deleted.

0 commit comments

Comments
 (0)