@sentry/bundler-plugins 11.11.0 → 11.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/build/cjs/core/build-plugin-manager.js +27 -8
  2. package/build/cjs/core/build-plugin-manager.js.map +1 -1
  3. package/build/cjs/core/index.js.map +1 -1
  4. package/build/cjs/core/upload-filter.js +57 -0
  5. package/build/cjs/core/upload-filter.js.map +1 -0
  6. package/build/cjs/core/version.js +1 -1
  7. package/build/cjs/core/version.js.map +1 -1
  8. package/build/cjs/esbuild/index.js +1 -0
  9. package/build/cjs/esbuild/index.js.map +1 -1
  10. package/build/cjs/rollup/index.js +49 -9
  11. package/build/cjs/rollup/index.js.map +1 -1
  12. package/build/cjs/rollup/source-map-handling.js +202 -0
  13. package/build/cjs/rollup/source-map-handling.js.map +1 -0
  14. package/build/cjs/vite/index.js +4 -18
  15. package/build/cjs/vite/index.js.map +1 -1
  16. package/build/cjs/vite/source-map-hooks.js +93 -0
  17. package/build/cjs/vite/source-map-hooks.js.map +1 -0
  18. package/build/cjs/webpack/index.js +113 -1
  19. package/build/cjs/webpack/index.js.map +1 -1
  20. package/build/esm/core/build-plugin-manager.js +27 -8
  21. package/build/esm/core/build-plugin-manager.js.map +1 -1
  22. package/build/esm/core/index.js.map +1 -1
  23. package/build/esm/core/upload-filter.js +41 -0
  24. package/build/esm/core/upload-filter.js.map +1 -0
  25. package/build/esm/core/version.js +1 -1
  26. package/build/esm/core/version.js.map +1 -1
  27. package/build/esm/esbuild/index.js +1 -0
  28. package/build/esm/esbuild/index.js.map +1 -1
  29. package/build/esm/package.json +1 -1
  30. package/build/esm/rollup/index.js +49 -10
  31. package/build/esm/rollup/index.js.map +1 -1
  32. package/build/esm/rollup/source-map-handling.js +183 -0
  33. package/build/esm/rollup/source-map-handling.js.map +1 -0
  34. package/build/esm/vite/index.js +5 -19
  35. package/build/esm/vite/index.js.map +1 -1
  36. package/build/esm/vite/source-map-hooks.js +77 -0
  37. package/build/esm/vite/source-map-hooks.js.map +1 -0
  38. package/build/esm/webpack/index.js +114 -2
  39. package/build/esm/webpack/index.js.map +1 -1
  40. package/build/types/core/build-plugin-manager.d.ts +17 -5
  41. package/build/types/core/build-plugin-manager.d.ts.map +1 -1
  42. package/build/types/core/index.d.ts +1 -0
  43. package/build/types/core/index.d.ts.map +1 -1
  44. package/build/types/core/types.d.ts +7 -0
  45. package/build/types/core/types.d.ts.map +1 -1
  46. package/build/types/core/upload-filter.d.ts +9 -0
  47. package/build/types/core/upload-filter.d.ts.map +1 -0
  48. package/build/types/core/version.d.ts +1 -1
  49. package/build/types/esbuild/index.d.ts.map +1 -1
  50. package/build/types/rollup/index.d.ts +106 -6
  51. package/build/types/rollup/index.d.ts.map +1 -1
  52. package/build/types/rollup/source-map-handling.d.ts +59 -0
  53. package/build/types/rollup/source-map-handling.d.ts.map +1 -0
  54. package/build/types/vite/index.d.ts +1 -5
  55. package/build/types/vite/index.d.ts.map +1 -1
  56. package/build/types/vite/source-map-hooks.d.ts +45 -0
  57. package/build/types/vite/source-map-hooks.d.ts.map +1 -0
  58. package/build/types/webpack/index.d.ts.map +1 -1
  59. package/package.json +40 -38
