move sdk packages to its own folder and rename api & dashboard
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/** @type {import("next").NextConfig} */
|
||||
const config = {
|
||||
reactStrictMode: false,
|
||||
transpilePackages: ['@mixan/sdk', '@mixan/web-sdk', '@mixan/next'],
|
||||
transpilePackages: ['@mixan/sdk', '@mixan/web', '@mixan/nextjs'],
|
||||
eslint: { ignoreDuringBuilds: true },
|
||||
typescript: { ignoreBuildErrors: true },
|
||||
/**
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mixan-test/next": "workspace:@mixan/next@*",
|
||||
"@mixan-test/nextjs": "workspace:@mixan/nextjs@*",
|
||||
"@mixan-test/sdk": "workspace:@mixan/sdk@*",
|
||||
"@mixan-test/sdk-web": "workspace:@mixan/sdk-web@*",
|
||||
"@mixan-test/web": "workspace:@mixan/web@*",
|
||||
"next": "~14.1.0",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// import { MixanWeb } from '@mixan-test/sdk-web';
|
||||
// import { MixanWeb } from '@mixan-test/web';
|
||||
|
||||
// export const mixan = new MixanWeb({
|
||||
// verbose: true,
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { OpenpanelProvider, SetProfileId, trackEvent } from '@mixan-test/next';
|
||||
import {
|
||||
OpenpanelProvider,
|
||||
SetProfileId,
|
||||
trackEvent,
|
||||
} from '@mixan-test/nextjs';
|
||||
import { Mixan as Openpanel } from '@mixan-test/sdk';
|
||||
|
||||
const opServer = new Openpanel({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OpenpanelProvider } from '@mixan-test/next';
|
||||
import { OpenpanelProvider } from '@mixan-test/nextjs';
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OpenpanelProvider } from '@mixan-test/next';
|
||||
import { OpenpanelProvider } from '@mixan-test/nextjs';
|
||||
import type { AppProps } from 'next/app';
|
||||
|
||||
export default function MyApp({ Component, pageProps }: AppProps) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
increment,
|
||||
setProfile,
|
||||
trackEvent,
|
||||
} from '@mixan-test/next';
|
||||
} from '@mixan-test/nextjs';
|
||||
import Link from 'next/link';
|
||||
|
||||
export default function Test() {
|
||||
|
||||
Reference in New Issue
Block a user