Skip to content

Commit 71dca11

Browse files
gitKrystanmansona
authored andcommitted
Type-check transform files
1 parent e5c1fed commit 71dca11

File tree

4 files changed

+261
-111
lines changed

4 files changed

+261
-111
lines changed

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@
1919
"ember-no-implicit-this-codemod": "./bin/cli.js"
2020
},
2121
"scripts": {
22+
"build": "tsc",
23+
"clean": "tsc --build --clean",
2224
"codemod": "jscodeshift -t ./transforms/no-implicit-this/index.js --extensions js,ts,hbs --run-in-band",
2325
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
2426
"debug:codemod": "node --inspect-brk node_modules/jscodeshift/bin/jscodeshift.js -t ./transforms/no-implicit-this/index.js --run-in-band --extensions js,ts,hbs ",
2527
"debug:codemod:not-working": "node --inspect-brk ./bin/cli",
2628
"debug:telemetry": "node --inspect-brk ./bin/telemetry.js",
2729
"lint:js": "eslint .",
2830
"test": "jest",
31+
"lint:ts": "tsc --noEmit",
32+
"postpublish": "yarn clean",
33+
"prepublishOnly": "yarn build",
2934
"test:integration": "ts-node ./test/run-test.ts",
3035
"update-docs": "codemod-cli update-docs"
3136
},
@@ -42,11 +47,13 @@
4247
"ember-template-recast": "^3.3.2"
4348
},
4449
"devDependencies": {
50+
"@tsconfig/node16": "^1.0.4",
51+
"@tsconfig/strictest": "^2.0.1",
4552
"@types/chalk": "^2.2.0",
4653
"@types/common-tags": "^1.8.0",
4754
"@types/node": "^20.11.5",
48-
"@typescript-eslint/eslint-plugin": "^2.34.0",
49-
"@typescript-eslint/parser": "^2.34.0",
55+
"@typescript-eslint/eslint-plugin": "^5.59.7",
56+
"@typescript-eslint/parser": "^5.59.7",
5057
"babel-plugin-htmlbars-inline-precompile": "^3.0.1",
5158
"chalk": "^4.1.1",
5259
"common-tags": "^1.8.0",
@@ -58,8 +65,8 @@
5865
"jest": "^26.6.3",
5966
"prettier": "^1.19.1",
6067
"release-plan": "^0.6.0",
61-
"ts-node": "^8.10.2",
62-
"typescript": "~3.9.7"
68+
"ts-node": "^10.9.1",
69+
"typescript": "~5.0.4"
6370
},
6471
"engines": {
6572
"node": "16.* || 18.* || >= 20"

0 commit comments

Comments
 (0)