@@ -0,0 +1,59 @@
1
+ import type { SentryBuildPluginManager, SourceMapDecision, SourceMapKind, UploadStaging } from '../core';
2
+ import type { OutputBundle } from './debug-id-stamping';
3
+ export type RollupSourceMapSetting = boolean | 'inline' | 'hidden' | undefined;
4
+ export type OutputDestinationOptions = {
5
+ dir?: string;
6
+ file?: string;
7
+ };
8
+ /**
9
+ * The output options that tell outputs of one directory apart. Several outputs can write into the
10
+ * same directory at once, for example an ES and a CJS build, each with its own `sourcemap` setting.
11
+ * `sourcemap` holds the setting as the plugin left it, so an output it switched to hidden maps
12
+ * differs from one the user set.
13
+ */
14
+ export type OutputMatch = {
15
+ dir?: unknown;
16
+ file?: unknown;
17
+ format?: unknown;
18
+ entryFileNames?: unknown;
19
+ chunkFileNames?: unknown;
20
+ preserveModules?: unknown;
21
+ sourcemap?: unknown;
22
+ };
23
+ export type OutputOptions = OutputDestinationOptions & OutputMatch & {
24
+ sourcemap?: RollupSourceMapSetting;
25
+ };
26
+ /** Maps Rollup's (and Vite's) `sourcemap` setting onto the plugin's source map kinds. */
27
+ export declare function sourceMapKindFromRollupSetting(setting: RollupSourceMapSetting): SourceMapKind;
28
+ /** The directory an output writes to. Decisions and stagings are keyed by it. */
29
+ export declare function getOutputDestination(outputOptions: OutputDestinationOptions): string;
30
+ /** The fields of `OutputMatch` an output sets, in the form the normalized options carry them. */
31
+ export declare function getOutputMatch(outputOptions: OutputMatch): OutputMatch;
32
+ export type DecisionRecord = {
33
+ match: OutputMatch;
34
+ kind: SourceMapKind;
35
+ decision: SourceMapDecision;
36
+ };
37
+ export type SourceMapHandling = {
38
+ /** Rollup's `outputOptions` hook: decides for the output and switches it to hidden source maps when needed. */
39
+ outputOptions: (rawOutputOptions: OutputOptions) => OutputOptions | null;
40
+ /** Records the decision for an output, for bundlers that decide outside `outputOptions`. */
41
+ setDecision: (destination: string, record: DecisionRecord) => void;
42
+ /**
43
+ * `generateBundle` with `order: 'post'`: copies each chunk and its source map into a staging folder
44
+ * and drops the map asset from the bundle, so the bundler never writes it.
45
+ */
46
+ stageSourceMaps: (outputOptions: OutputOptions, bundle: OutputBundle, isWrite?: boolean) => Promise<void>;
47
+ /**
48
+ * Hands the staging of this bundle to `writeBundle`. Without a bundle (SvelteKit calls the hook
49
+ * with output options only) the oldest staging is taken.
50
+ */
51
+ takeStaging: (outputOptions: OutputDestinationOptions, bundle: OutputBundle | undefined) => Promise<UploadStaging | undefined>;
52
+ };
53
+ /**
54
+ * Source map decisions and upload stagings of one plugin instance. Keyed by output destination
55
+ * because one instance can serve several outputs, and watch mode or several `write()` calls
56
+ * rebuild the same one. Outputs that share a directory are told apart by `OutputMatch`.
57
+ */
58
+ export declare function createSourceMapHandling(sentryBuildPluginManager: SentryBuildPluginManager): SourceMapHandling;
59
+ //# sourceMappingURL=source-map-handling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-map-handling.d.ts","sourceRoot":"","sources":["../../../src/rollup/source-map-handling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEzG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/E,MAAM,MAAM,wBAAwB,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,wBAAwB,GAAG,WAAW,GAAG;IAAE,SAAS,CAAC,EAAE,sBAAsB,CAAA;CAAE,CAAC;AAE5G,yFAAyF;AACzF,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,sBAAsB,GAAG,aAAa,CAW7F;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,wBAAwB,GAAG,MAAM,CAEpF;AA2BD,iGAAiG;AACjG,wBAAgB,cAAc,CAAC,aAAa,EAAE,WAAW,GAAG,WAAW,CAWtE;AAmCD,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAEtG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,+GAA+G;IAC/G,aAAa,EAAE,CAAC,gBAAgB,EAAE,aAAa,KAAK,aAAa,GAAG,IAAI,CAAC;IACzE,4FAA4F;IAC5F,WAAW,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IACnE;;;OAGG;IACH,eAAe,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1G;;;OAGG;IACH,WAAW,EAAE,CACX,aAAa,EAAE,wBAAwB,EACvC,MAAM,EAAE,YAAY,GAAG,SAAS,KAC7B,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAAC;CACzC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,wBAAwB,EAAE,wBAAwB,GAAG,iBAAiB,CA8I7G"}
@@ -1,12 +1,8 @@
1
1
  import type { SentryRollupPluginOptions } from '../rollup';
2
- import { type OutputBundle } from '../rollup/debug-id-stamping';
3
2
  interface SentryVitePlugin {
4
3
  name: string;
5
4
  enforce: 'pre' | 'post';
6
- generateBundle?: {
7
- order: 'pre' | 'post';
8
- handler: (_outputOptions: unknown, bundle: OutputBundle) => void;
9
- };
5
+ [hook: string]: unknown;
10
6
  }
11
7
  export declare const sentryVitePlugin: (options?: SentryRollupPluginOptions) => SentryVitePlugin[];
