Skip to content

Commit 2067d79

Browse files
committed
Fix declaration file
1 parent 08d4de9 commit 2067d79

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

packages/telemetry/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"additionalEntryPoints": [
66
{
77
"modulePath": "react",
8-
"filePath": "<projectFolder>/dist/src/react/index.d.ts"
8+
"filePath": "<projectFolder>/dist/react/index.d.ts"
99
}
1010
],
1111
"bundledPackages": ["next"]

packages/telemetry/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"react": "19.1.1",
9090
"react-dom": "19.1.1",
9191
"rollup": "2.79.2",
92+
"rollup-plugin-copy": "3.5.0",
9293
"rollup-plugin-replace": "2.2.0",
9394
"rollup-plugin-typescript2": "0.36.0",
9495
"typescript": "5.5.4"

packages/telemetry/rollup.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
import json from '@rollup/plugin-json';
19+
import copy from 'rollup-plugin-copy';
1920
import typescriptPlugin from 'rollup-plugin-typescript2';
2021
import typescript from 'typescript';
2122
import pkg from './package.json';
@@ -87,7 +88,15 @@ const reactBuilds = [
8788
typescript,
8889
tsconfig: 'tsconfig.react.json'
8990
}),
90-
json()
91+
json(),
92+
copy({
93+
targets: [
94+
{
95+
src: 'dist/src/react/index.d.ts',
96+
dest: 'dist/react'
97+
}
98+
]
99+
})
91100
],
92101
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
93102
},

0 commit comments

Comments
 (0)