Skip to content

Commit a37c1d9

Browse files
authored
fix: Node references (#3141)
* Include github core * Fix missing methods * Reset old refernces * Remove all protected methods * Fix linter issues
1 parent 67634ec commit a37c1d9

File tree

8 files changed

+2641
-2526
lines changed

8 files changed

+2641
-2526
lines changed

packages/core/src/posthog-core-stateless.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ export abstract class PostHogCoreStateless {
290290
}
291291
}
292292

293+
/**
294+
* @internal
295+
*/
293296
public addPendingPromise<T>(promise: Promise<T>): Promise<T> {
294297
return this.promiseQueue.add(promise)
295298
}

packages/node/api-extractor.jsonc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
*
6868
* "bundledPackages": [ "@my-company/*" ],
6969
*/
70-
"bundledPackages": [],
70+
"bundledPackages": ["@posthog/core"],
7171

7272
/**
7373
* Specifies what type of newlines API Extractor should use when writing output files. By default, the output files
@@ -111,6 +111,14 @@
111111
* DEFAULT VALUE: "<projectFolder>/tsconfig.json"
112112
*/
113113
"tsconfigFilePath": "<projectFolder>/tsconfig.build.json",
114+
/**
115+
* Include DOM lib so bundled @posthog/core types (e.g. ErrorEvent) resolve when inlining.
116+
*/
117+
"overrideTsconfig": {
118+
"compilerOptions": {
119+
"lib": ["ES2023", "DOM"]
120+
}
121+
},
114122
/**
115123
* Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk.
116124
* The object must conform to the TypeScript tsconfig schema:

0 commit comments

Comments
 (0)