12
8
  export type { Options as SentryVitePluginOptions } from '../core';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAG3D,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE/E,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;QACtB,OAAO,EAAE,CAAC,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;KAClE,CAAC;CACH;AAgBD,eAAO,MAAM,gBAAgB,aAAc,yBAAyB,KAAG,gBAAgB,EAyBtF,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAI3D,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAgBD,eAAO,MAAM,gBAAgB,aAAc,yBAAyB,KAAG,gBAAgB,EAUtF,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { SentryBuildPluginManager } from '../core';
2
+ import type { OutputMatch, RollupSourceMapSetting, SourceMapHandling } from '../rollup/source-map-handling';
3
+ type BundlerOutput = OutputMatch & {
4
+ dir?: string;
5
+ sourcemap?: RollupSourceMapSetting;
6
+ };
7
+ type BundlerOutputOptions = BundlerOutput | BundlerOutput[] | undefined;
8
+ type ViteBuildOptions = {
9
+ sourcemap?: RollupSourceMapSetting;
10
+ outDir?: string;
11
+ rollupOptions?: {
12
+ output?: BundlerOutputOptions;
13
+ };
14
+ rolldownOptions?: {
15
+ output?: BundlerOutputOptions;
16
+ };
17
+ };
18
+ export type ViteUserConfig = {
19
+ build?: ViteBuildOptions;
20
+ environments?: Record<string, {
21
+ build?: ViteBuildOptions;
22
+ } | undefined>;
23
+ };
24
+ export type ViteResolvedConfig = {
25
+ root: string;
26
+ build: ViteBuildOptions;
27
+ environments?: Record<string, {
28
+ build: ViteBuildOptions;
29
+ }>;
30
+ };
31
+ export type ViteSourceMapHooks = {
32
+ config: (userConfig: ViteUserConfig, env: {
33
+ command: string;
34
+ }) => ViteUserConfig | null;
35
+ configResolved: (config: ViteResolvedConfig) => void;
36
+ };
37
+ /**
38
+ * Vite warns about `rollupOptions.output.sourcemap`, so the Vite plugin decides on `build.sourcemap`
39
+ * in a `config` hook. The hook belongs on the post plugin: framework plugins that set
40
+ * `build.sourcemap` themselves run first, and the decision sees the merged setting. The output
41
+ * directories are only known in `configResolved`, which then records the decision for each of them.
42
+ */
43
+ export declare function createViteSourceMapHooks(sentryBuildPluginManager: SentryBuildPluginManager, sourceMapHandling: SourceMapHandling): ViteSourceMapHooks;
44
+ export {};
45
+ //# sourceMappingURL=source-map-hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-map-hooks.d.ts","sourceRoot":"","sources":["../../../src/vite/source-map-hooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAoC,MAAM,SAAS,CAAC;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAG5G,KAAK,aAAa,GAAG,WAAW,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,sBAAsB,CAAA;CAAE,CAAC;AACxF,KAAK,oBAAoB,GAAG,aAAa,GAAG,aAAa,EAAE,GAAG,SAAS,CAAC;AAExE,KAAK,gBAAgB,GAAG;IACtB,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAAC;IAClD,eAAe,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,gBAAgB,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE,CAAC,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,GAAG,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,cAAc,GAAG,IAAI,CAAC;IACxF,cAAc,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACtD,CAAC;AAiCF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,wBAAwB,EAAE,wBAAwB,EAClD,iBAAiB,EAAE,iBAAiB,GACnC,kBAAkB,CA2EpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/webpack/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAoY7C,eAAO,MAAM,mBAAmB,EAAE,CAAC,OAAO,CAAC,EAAE,0BAA0B,KAAK,GAA+B,CAAC;AAE5G,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG;IACjD,YAAY,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;QACvC;;;;;;;WAOG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/webpack/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAmD,MAAM,eAAe,CAAC;AA6iB9F,eAAO,MAAM,mBAAmB,EAAE,CAAC,OAAO,CAAC,EAAE,0BAA0B,KAAK,GAA+B,CAAC;AAE5G,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG;IACjD,YAAY,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;QACvC;;;;;;;WAOG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC;CACH,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@sentry/bundler-plugins",
3
- "version": "11.11.0",
3
+ "version": "11.12.0",
4
4
  "description": "Sentry Bundler Plugins",
5
- "repository": "git://github.com/getsentry/sentry-javascript.git",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/getsentry/sentry-javascript.git"
8
+ },
6
9
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/main/packages/bundler-plugins",
7
10
  "author": "Sentry",
8
11
  "license": "MIT",
@@ -71,33 +74,6 @@
71
74
  "require": "./build/cjs/webpack/component-annotation-transform.js"
72
75
  }
73
76
  },
