From ba380fd15dfc915595ab80334d48cbf0540cedb6 Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Fri, 28 Nov 2025 10:02:30 +0100 Subject: [PATCH] build(typescript): add tsgo and separate typecheck:tsgo npm script --- package.json | 2 ++ yarn.lock | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/package.json b/package.json index 2e6fcba94f2..ff1c49bd783 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "themes-generate": "yarn themes-schema && esbuild --target=es6 ./scripts/cli/generateSassVariableFiles.ts --bundle --platform=node --tsconfig=./scripts/cli/tsconfig.json | node", "themes:usage": "eslint . --ignore-pattern '*.test.ts*' --ignore-pattern '*.spec.ts*' --cache --plugin '@grafana' --rule '{ @grafana/theme-token-usage: \"error\" }'", "typecheck": "tsc --noEmit && yarn run packages:typecheck", + "typecheck:tsgo": "tsgo --noEmit", "plugins:build-bundled": "echo 'bundled plugins are no longer supported'", "watch": "yarn start -d watch,start core:start --watchTheme", "i18n:stats": "node ./scripts/cli/reportI18nStats.mjs", @@ -166,6 +167,7 @@ "@types/yargs": "17.0.33", "@typescript-eslint/eslint-plugin": "8.38.0", "@typescript-eslint/parser": "8.38.0", + "@typescript/native-preview": "^7.0.0-dev.20251128.1", "autoprefixer": "10.4.21", "babel-loader": "10.0.0", "blob-polyfill": "9.0.20240710", diff --git a/yarn.lock b/yarn.lock index abe69dda8b7..bedbfed4e1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11244,6 +11244,87 @@ __metadata: languageName: node linkType: hard +"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20251128.1": + version: 7.0.0-dev.20251128.1 + resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20251128.1" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20251128.1": + version: 7.0.0-dev.20251128.1 + resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20251128.1" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20251128.1": + version: 7.0.0-dev.20251128.1 + resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20251128.1" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + +"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20251128.1": + version: 7.0.0-dev.20251128.1 + resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20251128.1" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20251128.1": + version: 7.0.0-dev.20251128.1 + resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20251128.1" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + +"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20251128.1": + version: 7.0.0-dev.20251128.1 + resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20251128.1" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20251128.1": + version: 7.0.0-dev.20251128.1 + resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20251128.1" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@typescript/native-preview@npm:^7.0.0-dev.20251128.1": + version: 7.0.0-dev.20251128.1 + resolution: "@typescript/native-preview@npm:7.0.0-dev.20251128.1" + dependencies: + "@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20251128.1" + "@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20251128.1" + "@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20251128.1" + "@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20251128.1" + "@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20251128.1" + "@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20251128.1" + "@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20251128.1" + dependenciesMeta: + "@typescript/native-preview-darwin-arm64": + optional: true + "@typescript/native-preview-darwin-x64": + optional: true + "@typescript/native-preview-linux-arm": + optional: true + "@typescript/native-preview-linux-arm64": + optional: true + "@typescript/native-preview-linux-x64": + optional: true + "@typescript/native-preview-win32-arm64": + optional: true + "@typescript/native-preview-win32-x64": + optional: true + bin: + tsgo: bin/tsgo.js + checksum: 10/797dccc0ffdc81525f0497daeb9e475744936be89ef12386f6b73fca5b2b3c11ef34ce052b803194e65b9a85d61c3494094c0063ce4c00579307769aa1e3cfa1 + languageName: node + linkType: hard + "@visx/bounds@npm:3.12.0": version: 3.12.0 resolution: "@visx/bounds@npm:3.12.0" @@ -19334,6 +19415,7 @@ __metadata: "@types/yargs": "npm:17.0.33" "@typescript-eslint/eslint-plugin": "npm:8.38.0" "@typescript-eslint/parser": "npm:8.38.0" + "@typescript/native-preview": "npm:^7.0.0-dev.20251128.1" "@visx/event": "npm:3.12.0" "@visx/gradient": "npm:3.12.0" "@visx/group": "npm:3.12.0"