fix: migrate segment subscribers + typescript support (#5904)

Fixes #6068.

**What**

- Uses new Subscriber API.
- Adds support for typescript files in Segment plugin.
- Adds a peerDependency on @medusajs/medusa for the version that introduced new Subscriber API.
This commit is contained in:
Sebastian Rindom
2024-01-18 09:38:33 +00:00
committed by GitHub
parent 130c641e5c
commit 5cfb662ec0
19 changed files with 536 additions and 531 deletions
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"inlineSourceMap": true /* Emit a single file with source maps instead of having a separate file. */
},
"exclude": ["src/admin", "**/*.spec.js"]
}