Skip to content

Commit

Permalink
fix: report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Dec 6, 2023
1 parent c0bc2f2 commit 0fb4ff7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/metrics-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master # npm install at the root
- run: npm install && npm run update-dashboards # npm install & run in reports directory
- run: npm install && npm run build && npm run update-dashboards # npm install & run in reports directory
env:
GOOGLE_CREDENTIALS: '${{ secrets.GOOGLE_CREDENTIALS }}'
COUNTLY_USERNAME: '${{ secrets.COUNTLY_USERNAME }}'
Expand Down
5 changes: 3 additions & 2 deletions reports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"ts-node": "^10.9.1"
},
"scripts": {
"get-csv": "ts-node-esm scripts/get-csv.ts",
"update-dashboards": "ts-node-esm index.ts"
"build": "tsc",
"get-csv": "node dist/scripts/get-csv.js",
"update-dashboards": "node dist/index.js"
},
"dependencies": {
"@googleapis/sheets": "^4.0.1",
Expand Down
4 changes: 3 additions & 1 deletion reports/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"allowSyntheticDefaultImports": true,
"moduleResolution": "NodeNext",
"module": "NodeNext",
"esModuleInterop": true
"esModuleInterop": true,
"emitDeclarationOnly": false,
"outDir": "dist"
},
"include": [
"**/*.ts",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "aegir/src/config/tsconfig.aegir.json",
"extends": "./node_modules/aegir/src/config/tsconfig.aegir.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
Expand All @@ -8,7 +8,8 @@
"outDir": "dist",
"target": "ES6",
"typeRoots": ["types", "src/typings"],
"types": ["node", "mocha"]
"module": "NodeNext",
"ignoreDeprecations": "5.0"

Check failure on line 12 in tsconfig.json

View workflow job for this annotation

GitHub Actions / check

Unknown compiler option 'ignoreDeprecations'.
},
"rootDir": "src",
"include": ["src", "types"],
Expand Down

0 comments on commit 0fb4ff7

Please sign in to comment.