Skip to content

Commit d815094

Browse files
committed
fixup! setup e2e test of launchdarkly packages
1 parent 6ea2079 commit d815094

File tree

5 files changed

+57
-31
lines changed

5 files changed

+57
-31
lines changed

sdk/@launchdarkly/observability/package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,9 @@
3838
"vitest": "^3.1.2"
3939
},
4040
"type": "module",
41-
"main": "./dist/index.js",
42-
"module": "./dist/index.js",
43-
"unpkg": "./dist/index.umd.js",
44-
"jsdelivr": "./dist/index.umd.js",
41+
"main": "./dist/observability.js",
42+
"module": "./dist/observability.js",
4543
"types": "./dist/index.d.ts",
46-
"exports": {
47-
"types": "./dist/index.d.ts",
48-
"unpkg": "./dist/index.umd.js",
49-
"jsdelivr": "./dist/index.umd.js",
50-
"import": "./dist/index.js",
51-
"require": "./dist/index.js",
52-
"default": "./dist/index.js"
53-
},
5444
"files": [
5545
"dist"
5646
],
Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
{
2-
"extends": "../../highlight-run/tsconfig.json",
32
"compilerOptions": {
43
"outDir": "dist",
4+
"allowJs": true,
5+
"allowSyntheticDefaultImports": true,
6+
"baseUrl": "src",
7+
"declaration": true,
8+
"declarationDir": "dist",
9+
"downlevelIteration": true,
10+
"emitDeclarationOnly": true,
11+
"esModuleInterop": true,
12+
"forceConsistentCasingInFileNames": true,
13+
"isolatedModules": true,
14+
"jsx": "react",
15+
"lib": ["dom", "dom.iterable", "esnext"],
16+
"module": "esnext",
17+
"moduleResolution": "node",
18+
"resolveJsonModule": true,
19+
"skipLibCheck": true,
20+
"target": "ESNext",
21+
"rootDir": "src",
22+
"types": ["@types/chrome", "@types/node", "vitest/globals"],
23+
/* Linting */
24+
"strict": true,
25+
"noUnusedLocals": true,
26+
"noFallthroughCasesInSwitch": true
527
},
6-
"include": "src",
28+
"include": ["src"],
729
"exclude": ["**/src/**/*.test.tsx"],
8-
}
30+
"files": ["package.json"]
31+
}

sdk/@launchdarkly/session-replay/package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,9 @@
3535
"vitest": "^3.1.2"
3636
},
3737
"type": "module",
38-
"main": "./dist/index.js",
39-
"module": "./dist/index.js",
40-
"unpkg": "./dist/index.umd.js",
41-
"jsdelivr": "./dist/index.umd.js",
38+
"main": "./dist/session-replay.js",
39+
"module": "./dist/session-replay.js",
4240
"types": "./dist/index.d.ts",
43-
"exports": {
44-
"types": "./dist/index.d.ts",
45-
"unpkg": "./dist/index.umd.js",
46-
"jsdelivr": "./dist/index.umd.js",
47-
"import": "./dist/index.js",
48-
"require": "./dist/index.js",
49-
"default": "./dist/index.js"
50-
},
5141
"files": [
5242
"dist"
5343
],
Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
{
2-
"extends": "../../highlight-run/tsconfig.json",
32
"compilerOptions": {
43
"outDir": "dist",
4+
"allowJs": true,
5+
"allowSyntheticDefaultImports": true,
6+
"baseUrl": "src",
7+
"declaration": true,
8+
"declarationDir": "dist",
9+
"downlevelIteration": true,
10+
"emitDeclarationOnly": true,
11+
"esModuleInterop": true,
12+
"forceConsistentCasingInFileNames": true,
13+
"isolatedModules": true,
14+
"jsx": "react",
15+
"lib": ["dom", "dom.iterable", "esnext"],
16+
"module": "esnext",
17+
"moduleResolution": "node",
18+
"resolveJsonModule": true,
19+
"skipLibCheck": true,
20+
"target": "ESNext",
21+
"rootDir": "src",
22+
"types": ["@types/chrome", "@types/node", "vitest/globals"],
23+
/* Linting */
24+
"strict": true,
25+
"noUnusedLocals": true,
26+
"noFallthroughCasesInSwitch": true
527
},
6-
"include": "src",
28+
"include": ["src"],
729
"exclude": ["**/src/**/*.test.tsx"],
8-
}
30+
"files": ["package.json"]
31+
}

sdk/highlight-run/src/client/types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export declare interface HighlightPublicInterface {
475475

476476
registerLD: (
477477
client: LDClientMin,
478-
metadata: LDPluginEnvironmentMetadata,
478+
metadata?: LDPluginEnvironmentMetadata,
479479
) => void
480480
}
481481

0 commit comments

Comments
 (0)