Skip to content

Commit

Permalink
Update typescript version and invoke the correct tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost91- committed Sep 18, 2021
1 parent b91c9d1 commit ed7a470
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
${{ runner.OS }}-
- run: npm ci --cache .npm --prefer-offline
- name: compile typescript
run: tsc
run: npm run typecheck
lint:
name: lint code base
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: npm ci --cache .npm --prefer-offline
- run: tsc
- run: npm run typecheck
- run: npm run lint:ci
- run: npm test
- name: Archive package.json
Expand Down
10 changes: 6 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"version": "0.8.9-2",
"description": "TypeScript type definitions for Foundry VTT",
"scripts": {
"lint": "tsc && eslint --ext .d.ts,.test-d.ts .",
"lint": "./node_modules/typescript/bin/tsc && eslint --ext .d.ts,.test-d.ts .",
"lint:fix": "eslint --fix --ext .d.ts,.test-d.ts .",
"lint:ci": "eslint --ext .d.ts,.test-d.ts .",
"eslint:report": "eslint --output-file eslint_report.json --format json --ext .d.ts,.test-d.ts .",
"test": "tsd",
"typecheck": "./node_modules/typescript/bin/tsc",
"prepare": "husky install"
},
"repository": {
Expand All @@ -33,8 +34,7 @@
"pixi-particles": "4.3.1",
"pixi.js": "5.3.4",
"socket.io-client": "4.1.2",
"tinymce": "5.8.1",
"typescript": "^4.3.5"
"tinymce": "5.8.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.28.3",
Expand All @@ -46,7 +46,8 @@
"husky": "^7.0.1",
"lint-staged": "^11.0.1",
"prettier": "^2.3.2",
"tsd": "^0.17.0"
"tsd": "^0.17.0",
"typescript": "^4.4.3"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit ed7a470

Please sign in to comment.