Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #269 from SuperViz/chore/build-config
Browse files Browse the repository at this point in the history
chore: build config
  • Loading branch information
carlossantos74 authored Jul 19, 2023
2 parents d7e17c9 + 2477c89 commit 8ff2d54
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .esbuild/config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
require('dotenv').config();

const entries = Object.entries(process.env).filter((key) => key[0].startsWith('SDK_'));
const env = Object.fromEntries(entries);

module.exports = {
entryPoints: ['./src/index.ts'],
entryPoints: [
'./src/index.ts',
'./src/core/index.ts',
'./src/components/index.ts',
'./src/web-components/index.ts',
],
bundle: true,
target: 'es6',
format: 'esm',
outfile: './dist/index.js',
outdir: './dist',
define: {
'process.env': JSON.stringify(env),
},
Expand Down
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
1 change: 1 addition & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
4 changes: 0 additions & 4 deletions src/services/communicator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import { VideoFrameState, VideoManagerOptions } from '../video-conference-manage

import { SuperVizSdk, CommunicatorOptions, PluginOptions, ParticipandToFrame } from './types';

const PACKAGE_JSON = require('../../../package.json');

class Communicator {
private readonly realtime: AblyRealtimeService;
private readonly connectionService: ConnectionService;
Expand Down Expand Up @@ -163,8 +161,6 @@ class Communicator {
}

public start() {
// log sdk version
logger.log('SUPERVIZ SDK VERSION', PACKAGE_JSON.version);
this.videoManager.start({
roomId: this.roomId,
participant: this.participant,
Expand Down
1 change: 1 addition & 0 deletions src/web-components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};

0 comments on commit 8ff2d54

Please sign in to comment.