build: fix wakatime json import bug (#2050)

* build: fix vercel node version

* build: remove engine property

* fix: add json import workarround

This commit adds a workaround for importing the `languageColors` JSON
file. This needed to be done since Vercel uses v16.4, which does not
support JSON file importing without the `experimental-json-modules`
flag. See https://simonplend.com/import-json-in-es-modules/
for more information. The workaround can be found [here](https://stackoverflow.com/questions/66726365/how-should-i-import-json-in-node).
This commit is contained in:
Rick Staa
2022-09-24 15:37:19 +02:00
committed by GitHub
parent dbf6560781
commit 9a909ff0a4
3 changed files with 12 additions and 7 deletions
-3
View File
@@ -16,9 +16,6 @@
},
"author": "Anurag Hazra",
"license": "MIT",
"engines": {
"node": ">=13"
},
"devDependencies": {
"@actions/core": "^1.2.4",
"@actions/github": "^4.0.0",