Skip to content

Commit dbcfc95

Browse files
Scott-Meyerclaude
andcommitted
revert(published): keep source-mapped "." export for bundler plugins
The exports rewrite in 8f0b64f was unrelated scope creep for this PR and broke in-repo TypeScript resolution (tests import these packages and resolved to a missing dist/*.d.ts), causing Linting/Unit tests to fail in CI. This PR only needs to add the @datadog/apps-backend runtime wiring in backend/shared.ts and backend/virtual-entry.ts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent c5998ff commit dbcfc95

5 files changed

Lines changed: 17 additions & 30 deletions

File tree

packages/published/esbuild-plugin/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@
2222
"module": "./dist/src/index.mjs",
2323
"types": "./dist/src/index.d.ts",
2424
"exports": {
25-
"./package.json": "./package.json",
26-
".": {
27-
"import": "./dist/src/index.mjs",
28-
"require": "./dist/src/index.js",
29-
"types": "./dist/src/index.d.ts"
30-
}
25+
"./dist/src": "./dist/src/index.js",
26+
"./dist/src/*": "./dist/src/*",
27+
".": "./src/index.ts"
3128
},
3229
"publishConfig": {
3330
"access": "public",

packages/published/rollup-plugin/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@
2222
"module": "./dist/src/index.mjs",
2323
"types": "./dist/src/index.d.ts",
2424
"exports": {
25-
"./package.json": "./package.json",
26-
".": {
27-
"import": "./dist/src/index.mjs",
28-
"require": "./dist/src/index.js",
29-
"types": "./dist/src/index.d.ts"
30-
}
25+
"./dist/src": "./dist/src/index.js",
26+
"./dist/src/*": "./dist/src/*",
27+
"./dist-basic/src": "./dist-basic/src/index.js",
28+
"./dist-basic/src/*": "./dist-basic/src/*",
29+
".": "./src/index.ts"
3130
},
3231
"publishConfig": {
3332
"access": "public",

packages/published/rspack-plugin/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@
2222
"module": "./dist/src/index.mjs",
2323
"types": "./dist/src/index.d.ts",
2424
"exports": {
25-
"./package.json": "./package.json",
26-
".": {
27-
"import": "./dist/src/index.mjs",
28-
"require": "./dist/src/index.js",
29-
"types": "./dist/src/index.d.ts"
30-
}
25+
"./dist/src": "./dist/src/index.js",
26+
"./dist/src/*": "./dist/src/*",
27+
".": "./src/index.ts"
3128
},
3229
"publishConfig": {
3330
"access": "public",

packages/published/vite-plugin/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@
2222
"module": "./dist/src/index.mjs",
2323
"types": "./dist/src/index.d.ts",
2424
"exports": {
25-
"./package.json": "./package.json",
26-
".": {
27-
"import": "./dist/src/index.mjs",
28-
"require": "./dist/src/index.js",
29-
"types": "./dist/src/index.d.ts"
30-
}
25+
"./dist/src": "./dist/src/index.js",
26+
"./dist/src/*": "./dist/src/*",
27+
".": "./src/index.ts"
3128
},
3229
"publishConfig": {
3330
"access": "public",

packages/published/webpack-plugin/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@
2222
"module": "./dist/src/index.mjs",
2323
"types": "./dist/src/index.d.ts",
2424
"exports": {
25-
"./package.json": "./package.json",
26-
".": {
27-
"import": "./dist/src/index.mjs",
28-
"require": "./dist/src/index.js",
29-
"types": "./dist/src/index.d.ts"
30-
}
25+
"./dist/src": "./dist/src/index.js",
26+
"./dist/src/*": "./dist/src/*",
27+
".": "./src/index.ts"
3128
},
3229
"publishConfig": {
3330
"access": "public",

0 commit comments

Comments
 (0)