diff --git a/dev-packages/rollup-utils/npmHelpers.mjs b/dev-packages/rollup-utils/npmHelpers.mjs index 02a521d86926..1a5cdb384090 100644 --- a/dev-packages/rollup-utils/npmHelpers.mjs +++ b/dev-packages/rollup-utils/npmHelpers.mjs @@ -10,6 +10,7 @@ import * as path from 'path'; import { fileURLToPath } from 'url'; import deepMerge from 'deepmerge'; import { defineConfig } from 'rolldown'; +import { dts as makeDtsPlugin } from 'rolldown-plugin-dts'; import { makeDebugBuildStatementReplacePlugin, makeProductionReplacePlugin, @@ -131,6 +132,12 @@ export function makeNPMConfigVariants(baseConfig, options = {}) { } if (emitEsm) { + const hasTypes = fs.existsSync(path.resolve(process.cwd(), './tsconfig.types.json')); + const dts = makeDtsPlugin({ + tsconfig: path.resolve(process.cwd(), hasTypes ? './tsconfig.types.json' : './tsconfig.json'), + tsgo: true, + }); + if (splitDevProd) { variantSpecificConfigs.push({ output: { @@ -139,7 +146,9 @@ export function makeNPMConfigVariants(baseConfig, options = {}) { plugins: [makePackageNodeEsm()], }, }); + variantSpecificConfigs.push({ + plugins: [dts], output: { format: 'esm', dir: path.join(baseConfig.output.dir, 'esm/prod'), @@ -148,6 +157,7 @@ export function makeNPMConfigVariants(baseConfig, options = {}) { }); } else { variantSpecificConfigs.push({ + plugins: [dts], output: { format: 'esm', dir: path.join(baseConfig.output.dir, 'esm'), diff --git a/nx.json b/nx.json index d4a90a3a6777..0ec797427f01 100644 --- a/nx.json +++ b/nx.json @@ -41,13 +41,8 @@ }, "build:types": { "inputs": ["production", "^production"], - "dependsOn": ["^build:types"], - "outputs": [ - "{projectRoot}/build/types", - "{projectRoot}/build/types-ts3.8", - "{projectRoot}/build/npm/types", - "{projectRoot}/build/npm/types-ts3.8" - ] + "dependsOn": ["build:transpile", "^build:transpile", "^build:types"], + "outputs": ["{projectRoot}/build/types", "{projectRoot}/build/npm/types"] }, "lint": { "inputs": ["default"], diff --git a/package.json b/package.json index 85910c1b96bf..793e291f7c71 100644 --- a/package.json +++ b/package.json @@ -108,9 +108,9 @@ "@size-limit/webpack": "~11.1.6", "@types/jsdom": "^21.1.6", "@types/node": "^18.19.1", + "@typescript/native-preview": "^7.0.0-dev.20251210.1", "@vitest/coverage-v8": "^3.2.4", "deepmerge": "^4.2.2", - "downlevel-dts": "~0.11.0", "es-check": "^7.2.1", "eslint": "8.57.0", "jsdom": "^21.1.2", @@ -122,6 +122,7 @@ "prettier-plugin-astro": "^0.14.1", "rimraf": "^5.0.10", "rolldown": "^1.0.0-beta.54", + "rolldown-plugin-dts": "^0.18.3", "size-limit": "~11.1.6", "ts-node": "10.9.1", "typescript": "~5.8.0", diff --git a/packages/astro/package.json b/packages/astro/package.json index 0b17cafb75b6..7d7f5d7adbcd 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -23,17 +23,17 @@ "main": "build/cjs/index.client.js", "module": "build/esm/index.server.js", "browser": "build/esm/index.client.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "exports": { ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "node": "./build/esm/index.server.js", "browser": "./build/esm/index.client.js", "import": "./build/esm/index.client.js", "require": "./build/cjs/index.server.js" }, "./middleware": { - "types": "./build/types/integration/middleware/index.types.d.ts", + "types": "./build/esm/integration/middleware/index.d.ts", "node": "./build/esm/integration/middleware/index.js", "import": "./build/esm/integration/middleware/index.js", "require": "./build/cjs/integration/middleware/index.js" @@ -69,11 +69,10 @@ "build": "run-p build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "tsc -p tsconfig.types.json", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts", "clean": "rimraf build coverage sentry-astro-*.tgz", diff --git a/packages/astro/rollup.npm.config.mjs b/packages/astro/rollup.npm.config.mjs index ca3b338433a7..6a95369188d2 100644 --- a/packages/astro/rollup.npm.config.mjs +++ b/packages/astro/rollup.npm.config.mjs @@ -2,7 +2,12 @@ import { makeBaseNPMConfig, makeNPMConfigVariants, makeOtelLoaders } from '@sent const variants = makeNPMConfigVariants( makeBaseNPMConfig({ - entrypoints: ['src/index.server.ts', 'src/index.client.ts', 'src/integration/middleware/index.ts'], + entrypoints: [ + 'src/index.server.ts', + 'src/index.client.ts', + 'src/index.types.ts', + 'src/integration/middleware/index.ts', + ], packageSpecificConfig: { output: { dynamicImportInCjs: true, diff --git a/packages/aws-serverless/package.json b/packages/aws-serverless/package.json index 2c8a93f0a1bd..e0c30dea0ce8 100644 --- a/packages/aws-serverless/package.json +++ b/packages/aws-serverless/package.json @@ -16,16 +16,16 @@ ], "main": "build/npm/cjs/index.js", "module": "build/npm/esm/index.js", - "types": "build/npm/types/index.d.ts", + "types": "build/npm/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/index.d.ts", "default": "./build/npm/esm/index.js" }, "require": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/index.d.ts", "default": "./build/npm/cjs/index.js" } }, @@ -54,13 +54,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -79,17 +72,14 @@ "@vercel/nft": "^0.29.4" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:layer": "rimraf build/aws && rolldown -c rollup.lambda-extension.config.mjs && yarn ts-node scripts/buildLambdaLayer.ts", - "build:dev": "run-p build:transpile build:types", + "build:dev": "run-s build:transpile build:types", "build:transpile": "rolldown -c rollup.npm.config.mjs && yarn build:layer", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build dist-awslambda-layer coverage sentry-serverless-*.tgz", diff --git a/packages/browser-utils/package.json b/packages/browser-utils/package.json index 5b4378c6d5ae..03ba67eb351d 100644 --- a/packages/browser-utils/package.json +++ b/packages/browser-utils/package.json @@ -14,27 +14,20 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -42,16 +35,13 @@ "@sentry/core": "10.30.0" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "run-p build:transpile:watch build:types:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "clean": "rimraf build coverage sentry-internal-browser-utils-*.tgz", "fix": "eslint . --format stylish --fix", diff --git a/packages/browser/package.json b/packages/browser/package.json index 4e1b2c255c79..f65578471ddc 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -14,11 +14,11 @@ ], "main": "build/npm/cjs/prod/index.js", "module": "build/npm/esm/prod/index.js", - "types": "build/npm/types/index.d.ts", + "types": "build/npm/esm/prod/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/prod/index.d.ts", "development": { "import": "./build/npm/esm/dev/index.js", "require": "./build/npm/cjs/dev/index.js" @@ -33,13 +33,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -55,18 +48,15 @@ "fake-indexeddb": "^6.2.4" }, "scripts": { - "build": "run-p build:transpile build:bundle build:types", - "build:dev": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types build:bundle", + "build:dev": "run-s build:transpile build:types", "build:bundle": "rolldown -c rollup.bundle.config.mjs", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch", "build:dev:watch": "run-p build:transpile:watch build:types:watch", "build:bundle:watch": "rolldown -c rollup.bundle.config.mjs --watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage .rpt2_cache sentry-browser-*.tgz", diff --git a/packages/bun/package.json b/packages/bun/package.json index 4b35feab69fc..532b5b783925 100644 --- a/packages/bun/package.json +++ b/packages/bun/package.json @@ -19,22 +19,15 @@ "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -46,16 +39,13 @@ "bun-types": "^1.2.9" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-bun-*.tgz", diff --git a/packages/cloudflare/package.json b/packages/cloudflare/package.json index 905ac591314a..2bfe6f56ccc4 100644 --- a/packages/cloudflare/package.json +++ b/packages/cloudflare/package.json @@ -19,32 +19,25 @@ "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } }, "./request": { "import": { - "types": "./build/types/request.d.ts", + "types": "./build/esm/request.d.ts", "default": "./build/esm/request.js" }, "require": { - "types": "./build/types/request.d.ts", + "types": "./build/esm/request.d.ts", "default": "./build/cjs/request.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -66,16 +59,13 @@ "wrangler": "4.22.0" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-cloudflare-*.tgz", diff --git a/packages/core/package.json b/packages/core/package.json index 25e11286c587..3c9390c7b31d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -14,41 +14,31 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-core-*.tgz", diff --git a/packages/deno/package.json b/packages/deno/package.json index 5013da4d8c32..1a0310d2b34e 100644 --- a/packages/deno/package.json +++ b/packages/deno/package.json @@ -7,7 +7,7 @@ "author": "Sentry", "license": "MIT", "module": "build/index.mjs", - "types": "build/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { @@ -32,7 +32,7 @@ "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "yarn deno-types && rolldown -c rollup.npm.config.mjs", - "build:types": "tsc -p tsconfig.types.json", + "build:types": "echo \"Types included with build\"", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build build-types build-test coverage node_modules/.deno sentry-deno-*.tgz", diff --git a/packages/feedback/package.json b/packages/feedback/package.json index 09430bc67c7c..22f39fe7ecd8 100644 --- a/packages/feedback/package.json +++ b/packages/feedback/package.json @@ -14,27 +14,20 @@ ], "main": "build/npm/cjs/index.js", "module": "build/npm/esm/index.js", - "types": "build/npm/types/index.d.ts", + "types": "build/npm/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/index.d.ts", "default": "./build/npm/esm/index.js" }, "require": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/index.d.ts", "default": "./build/npm/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -45,18 +38,15 @@ "preact": "^10.19.4" }, "scripts": { - "build": "run-p build:transpile build:types build:bundle", + "build": "run-s build:transpile build:types build:bundle", "build:transpile": "rolldown -c rollup.npm.config.mjs", "build:bundle": "rolldown -c rollup.bundle.config.mjs", - "build:dev": "run-p build:transpile build:types", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8 && yarn node ./scripts/shim-preact-export.js", + "build:dev": "run-s build:transpile build:types", + "build:types": "yarn node ./scripts/shim-preact-export.js", "build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch", "build:dev:watch": "run-p build:transpile:watch build:types:watch", "build:transpile:watch": "yarn build:transpile --watch", "build:bundle:watch": "yarn build:bundle --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build sentry-internal-feedback-*.tgz", diff --git a/packages/feedback/scripts/shim-preact-export.js b/packages/feedback/scripts/shim-preact-export.js index bd74e4da0a05..568a297b7612 100644 --- a/packages/feedback/scripts/shim-preact-export.js +++ b/packages/feedback/scripts/shim-preact-export.js @@ -1,8 +1,8 @@ // preact does not support more modern TypeScript versions, which breaks our users that depend on older // TypeScript versions. To fix this, we shim the types from preact to be any and remove the dependency on preact -// for types directly. This script is meant to be run after the build/npm/types-ts3.8 directory is created. +// for types directly. This script is meant to be run after the build/npm/esm directory is created (where rolldown dts generates types). -// Path: build/npm/types-ts3.8/global.d.ts +// Path: build/npm/esm/global.d.ts const fs = require('fs'); const path = require('path'); @@ -67,8 +67,8 @@ function walk(dir) { } function run() { - // recurse through build/npm/types-ts3.8 directory - const dir = path.join('build', 'npm', 'types-ts3.8'); + // recurse through build/npm/esm directory (where rolldown dts generates types) + const dir = path.join('build', 'npm', 'esm'); walk(dir); } diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index c2c69f08c267..e1b0ce699a0c 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -20,27 +20,20 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -60,18 +53,15 @@ "webpack": "^5.0.0" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:plugin": "tsc -p tsconfig.plugin.json", "build:transpile": "run-p build:rollup build:plugin", "build:rollup": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage *.d.ts sentry-gatsby-*.tgz", diff --git a/packages/google-cloud-serverless/package.json b/packages/google-cloud-serverless/package.json index acbcc6d61ef3..802f98241a46 100644 --- a/packages/google-cloud-serverless/package.json +++ b/packages/google-cloud-serverless/package.json @@ -13,16 +13,16 @@ "/build" ], "main": "build/cjs/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } }, @@ -37,13 +37,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -59,16 +52,13 @@ "nock": "^13.5.5" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-google-cloud-*.tgz", diff --git a/packages/integration-shims/package.json b/packages/integration-shims/package.json index 465ab90af133..fa13458a1d24 100644 --- a/packages/integration-shims/package.json +++ b/packages/integration-shims/package.json @@ -4,7 +4,7 @@ "description": "Shims for integrations in Sentry SDK.", "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "files": [ "/build" ], @@ -12,35 +12,25 @@ "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "sideEffects": false, "private": true, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:dev": "yarn build", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "run-p build:watch", "build:transpile:watch": "yarn build:transpile --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "clean": "rimraf build", "fix": "eslint . --format stylish --fix", "lint": "eslint . --format stylish", diff --git a/packages/nestjs/package.json b/packages/nestjs/package.json index 4511de06fdc7..1e2c390bf746 100644 --- a/packages/nestjs/package.json +++ b/packages/nestjs/package.json @@ -16,26 +16,26 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } }, "./setup": { "import": { - "types": "./setup.d.ts", + "types": "./build/esm/setup.d.ts", "default": "./build/esm/setup.js" }, "require": { - "types": "./setup.d.ts", + "types": "./build/esm/setup.d.ts", "default": "./build/cjs/setup.js" } } @@ -66,13 +66,10 @@ "build": "run-p build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:setup", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:setup": "tsc -p tsconfig.setup-types.json", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts && madge --circular src/setup.ts", "clean": "rimraf build coverage sentry-nestjs-*.tgz ./*.d.ts ./*.d.ts.map", diff --git a/packages/nestjs/tsconfig.setup-types.json b/packages/nestjs/tsconfig.setup-types.json deleted file mode 100644 index 2ef9310f3edc..000000000000 --- a/packages/nestjs/tsconfig.setup-types.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.json", - - "compilerOptions": { - "declaration": true, - "declarationMap": true, - "emitDeclarationOnly": true, - "outDir": "./" - }, - - "//": "This type is built separately because it is for a subpath export, which has problems if it is not in the root", - "include": ["src/setup.ts"], - "exclude": [] -} diff --git a/packages/nestjs/tsconfig.types.json b/packages/nestjs/tsconfig.types.json index 6240cd92efaa..65455f66bd75 100644 --- a/packages/nestjs/tsconfig.types.json +++ b/packages/nestjs/tsconfig.types.json @@ -6,8 +6,5 @@ "declarationMap": true, "emitDeclarationOnly": true, "outDir": "build/types" - }, - - "//": "This is built separately in tsconfig.setup-types.json", - "exclude": ["src/setup.ts"] + } } diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index e677572352b5..849ab32639d0 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -11,14 +11,14 @@ }, "main": "build/cjs/index.server.js", "module": "build/esm/index.server.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "files": [ "/build" ], "exports": { "./package.json": "./package.json", ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "edge": { "import": "./build/esm/edge/index.js", "require": "./build/cjs/edge/index.js", @@ -65,13 +65,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -102,16 +95,13 @@ "next": "^13.2.0 || ^14.0 || ^15.0.0-rc.0 || ^16.0.0-0" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "ts-node scripts/buildRollup.ts", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "nodemon --ext ts --watch src scripts/buildRollup.ts", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/edge/index.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts", "clean": "rimraf build coverage sentry-nextjs-*.tgz", diff --git a/packages/nextjs/rollup.npm.config.mjs b/packages/nextjs/rollup.npm.config.mjs index 46d47582ab1e..0f873a2f08d6 100644 --- a/packages/nextjs/rollup.npm.config.mjs +++ b/packages/nextjs/rollup.npm.config.mjs @@ -8,6 +8,7 @@ export default [ entrypoints: [ 'src/index.server.ts', 'src/index.client.ts', + 'src/index.types.ts', 'src/client/index.ts', 'src/server/index.ts', 'src/edge/index.ts', diff --git a/packages/nextjs/tsconfig.types.json b/packages/nextjs/tsconfig.types.json index 978b51b8e126..1b9611c362d6 100644 --- a/packages/nextjs/tsconfig.types.json +++ b/packages/nextjs/tsconfig.types.json @@ -5,7 +5,6 @@ // creating types for these template files a circular exercise, which causes `tsc` to crash. Fortunately, since the // templates aren't consumed as modules (they're essentially just text files which happen to contain code), we don't // actually need to create types for them. - "exclude": ["src/config/templates/*"], "compilerOptions": { "declaration": true, diff --git a/packages/node-core/package.json b/packages/node-core/package.json index 7392798a89b3..aad6cd989346 100644 --- a/packages/node-core/package.json +++ b/packages/node-core/package.json @@ -14,16 +14,16 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } }, @@ -46,13 +46,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -83,16 +76,13 @@ "@types/node": "^18.19.1" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-node-*.tgz", diff --git a/packages/node-native/package.json b/packages/node-native/package.json index 3a67e8018475..e1bc6f548a74 100644 --- a/packages/node-native/package.json +++ b/packages/node-native/package.json @@ -8,16 +8,16 @@ "license": "MIT", "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } }, @@ -30,13 +30,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "engines": { "node": ">=18" }, @@ -52,11 +45,9 @@ "lint": "eslint . --format stylish", "lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module", "fix": "eslint . --format stylish --fix", - "build": "yarn build:types && yarn build:transpile", + "build": "run-s build:transpile build:types", "build:transpile": "yarn rolldown -c rollup.npm.config.mjs", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", - "build:types": "tsc -p tsconfig.types.json && yarn build:types:downlevel", - "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:types": "echo \"Types included with build\"", "build:dev": "yarn clean && yarn build", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", "build:watch": "run-p build:transpile:watch build:types:watch", diff --git a/packages/node/package.json b/packages/node/package.json index 556f32ba7105..335acbe5d43f 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -14,16 +14,16 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } }, @@ -54,13 +54,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -105,16 +98,13 @@ "@types/node": "^18.19.1" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-node-*.tgz", diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 4730cc558586..cd1d27d9bc04 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -15,11 +15,11 @@ "main": "build/cjs/index.server.js", "module": "build/esm/index.server.js", "browser": "build/esm/index.client.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "exports": { "./package.json": "./package.json", ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "browser": { "import": "./build/esm/index.client.js", "require": "./build/cjs/index.client.js" @@ -68,11 +68,10 @@ "build:dev": "yarn build", "build:nuxt-module": "bash ./generate-build-stubs.bash && nuxt-module-build build --outDir build/module", "build:transpile": "rolldown -c rollup.npm.config.mjs && yarn build:nuxt-module", - "build:types": "tsc -p tsconfig.types.json", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts", "clean": "rimraf build coverage sentry-nuxt-*.tgz", @@ -92,8 +91,7 @@ "build:transpile": { "dependsOn": [ "^build:transpile", - "^build:types", - "build:types" + "^build:types" ], "outputs": [ "{projectRoot}/build/cjs", diff --git a/packages/nuxt/rollup.npm.config.mjs b/packages/nuxt/rollup.npm.config.mjs index a94a4b5af253..80dd9703f050 100644 --- a/packages/nuxt/rollup.npm.config.mjs +++ b/packages/nuxt/rollup.npm.config.mjs @@ -8,6 +8,7 @@ export default [ 'src/index.client.ts', 'src/client/index.ts', 'src/server/index.ts', + 'src/index.types.ts', 'src/module.ts', ], packageSpecificConfig: { diff --git a/packages/opentelemetry/package.json b/packages/opentelemetry/package.json index a6e892697fff..fa99f07bb946 100644 --- a/packages/opentelemetry/package.json +++ b/packages/opentelemetry/package.json @@ -14,27 +14,20 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -56,16 +49,13 @@ "@opentelemetry/semantic-conventions": "^1.37.0" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-opentelemetry-*.tgz", diff --git a/packages/profiling-node/package.json b/packages/profiling-node/package.json index 0f67546d037d..f06ffae14b37 100644 --- a/packages/profiling-node/package.json +++ b/packages/profiling-node/package.json @@ -8,27 +8,20 @@ "license": "MIT", "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "bin": { "sentry-prune-profiler-binaries": "scripts/prune-profiler-binaries.js" }, @@ -48,11 +41,9 @@ "lint": "eslint . --format stylish", "lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module", "fix": "eslint . --format stylish --fix", - "build": "yarn build:types && yarn build:transpile", + "build": "run-s build:transpile build:types", "build:transpile": "yarn rolldown -c rollup.npm.config.mjs", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", - "build:types": "tsc -p tsconfig.types.json && yarn build:types:downlevel", - "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:types": "echo \"Types included with build\"", "build:dev": "yarn clean && yarn build", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", "build:watch": "run-p build:transpile:watch build:types:watch", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 51155c0dbb8b..b3a3ca51dd9f 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -15,11 +15,11 @@ "main": "build/cjs/index.server.js", "module": "build/esm/index.server.js", "browser": "build/esm/index.client.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "exports": { "./package.json": "./package.json", ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "browser": { "import": "./build/esm/index.client.js", "require": "./build/cjs/index.client.js" @@ -37,7 +37,7 @@ "./cloudflare": { "import": "./build/esm/cloudflare/index.js", "require": "./build/cjs/cloudflare/index.js", - "types": "./build/types/cloudflare/index.d.ts", + "types": "./build/esm/cloudflare/index.d.ts", "default": "./build/esm/cloudflare/index.js" } }, @@ -73,12 +73,10 @@ "build": "run-p build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core", - "build:types:core": "tsc -p tsconfig.types.json", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts", "clean": "rimraf build coverage sentry-react-router-*.tgz", diff --git a/packages/react-router/rollup.npm.config.mjs b/packages/react-router/rollup.npm.config.mjs index d4edb3b23c9b..ef9b066669f5 100644 --- a/packages/react-router/rollup.npm.config.mjs +++ b/packages/react-router/rollup.npm.config.mjs @@ -3,7 +3,7 @@ import { makeBaseNPMConfig, makeNPMConfigVariants } from '@sentry-internal/rollu export default [ ...makeNPMConfigVariants( makeBaseNPMConfig({ - entrypoints: ['src/index.server.ts', 'src/index.client.ts', 'src/cloudflare/index.ts'], + entrypoints: ['src/index.server.ts', 'src/index.client.ts', 'src/index.types.ts', 'src/cloudflare/index.ts'], packageSpecificConfig: { external: ['react-router', 'react-router-dom', 'react', 'react/jsx-runtime', 'vite'], output: { diff --git a/packages/react/package.json b/packages/react/package.json index ebba216e733d..9bf3c18b7e82 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -14,27 +14,20 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -68,16 +61,13 @@ "redux": "^4.0.5" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-react-*.tgz", diff --git a/packages/remix/package.json b/packages/remix/package.json index 0be4e77c7d66..6d9950c3922e 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -19,11 +19,11 @@ "main": "build/cjs/index.server.js", "module": "build/esm/index.server.js", "browser": "build/esm/index.client.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "exports": { "./package.json": "./package.json", ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "browser": { "import": "./build/esm/index.client.js", "require": "./build/cjs/index.client.js", @@ -41,7 +41,7 @@ } }, "./cloudflare": { - "types": "./build/types/cloudflare/index.d.ts", + "types": "./build/esm/cloudflare/index.d.ts", "import": "./build/esm/cloudflare/index.js", "require": "./build/cjs/cloudflare/index.js", "default": "./build/esm/cloudflare/index.js" @@ -57,13 +57,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -95,16 +88,13 @@ "react": "18.x" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.server.ts && madge --circular src/index.client.ts", "clean": "rimraf build coverage sentry-remix-*.tgz", diff --git a/packages/remix/rollup.npm.config.mjs b/packages/remix/rollup.npm.config.mjs index bd26bd1b06c2..d3cf8a659d4c 100644 --- a/packages/remix/rollup.npm.config.mjs +++ b/packages/remix/rollup.npm.config.mjs @@ -6,6 +6,7 @@ export default [ entrypoints: [ 'src/index.server.ts', 'src/index.client.ts', + 'src/index.types.ts', 'src/client/index.ts', 'src/server/index.ts', 'src/cloudflare/index.ts', diff --git a/packages/replay-canvas/package.json b/packages/replay-canvas/package.json index c7865f38f74a..19bc09e9f726 100644 --- a/packages/replay-canvas/package.json +++ b/packages/replay-canvas/package.json @@ -4,7 +4,7 @@ "description": "Replay canvas integration", "main": "build/npm/cjs/index.js", "module": "build/npm/esm/index.js", - "types": "build/npm/types/index.d.ts", + "types": "build/npm/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { @@ -18,30 +18,20 @@ } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "files": [ "/build/npm" ], "sideEffects": false, "scripts": { - "build": "run-p build:transpile build:types build:bundle", + "build": "run-s build:transpile build:types build:bundle", "build:transpile": "rolldown -c rollup.npm.config.mjs", "build:bundle": "rolldown -c rollup.bundle.config.mjs", - "build:dev": "run-p build:transpile build:types", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8", + "build:dev": "run-s build:transpile build:types", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch", "build:dev:watch": "run-p build:transpile:watch build:types:watch", "build:transpile:watch": "yarn build:transpile --watch", "build:bundle:watch": "yarn build:bundle --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build sentry-replay-*.tgz", diff --git a/packages/replay-internal/package.json b/packages/replay-internal/package.json index be34944726ab..85b2edf638a0 100644 --- a/packages/replay-internal/package.json +++ b/packages/replay-internal/package.json @@ -4,37 +4,30 @@ "description": "User replays for Sentry", "main": "build/npm/cjs/index.js", "module": "build/npm/esm/index.js", - "types": "build/npm/types/index.d.ts", + "types": "build/npm/esm/index.d.ts", "exports": { "./package.json": "./package.json", "./worker-bundler": { "import": { - "types": "./build/npm/types/worker-bundler.d.ts", + "types": "./build/npm/esm/worker-bundler.d.ts", "default": "./build/npm/esm/worker-bundler.js" }, "require": { - "types": "./build/npm/types/worker-bundler.d.ts", + "types": "./build/npm/esm/worker-bundler.d.ts", "default": "./build/npm/cjs/worker-bundler.js" } }, ".": { "import": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/index.d.ts", "default": "./build/npm/esm/index.js" }, "require": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/index.d.ts", "default": "./build/npm/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "files": [ "/build/npm" ], @@ -43,18 +36,15 @@ "access": "public" }, "scripts": { - "build": "run-p build:transpile build:types build:bundle", + "build": "run-s build:transpile build:types build:bundle", "build:transpile": "rolldown -c rollup.npm.config.mjs", "build:bundle": "rolldown -c rollup.bundle.config.mjs", - "build:dev": "run-p build:transpile build:types", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8", + "build:dev": "run-s build:transpile build:types", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch", "build:dev:watch": "run-p build:transpile:watch build:types:watch", "build:transpile:watch": "yarn build:transpile --watch", "build:bundle:watch": "yarn build:bundle --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build sentry-replay-*.tgz", diff --git a/packages/replay-worker/package.json b/packages/replay-worker/package.json index 3b81a8e59158..d5b09e5b3305 100644 --- a/packages/replay-worker/package.json +++ b/packages/replay-worker/package.json @@ -4,48 +4,38 @@ "description": "Worker for @sentry-internal/replay", "main": "build/esm/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", "./worker-bundler": { - "types": "./build/types/worker-bundler.d.ts", + "types": "./build/esm/worker-bundler.d.ts", "default": "./build/esm/worker-bundler.js" }, ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "files": [ "/build" ], "sideEffects": false, "private": true, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:transpile": "rolldown -c rollup.worker.config.mjs", "build:examples": "rolldown -c rollup.examples.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:dev": "yarn build", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "yarn build:transpile --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "clean": "rimraf build", "fix": "eslint . --format stylish --fix", "lint": "eslint . --format stylish", diff --git a/packages/solid/package.json b/packages/solid/package.json index a96adb65d66f..28ae40f67ba0 100644 --- a/packages/solid/package.json +++ b/packages/solid/package.json @@ -16,36 +16,36 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } }, "./solidrouter": { "import": { - "types": "./solidrouter.d.ts", + "types": "./build/esm/solidrouter.d.ts", "default": "./build/esm/solidrouter.js" }, "require": { - "types": "./solidrouter.d.ts", + "types": "./build/esm/solidrouter.d.ts", "default": "./build/cjs/solidrouter.js" } }, "./tanstackrouter": { "import": { - "types": "./tanstackrouter.d.ts", + "types": "./build/esm/tanstackrouter.d.ts", "default": "./build/esm/tanstackrouter.js" }, "require": { - "types": "./tanstackrouter.d.ts", + "types": "./build/esm/tanstackrouter.d.ts", "default": "./build/cjs/tanstackrouter.js" } } @@ -85,13 +85,10 @@ "build": "run-p build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:routers", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:routers": "tsc -p tsconfig.routers-types.json", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts && madge --circular src/solidrouter.ts && madge --circular src/tanstackrouter.ts", "clean": "rimraf build coverage sentry-solid-*.tgz ./*.d.ts ./*.d.ts.map", diff --git a/packages/solid/tsconfig.routers-types.json b/packages/solid/tsconfig.routers-types.json deleted file mode 100644 index e173ebc0eb87..000000000000 --- a/packages/solid/tsconfig.routers-types.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "./tsconfig.json", - - "compilerOptions": { - "declaration": true, - "declarationMap": true, - "emitDeclarationOnly": true, - "outDir": "./" - }, - - "//": "This type is built separately because it is for a subpath export, which has problems if it is not in the root", - "include": ["src/solidrouter.ts", "src/tanstackrouter.ts"], - "//": "Without this, we cannot output into the root dir", - "exclude": [] -} diff --git a/packages/solid/tsconfig.types.json b/packages/solid/tsconfig.types.json index 510f8c4fae3f..65455f66bd75 100644 --- a/packages/solid/tsconfig.types.json +++ b/packages/solid/tsconfig.types.json @@ -6,8 +6,5 @@ "declarationMap": true, "emitDeclarationOnly": true, "outDir": "build/types" - }, - - "//": "This is built separately in tsconfig.routers-types.json", - "exclude": ["src/solidrouter.ts", "src/tanstackrouter.ts"] + } } diff --git a/packages/solidstart/package.json b/packages/solidstart/package.json index c35a593af934..881dc2a72ad2 100644 --- a/packages/solidstart/package.json +++ b/packages/solidstart/package.json @@ -19,7 +19,7 @@ "main": "build/cjs/index.server.js", "module": "build/esm/index.server.js", "browser": "build/esm/index.client.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "//": [ "For `@sentry/solidstart/solidrouter` types to resolve correctly for both `moduleResolution: bundler` and `moduleResolution: node`", "- type definitions have to be exported at root level (/build won't work)", @@ -29,7 +29,7 @@ "exports": { "./package.json": "./package.json", ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "browser": { "import": "./build/esm/index.client.js", "require": "./build/cjs/index.client.js" @@ -40,14 +40,14 @@ } }, "./solidrouter": { - "types": "./solidrouter.d.ts", + "types": "./build/esm/solidrouter.d.ts", "browser": { - "types": "./solidrouter.d.ts", + "types": "./build/esm/solidrouter.d.ts", "import": "./build/esm/solidrouter.client.js", "require": "./build/cjs/solidrouter.client.js" }, "node": { - "types": "./solidrouter.d.ts", + "types": "./build/esm/solidrouter.d.ts", "import": "./build/esm/solidrouter.server.js", "require": "./build/cjs/solidrouter.server.js" } @@ -86,13 +86,10 @@ "build": "run-p build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:subexports", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:subexports": "tsc -p tsconfig.subexports-types.json", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts && madge --circular src/solidrouter.client.ts && madge --circular src/solidrouter.server.ts && madge --circular src/solidrouter.ts", "clean": "rimraf build coverage sentry-solidstart-*.tgz ./*.d.ts ./*.d.ts.map ./client ./server", diff --git a/packages/solidstart/tsconfig.subexports-types.json b/packages/solidstart/tsconfig.subexports-types.json deleted file mode 100644 index 52dd6d1d268c..000000000000 --- a/packages/solidstart/tsconfig.subexports-types.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "./tsconfig.json", - - "compilerOptions": { - "declaration": true, - "declarationMap": true, - "emitDeclarationOnly": true, - "outDir": "./" - }, - - // These types are built separately because they are for a subpath export, which has problems if they are not in the root - "include": [ - "src/solidrouter.client.ts", - "src/client/solidrouter.ts", - "src/solidrouter.server.ts", - "src/server/solidrouter.ts", - "src/solidrouter.ts" - ], - // Without this, we cannot output into the root dir - "exclude": [] -} diff --git a/packages/solidstart/tsconfig.types.json b/packages/solidstart/tsconfig.types.json index f7cc8c3d1610..65455f66bd75 100644 --- a/packages/solidstart/tsconfig.types.json +++ b/packages/solidstart/tsconfig.types.json @@ -6,14 +6,5 @@ "declarationMap": true, "emitDeclarationOnly": true, "outDir": "build/types" - }, - - // These are built separately in tsconfig.solidrouter-types.json - "exclude": [ - "src/solidrouter.client.ts", - "src/client/solidrouter.ts", - "src/solidrouter.server.ts", - "src/server/solidrouter.ts", - "src/solidrouter.ts" - ] + } } diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 77ed2bde8415..bf688f6639ba 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -14,7 +14,7 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { @@ -28,13 +28,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -53,16 +46,13 @@ "vite": "^3.0.0" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-svelte-*.tgz", diff --git a/packages/sveltekit/package.json b/packages/sveltekit/package.json index a262edc5d842..bb0c2239edf8 100644 --- a/packages/sveltekit/package.json +++ b/packages/sveltekit/package.json @@ -15,11 +15,11 @@ "main": "build/cjs/index.server.js", "module": "build/esm/index.server.js", "browser": "build/esm/index.client.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "exports": { "./package.json": "./package.json", ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "worker": { "import": "./build/esm/index.worker.js", "require": "./build/cjs/index.worker.js" @@ -68,11 +68,10 @@ "build": "run-p build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "tsc -p tsconfig.types.json", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts", "clean": "rimraf build coverage sentry-sveltekit-*.tgz", diff --git a/packages/sveltekit/rollup.npm.config.mjs b/packages/sveltekit/rollup.npm.config.mjs index ca0792cb4868..1db5e025c44c 100644 --- a/packages/sveltekit/rollup.npm.config.mjs +++ b/packages/sveltekit/rollup.npm.config.mjs @@ -6,6 +6,7 @@ export default makeNPMConfigVariants( 'src/index.server.ts', 'src/index.client.ts', 'src/index.worker.ts', + 'src/index.types.ts', 'src/client/index.ts', 'src/server/index.ts', 'src/worker/index.ts', diff --git a/packages/tanstackstart-react/package.json b/packages/tanstackstart-react/package.json index b903a53768f2..e34e72e25707 100644 --- a/packages/tanstackstart-react/package.json +++ b/packages/tanstackstart-react/package.json @@ -11,14 +11,14 @@ }, "main": "build/cjs/index.server.js", "module": "build/esm/index.server.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "files": [ "/build" ], "exports": { "./package.json": "./package.json", ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "browser": { "import": "./build/esm/index.client.js", "require": "./build/cjs/index.client.js" @@ -39,13 +39,6 @@ } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -58,16 +51,13 @@ "@sentry/react": "10.30.0" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "nodemon --ext ts --watch src scripts/buildRollup.ts", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts", "clean": "rimraf build coverage sentry-tanstackstart-react-*.tgz", diff --git a/packages/tanstackstart/package.json b/packages/tanstackstart/package.json index 821e7f74ae5d..56b252db3397 100644 --- a/packages/tanstackstart/package.json +++ b/packages/tanstackstart/package.json @@ -11,14 +11,14 @@ }, "main": "build/cjs/index.server.js", "module": "build/esm/index.server.js", - "types": "build/types/index.types.d.ts", + "types": "build/esm/index.types.d.ts", "files": [ "/build" ], "exports": { "./package.json": "./package.json", ".": { - "types": "./build/types/index.types.d.ts", + "types": "./build/esm/index.types.d.ts", "browser": { "import": "./build/esm/index.client.js", "require": "./build/cjs/index.client.js" @@ -29,27 +29,17 @@ } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "nodemon --ext ts --watch src scripts/buildRollup.ts", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts", "clean": "rimraf build coverage sentry-tanstackstart-*.tgz", diff --git a/packages/types/package.json b/packages/types/package.json index e2155eafa9cf..12c6b21e9616 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -14,41 +14,31 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "clean": "rimraf build sentry-types-*.tgz", "lint": "eslint . --format stylish", diff --git a/packages/vercel-edge/package.json b/packages/vercel-edge/package.json index df1787fefc74..3136c42a98c3 100644 --- a/packages/vercel-edge/package.json +++ b/packages/vercel-edge/package.json @@ -14,27 +14,20 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -51,16 +44,13 @@ "@sentry/opentelemetry": "10.30.0" }, "scripts": { - "build": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", "build:dev": "yarn build", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "yarn build:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-vercel-edge-*.tgz", diff --git a/packages/vue/package.json b/packages/vue/package.json index 613cadb18670..82110add0cd1 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -14,27 +14,20 @@ ], "main": "build/cjs/index.js", "module": "build/esm/index.js", - "types": "build/types/index.d.ts", + "types": "build/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/esm/index.js" }, "require": { - "types": "./build/types/index.d.ts", + "types": "./build/esm/index.d.ts", "default": "./build/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/types/index.d.ts": [ - "build/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -55,16 +48,13 @@ "vue": "~3.2.41" }, "scripts": { - "build": "run-p build:transpile build:types", - "build:dev": "run-p build:transpile build:types", + "build": "run-s build:transpile build:types", + "build:dev": "run-s build:transpile build:types", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:types:watch", "build:dev:watch": "run-p build:transpile:watch build:types:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage sentry-vue-*.tgz", diff --git a/packages/wasm/package.json b/packages/wasm/package.json index 082a75af6842..9a95c7f86987 100644 --- a/packages/wasm/package.json +++ b/packages/wasm/package.json @@ -14,27 +14,20 @@ ], "main": "build/npm/cjs/index.js", "module": "build/npm/esm/index.js", - "types": "build/npm/types/index.d.ts", + "types": "build/npm/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/index.d.ts", "default": "./build/npm/esm/index.js" }, "require": { - "types": "./build/npm/types/index.d.ts", + "types": "./build/npm/esm/index.d.ts", "default": "./build/npm/cjs/index.js" } } }, - "typesVersions": { - "<5.0": { - "build/npm/types/index.d.ts": [ - "build/npm/types-ts3.8/index.d.ts" - ] - } - }, "publishConfig": { "access": "public" }, @@ -43,18 +36,15 @@ "@sentry/core": "10.30.0" }, "scripts": { - "build": "run-p build:transpile build:bundle build:types", + "build": "run-s build:transpile build:types build:bundle", "build:bundle": "rolldown --config rollup.bundle.config.mjs", - "build:dev": "run-p build:transpile build:types", + "build:dev": "run-s build:transpile build:types", "build:transpile": "rolldown -c rollup.npm.config.mjs", - "build:types": "run-s build:types:core build:types:downlevel", - "build:types:core": "tsc -p tsconfig.types.json", - "build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8", + "build:types": "echo \"Types included with build\"", "build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch", "build:bundle:watch": "rolldown --config rollup.bundle.config.mjs --watch", "build:dev:watch": "run-p build:transpile:watch build:types:watch", "build:transpile:watch": "rolldown -c rollup.npm.config.mjs --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", "build:tarball": "npm pack", "test": "vitest run", "test:watch": "vitest --watch", diff --git a/yarn.lock b/yarn.lock index a956027f1f35..42c93ebffb73 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1365,6 +1365,17 @@ "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" +"@babel/generator@^7.28.5": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.28.5.tgz#712722d5e50f44d07bc7ac9fe84438742dd61298" + integrity sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ== + dependencies: + "@babel/parser" "^7.28.5" + "@babel/types" "^7.28.5" + "@jridgewell/gen-mapping" "^0.3.12" + "@jridgewell/trace-mapping" "^0.3.28" + jsesc "^3.0.2" + "@babel/helper-annotate-as-pure@7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" @@ -1558,6 +1569,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8" integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow== +"@babel/helper-validator-identifier@^7.28.5": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz#010b6938fab7cb7df74aa2bbc06aa503b8fe5fb4" + integrity sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q== + "@babel/helper-validator-option@^7.18.6", "@babel/helper-validator-option@^7.23.5", "@babel/helper-validator-option@^7.25.9", "@babel/helper-validator-option@^7.27.1": version "7.27.1" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f" @@ -1594,6 +1610,13 @@ dependencies: "@babel/types" "^7.28.4" +"@babel/parser@^7.28.5": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.5.tgz#0b0225ee90362f030efd644e8034c99468893b08" + integrity sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ== + dependencies: + "@babel/types" "^7.28.5" + "@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.24.4": version "7.24.4" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.24.4.tgz#6125f0158543fb4edf1c22f322f3db67f21cb3e1" @@ -2663,6 +2686,14 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.27.1" +"@babel/types@^7.28.5": + version "7.28.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.5.tgz#10fc405f60897c35f07e85493c932c7b5ca0592b" + integrity sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA== + dependencies: + "@babel/helper-string-parser" "^7.27.1" + "@babel/helper-validator-identifier" "^7.28.5" + "@bcoe/v8-coverage@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz#bbe12dca5b4ef983a0d0af4b07b9bc90ea0ababa" @@ -4873,6 +4904,14 @@ "@jridgewell/sourcemap-codec" "^1.5.0" "@jridgewell/trace-mapping" "^0.3.24" +"@jridgewell/gen-mapping@^0.3.12": + version "0.3.13" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz#6342a19f44347518c93e43b1ac69deb3c4656a1f" + integrity sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA== + dependencies: + "@jridgewell/sourcemap-codec" "^1.5.0" + "@jridgewell/trace-mapping" "^0.3.24" + "@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": version "3.1.1" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" @@ -4912,6 +4951,14 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@jridgewell/trace-mapping@^0.3.28": + version "0.3.31" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" + integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + "@js-joda/core@^5.6.1": version "5.6.3" resolved "https://registry.yarnpkg.com/@js-joda/core/-/core-5.6.3.tgz#41ae1c07de1ebe0f6dde1abcbc9700a09b9c6056" @@ -9443,6 +9490,54 @@ "@typescript-eslint/types" "8.35.0" eslint-visitor-keys "^4.2.1" +"@typescript/native-preview-darwin-arm64@7.0.0-dev.20251210.1": + version "7.0.0-dev.20251210.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-darwin-arm64/-/native-preview-darwin-arm64-7.0.0-dev.20251210.1.tgz#3e8a36be5d37ca906773356034742bcea798c28a" + integrity sha512-6FLhFMAdaW/JMzTPqaIxVTgCFhMQY2v88qVGLUmcf9coCJx5plxuY0zxzXaLrvQulGnDurIKZMW5tBGmQy4Buw== + +"@typescript/native-preview-darwin-x64@7.0.0-dev.20251210.1": + version "7.0.0-dev.20251210.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-darwin-x64/-/native-preview-darwin-x64-7.0.0-dev.20251210.1.tgz#1e0c800bdae84ba9c4a148f9d79d8c42e9c06701" + integrity sha512-JrsZ913/ZyeoFDCVq+k4h0VUJHyqjT6te/IC8aMtLZQRkusQEX+57Anfr/BVXzWBa8+JwIXPGzllilw5dkrHNw== + +"@typescript/native-preview-linux-arm64@7.0.0-dev.20251210.1": + version "7.0.0-dev.20251210.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-arm64/-/native-preview-linux-arm64-7.0.0-dev.20251210.1.tgz#2ca8296b044e78aa0551f7b04b35fc4b225572c2" + integrity sha512-GViH0JIkpEHCo04VYD/iAKqYjIB2uLXXtTmmLaImzBVd+h1dlKFgi2aOMi51mYnSefnbj7P7PeqIQNLKwi4NSQ== + +"@typescript/native-preview-linux-arm@7.0.0-dev.20251210.1": + version "7.0.0-dev.20251210.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-arm/-/native-preview-linux-arm-7.0.0-dev.20251210.1.tgz#2f7a70a1240f842d0ccec71a33ef0fc8e64a50bc" + integrity sha512-v1hyGd8TWHaoRU8BJfGAdW6ML70TLUOB9+0Xeo30m3xHlOdO1zxunXa/FVhqzrChqzOkcty61PGe9tAPhrIh1w== + +"@typescript/native-preview-linux-x64@7.0.0-dev.20251210.1": + version "7.0.0-dev.20251210.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-x64/-/native-preview-linux-x64-7.0.0-dev.20251210.1.tgz#d30c47b98f30f9da9b913a3816c11ee24cfa2227" + integrity sha512-X6p2MrcRcYE9T+ecNHYZHFYew0t+k9Sc2GbyjbNB0+MJ/Lffp3aUH59dp+JASZoyOxugPwN+MCJ/kNzYqiK9vg== + +"@typescript/native-preview-win32-arm64@7.0.0-dev.20251210.1": + version "7.0.0-dev.20251210.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-win32-arm64/-/native-preview-win32-arm64-7.0.0-dev.20251210.1.tgz#dd67823a5e08aec5d070dc2203084ff173c695b6" + integrity sha512-FewUZSh7d9YnX0j3hr+N+zQ5B54k4jsVpZp8QbuDduMtautxI18bNO+vL5oO86ezqLWbUnZajXV/61MGfpEtMg== + +"@typescript/native-preview-win32-x64@7.0.0-dev.20251210.1": + version "7.0.0-dev.20251210.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-win32-x64/-/native-preview-win32-x64-7.0.0-dev.20251210.1.tgz#7b709dd10968eae6a347cf7ee403586ceff26be9" + integrity sha512-NdqTPzm/Ls3F1amP/e/akCuhY32mjBXT0NMQnYODgT9ltbdkk08b572Bp4GbdfRj9AiJxK70pqoNeZWw4e5fhg== + +"@typescript/native-preview@^7.0.0-dev.20251210.1": + version "7.0.0-dev.20251210.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview/-/native-preview-7.0.0-dev.20251210.1.tgz#6ae4a3fb5615ff85b9e9315e8e44402ba0e4c890" + integrity sha512-SiSRpp42K80X+qJKAi8qvjo2xMZIgJgROXCJo0MiZ8a6fjQK6IetRfUvwdApUsDltf/VaEc/j8v2Hiqp8SGhLQ== + optionalDependencies: + "@typescript/native-preview-darwin-arm64" "7.0.0-dev.20251210.1" + "@typescript/native-preview-darwin-x64" "7.0.0-dev.20251210.1" + "@typescript/native-preview-linux-arm" "7.0.0-dev.20251210.1" + "@typescript/native-preview-linux-arm64" "7.0.0-dev.20251210.1" + "@typescript/native-preview-linux-x64" "7.0.0-dev.20251210.1" + "@typescript/native-preview-win32-arm64" "7.0.0-dev.20251210.1" + "@typescript/native-preview-win32-x64" "7.0.0-dev.20251210.1" + "@ungap/structured-clone@^1.0.0", "@ungap/structured-clone@^1.2.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8" @@ -11065,6 +11160,14 @@ ast-kit@^1.0.1, ast-kit@^1.1.0: "@babel/parser" "^7.25.6" pathe "^1.1.2" +ast-kit@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/ast-kit/-/ast-kit-2.2.0.tgz#6d9a298acefef5bdfc5a0fa51d94d1334ef2e671" + integrity sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw== + dependencies: + "@babel/parser" "^7.28.5" + pathe "^2.0.3" + ast-module-types@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/ast-module-types/-/ast-module-types-6.0.1.tgz#4b4ca0251c57b815bab62604dcb22f8c903e2523" @@ -11735,6 +11838,11 @@ birpc@^0.2.17: resolved "https://registry.yarnpkg.com/birpc/-/birpc-0.2.17.tgz#d0bdb90d4d063061156637f03b7b0adea1779734" integrity sha512-+hkTxhot+dWsLpp3gia5AkVHIsKlZybNT5gIYiDlNzJrmYPcTM9k5/w2uaj3IPpd7LlEYpmCj4Jj1nC41VhDFg== +birpc@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/birpc/-/birpc-3.0.0.tgz#eb18f6c539e10cbfc6d6b1fd1cd6e08d77b70b49" + integrity sha512-by+04pHuxpCEQcucAXqzopqfhyI8TLK5Qg5MST0cB6MP+JhHna9ollrtK9moVh27aq6Q6MEJgebD0cVm//yBkg== + bl@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/bl/-/bl-2.2.1.tgz#8c11a7b730655c5d56898cdc871224f40fd901d5" @@ -14764,20 +14872,16 @@ dotenv@~10.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== -downlevel-dts@~0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/downlevel-dts/-/downlevel-dts-0.11.0.tgz#514a2d723009c5845730c1db6c994484c596ed9c" - integrity sha512-vo835pntK7kzYStk7xUHDifiYJvXxVhUapt85uk2AI94gUUAQX9HNRtrcMHNSc3YHJUEHGbYIGsM99uIbgAtxw== - dependencies: - semver "^7.3.2" - shelljs "^0.8.3" - typescript next - dset@^3.1.2: version "3.1.4" resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.4.tgz#f8eaf5f023f068a036d08cd07dc9ffb7d0065248" integrity sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA== +dts-resolver@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/dts-resolver/-/dts-resolver-2.1.3.tgz#b930b38fcb2f3dab3b55cb4ac73658c9a5fc0a41" + integrity sha512-bihc7jPC90VrosXNzK0LTE2cuLP6jr0Ro8jk+kMugHReJVLIpHz/xadeq3MhuwyO4TD4OA3L1Q8pBBFRc08Tsw== + dunder-proto@^1.0.0, dunder-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" @@ -17934,6 +18038,13 @@ get-symbol-description@^1.1.0: es-errors "^1.3.0" get-intrinsic "^1.2.6" +get-tsconfig@^4.13.0: + version "4.13.0" + resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.13.0.tgz#fcdd991e6d22ab9a600f00e91c318707a5d9a0d7" + integrity sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ== + dependencies: + resolve-pkg-maps "^1.0.0" + get-value@^2.0.3, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" @@ -18126,7 +18237,7 @@ glob@^5.0.10: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.0.0, glob@^7.0.4, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.2.3: +glob@^7.0.4, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.2.3: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -19478,11 +19589,6 @@ internal-slot@^1.0.3, internal-slot@^1.1.0: hasown "^2.0.2" side-channel "^1.1.0" -interpret@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" - integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== - interpret@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-2.2.0.tgz#1a78a0b5965c40a5416d007ad6f50ad27c417df9" @@ -21568,6 +21674,13 @@ magic-string@^0.30.0, magic-string@^0.30.10, magic-string@^0.30.11, magic-string dependencies: "@jridgewell/sourcemap-codec" "^1.5.5" +magic-string@^0.30.21: + version "0.30.21" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.21.tgz#56763ec09a0fa8091df27879fd94d19078c00d91" + integrity sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ== + dependencies: + "@jridgewell/sourcemap-codec" "^1.5.5" + magicast@^0.2.10: version "0.2.11" resolved "https://registry.yarnpkg.com/magicast/-/magicast-0.2.11.tgz#d5d9339ec59e5322cf331460d8e3db2f6585f5d5" @@ -24046,6 +24159,11 @@ obuf@^1.0.0, obuf@^1.1.2: resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg== +obug@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/obug/-/obug-2.1.1.tgz#2cba74ff241beb77d63055ddf4cd1e9f90b538be" + integrity sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ== + ofetch@^1.3.4, ofetch@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/ofetch/-/ofetch-1.4.1.tgz#b6bf6b0d75ba616cef6519dd8b6385a8bae480ec" @@ -26564,13 +26682,6 @@ recast@^0.20.5: source-map "~0.6.1" tslib "^2.0.1" -rechoir@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" - integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q= - dependencies: - resolve "^1.1.6" - rechoir@^0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.8.0.tgz#49f866e0d32146142da3ad8f0eff352b3215ff22" @@ -27019,6 +27130,11 @@ resolve-pathname@^3.0.0: resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-3.0.0.tgz#99d02224d3cf263689becbb393bc560313025dcd" integrity sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng== +resolve-pkg-maps@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f" + integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== + resolve-url-loader@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz#ee3142fb1f1e0d9db9524d539cfa166e9314f795" @@ -27053,7 +27169,7 @@ resolve@1.22.8: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.11.1, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.22.10, resolve@^1.22.4, resolve@^1.22.6, resolve@^1.22.8, resolve@^1.4.0, resolve@^1.5.0: +resolve@^1.1.7, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.11.1, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.22.10, resolve@^1.22.4, resolve@^1.22.6, resolve@^1.22.8, resolve@^1.4.0, resolve@^1.5.0: version "1.22.10" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.10.tgz#b663e83ffb09bbf2386944736baae803029b8b39" integrity sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w== @@ -27218,6 +27334,21 @@ roarr@^7.0.4: safe-stable-stringify "^2.4.1" semver-compare "^1.0.0" +rolldown-plugin-dts@^0.18.3: + version "0.18.3" + resolved "https://registry.yarnpkg.com/rolldown-plugin-dts/-/rolldown-plugin-dts-0.18.3.tgz#b9ff1dcb1f6f695c07f5ad263dc82b04c9becb9c" + integrity sha512-rd1LZ0Awwfyn89UndUF/HoFF4oH9a5j+2ZeuKSJYM80vmeN/p0gslYMnHTQHBEXPhUlvAlqGA3tVgXB/1qFNDg== + dependencies: + "@babel/generator" "^7.28.5" + "@babel/parser" "^7.28.5" + "@babel/types" "^7.28.5" + ast-kit "^2.2.0" + birpc "^3.0.0" + dts-resolver "^2.1.3" + get-tsconfig "^4.13.0" + magic-string "^0.30.21" + obug "^2.1.1" + rolldown@^1.0.0-beta.54: version "1.0.0-beta.54" resolved "https://registry.yarnpkg.com/rolldown/-/rolldown-1.0.0-beta.54.tgz#97ed4e61a71004563d2a86d39d15340021df7bfc" @@ -27912,15 +28043,6 @@ shell-quote@^1.7.3, shell-quote@^1.8.1: resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680" integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA== -shelljs@^0.8.3: - version "0.8.5" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" - integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== - dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" - shellwords@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" @@ -30034,11 +30156,6 @@ typescript@^3.9: resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== -typescript@next: - version "5.2.0-dev.20230530" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.0-dev.20230530.tgz#4251ade97a9d8a86850c4d5c3c4f3e1cb2ccf52c" - integrity sha512-bIoMajCZWzLB+pWwncaba/hZc6dRnw7x8T/fenOnP9gYQB/gc4xdm48AXp5SH5I/PvvSeZ/dXkUMtc8s8BiDZw== - typescript@~5.8.0: version "5.8.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e"