Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 899c005

Browse files
josephperrottalan-agius4
authored andcommitted
build: remove ts-node (angular#3048)
Remove ts-node and its usages from the repo PR Close angular#3048
1 parent 632c28a commit 899c005

File tree

8 files changed

+6
-10462
lines changed

8 files changed

+6
-10462
lines changed

bazel/integration/tests/angular-cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"karma-coverage": "~2.2.0",
4141
"karma-jasmine": "~4.0.0",
4242
"karma-jasmine-html-reporter": "~1.7.0",
43-
"ts-node": "^10.4.0",
4443
"typescript": "~4.5.0",
4544
"wdio-chromedriver-service": "^7.2.2"
4645
}

bazel/integration/tests/angular-cli/pnpm-lock.yaml

Lines changed: 0 additions & 10342 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const path = require('path');
22
const stylelint = require('stylelint');
33

4-
// Custom rule that registers all of the custom rules, written in TypeScript, with ts-node.
5-
require('ts-node').register();
4+
// Custom rule that registers all of the custom rules, written in TypeScript, with tsx.
5+
require('tsx/cjs/api').register();
66

77
// Dummy rule so Stylelint doesn't complain that there aren't rules in the file.
88
module.exports = stylelint.createPlugin('@angular/stylelint-ts-rule-loader', () => {});

lint-rules/tslint/tsNodeLoaderRule.js renamed to lint-rules/tslint/tsxLoaderRule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const path = require('path');
22
const Lint = require('tslint');
33

4-
// Custom rule that registers all of the custom rules, written in TypeScript, with ts-node.
4+
// Custom rule that registers all of the custom rules, written in TypeScript, with tsx.
55
// This is necessary, because `tslint` and IDEs won't execute any rules that aren't in a .js file.
6-
require('ts-node').register();
6+
require('tsx/cjs/api').register();
77

88
// Add a noop rule so tslint doesn't complain.
99
exports.Rule = class Rule extends Lint.Rules.AbstractRule {

ng-dev/utils/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("//tools:defaults.bzl", "ts_project")
22

33
# g3-sync-config needs to be a separate file / target so that google-internal-tests
4-
# won't need ts-node to parse this file
4+
# won't need tsx to parse this file
55
ts_project(
66
name = "g3_sync_config",
77
srcs = ["g3-sync-config.ts"],

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"jasmine-reporters": "2.5.2",
3131
"jasmine": "5.10.0",
3232
"prettier": "3.6.2",
33-
"ts-node": "10.9.2",
3433
"tslib": "^2.5.2",
3534
"tslint": "6.1.3",
3635
"tsx": "^4.15.7",

pnpm-lock.yaml

Lines changed: 0 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/6049f681741399cf73aea088680f58375c12592a/src/schemas/json/tslint.json",
33
"rulesDirectory": ["./lint-rules/tslint"],
44
"rules": {
5-
"ts-node-loader": true,
5+
"tsx-loader": true,
66
"validate-import-for-esm-cjs-interop": [
77
true,
88
{

0 commit comments

Comments
 (0)