74
- "scripts": {
75
- "build": "run-p build:transpile build:types",
76
- "build:dev": "pnpm run build",
77
- "build:version": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/core/version.ts",
78
- "build:transpile": "rollup -c rollup.npm.config.mjs",
79
- "build:types": "tsc -p tsconfig.types.json",
80
- "build:watch": "run-p build:transpile:watch",
81
- "build:dev:watch": "pnpm run build:watch",
82
- "build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
83
- "build:tarball": "npm pack",
84
- "prebuild": "pnpm run build:version",
85
- "precheck:types": "pnpm run build:version",
86
- "prelint:types": "pnpm run build:version",
87
- "pretest": "pnpm run build:version",
88
- "pretest:unit": "pnpm run build:version",
89
- "check:types": "run-p check:types:src check:types:test",
90
- "check:types:src": "tsc --project ./tsconfig.json --noEmit",
91
- "check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
92
- "clean": "rimraf build dist coverage sentry-bundler-plugins-*.tgz",
93
- "clean:all": "run-p clean clean:deps",
94
- "clean:deps": "rimraf node_modules",
95
- "lint": "oxlint . --type-aware",
96
- "lint:types": "oxlint src --type-aware --type-check",
97
- "lint:fix": "oxlint . --fix --type-aware",
98
- "test": "vitest run",
99
- "test:unit": "vitest run"
100
- },
101
77
  "nx": {
102
78
  "targets": {
103
79
  "build:transpile": {
@@ -115,13 +91,12 @@
115
91
  }
116
92
  },
117
93
  "dependencies": {
118
- "@sentry/core": "11.11.0",
94
+ "@sentry/core": "11.12.0",
119
95
  "dotenv": "^17.4.2",
120
96
  "glob": "^14.0.3",
121
97
  "magic-string": "~0.30.8 || ^1.0.0",
122
98
  "oxc-parser": "^0.152.0",
123
- "sentry": "^0.45.0",
124
- "supports-color": "^8.1.1"
99
+ "sentry": "^0.49.0"
125
100
  },
126
101
  "peerDependencies": {
127
102
  "rollup": ">=3.2.0",
@@ -139,13 +114,13 @@
139
114
  "@babel/core": "^7.18.5",
140
115
  "@babel/parser": "^8.0.10",
141
116
  "@babel/preset-react": "^7.23.3",
142
- "@sentry-internal/rollup-utils": "11.11.0",
143
- "@sentry-internal/test-utils": "11.11.0",
117
+ "@sentry-internal/rollup-utils": "11.12.0",
118
+ "@sentry-internal/test-utils": "11.12.0",
144
119
  "@types/babel__core": "^7.20.5",
145
120
  "@types/node": "^20.19.0",
146
- "premove": "^4.0.0",
147
121
  "rolldown": "^1.0.0",
148
- "vitest": "^4.1.11",
122
+ "vite": "^8.3.6",
123
+ "vitest": "^4.1.12",
149
124
  "webpack": "5.112.2"
150
125
  },
151
126
  "engines": {
@@ -154,5 +129,32 @@
154
129
  "sideEffects": [
155
130
  "./sentry-release-injection-file.js",
156
131
  "./sentry-esbuild-debugid-injection-file.js"
157
- ]
158
- }
132
+ ],
133
+ "scripts": {
134
+ "build": "run-p build:transpile build:types",
135
+ "build:dev": "pnpm run build",
136
+ "build:version": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/core/version.ts",
137
+ "build:transpile": "rollup -c rollup.npm.config.mjs",
138
+ "build:types": "tsc -p tsconfig.types.json",
139
+ "build:watch": "run-p build:transpile:watch",
140
+ "build:dev:watch": "pnpm run build:watch",
141
+ "build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
142
+ "build:tarball": "pnpm pack",
143
+ "prebuild": "pnpm run build:version",
144
+ "precheck:types": "pnpm run build:version",
145
+ "prelint:types": "pnpm run build:version",
146
+ "pretest": "pnpm run build:version",
147
+ "pretest:unit": "pnpm run build:version",
148
+ "check:types": "run-p check:types:src check:types:test",
149
+ "check:types:src": "tsc --project ./tsconfig.json --noEmit",
150
+ "check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
151
+ "clean": "node ../../scripts/rm.mjs build dist coverage sentry-bundler-plugins-*.tgz",
152
+ "clean:all": "run-p clean clean:deps",
153
+ "clean:deps": "node ../../scripts/rm.mjs node_modules",
154
+ "lint": "oxlint . --type-aware",
155
+ "lint:types": "oxlint src --type-aware --type-check",
156
+ "lint:fix": "oxlint . --fix --type-aware",
157
+ "test": "vitest run",
158
+ "test:unit": "vitest run"
159
+ }
160
+ }