diff --git a/package-lock.json b/package-lock.json index 89d9a58b6..43cf1f94f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "telegram-t", "version": "12.0.5", + "hasInstallScript": true, "license": "GPL-3.0-or-later", "dependencies": { "@cryptography/aes": "^0.1.1", diff --git a/package.json b/package.json index d50ca9c72..c36e29003 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "tauri:dev": "tauri dev", "tauri:build": "tauri build", "telegraph:update_changelog": "node ./dev/telegraphChangelog.js", - "check": "tsc && stylelint \"**/*.{css,scss}\" && eslint", - "check:fix": "stylelint \"**/*.{css,scss}\" --fix && eslint --fix", + "check": "tsc && stylelint \"**/*.{css,scss}\" --cache --cache-location .cache/.stylelintcache && eslint --cache --cache-location .cache/.eslintcache", + "check:fix": "stylelint \"**/*.{css,scss}\" --fix --cache --cache-location .cache/.stylelintcache && eslint --fix --cache --cache-location .cache/.eslintcache", "tl:rehash": "node ./dev/tlHash.js", "gramjs:tl": "tsx ./src/lib/gramjs/tl/generateModules.ts", "lang:ts": "tsx ./dev/generateLangTypes.js", @@ -29,6 +29,7 @@ "test:playwright": "playwright test", "test:record": "playwright codegen localhost:1235", "statoscope:validate-diff": "statoscope validate --input input.json --reference reference.json", + "postinstall": "node -e \"require('fs').rmSync('.cache', { recursive: true, force: true })\"", "postversion": "echo $(node -p \"require('./package.json').version\") > public/version.txt && git commit --amend --no-verify --no-edit public/version.txt" }, "engines": { diff --git a/tsconfig.json b/tsconfig.json index d616aeac2..53c431209 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,7 +26,9 @@ "paths": { "@teact": ["./src/lib/teact/teact.ts"], "@teact/*": ["./src/lib/teact/*"] - } + }, + "incremental": true, + "tsBuildInfoFile": ".cache/.tsconfig.tsbuildinfo" }, "include": [ "src",