agora-toolchain 3.10.2 → 3.11.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-toolchain",
3
- "version": "3.10.2",
3
+ "version": "3.11.0-rc.2",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "agora-tc-transpile": "./scripts/transpile.js",
@@ -194,7 +194,7 @@ export default defineConfig(() => {
194
194
  }
195
195
 
196
196
  const external = [
197
- 'agora-electron-sdk',
197
+ 'shengwang-electron-sdk',
198
198
  'electron',
199
199
  'winston',
200
200
  'winston-daily-rotate-file',
@@ -47,7 +47,7 @@ module.exports = {
47
47
  extensions: ['.ts', '.js', '.tsx'],
48
48
  },
49
49
  externals: {
50
- 'agora-electron-sdk': 'commonjs2 agora-electron-sdk',
50
+ 'shengwang-electron-sdk': 'commonjs2 shengwang-electron-sdk',
51
51
  electron: 'commonjs2 electron',
52
52
  winston: 'commonjs2 winston',
53
53
  'node:fs': 'commonjs2 node:fs',
@@ -131,7 +131,7 @@ module.exports = createConfig = ({ entry, port = 3000, analyze }) => {
131
131
  path.join(`${process.cwd()}`.replace('\\', '\\\\'), 'node_modules'),
132
132
  );
133
133
 
134
- // add cwd to node path, so that we can require agora-electron-sdk from cwd
134
+ // add cwd to node path, so that we can require shengwang-electron-sdk from cwd
135
135
  codeAppendPlugins.push(
136
136
  new AppendCodePlugin({
137
137
  code: `
@@ -4,7 +4,7 @@ const { AppendCodePlugin } = require('../webpack-plugins/append-code-plugin');
4
4
  const baseConfig = require('./webpack.base');
5
5
 
6
6
  module.exports = createConfig = () => {
7
- // add cwd to node path, so that we can require agora-electron-sdk from cwd
7
+ // add cwd to node path, so that we can require shengwang-electron-sdk from cwd
8
8
 
9
9
  const normalizedNodeModulePath = JSON.stringify(
10
10
  path.join(`${process.cwd()}`.replace('\\', '\\\\'), 'node_modules'),
@@ -84,7 +84,7 @@ function getFilesConfig() {
84
84
  if (cpp) {
85
85
  // Native Bundle 模式:排除不需要的文件
86
86
  return [
87
- '!**/node_modules/agora-electron-sdk/**/*',
87
+ '!**/node_modules/shengwang-electron-sdk/**/*',
88
88
  '!**/artifactory_deps/**/*',
89
89
  '!**/mac-release/**/*',
90
90
  '!**/node_modules/fcr-ui-scene/release/**/*',
@@ -135,7 +135,7 @@ const options = {
135
135
  extraMetadata: {
136
136
  bundleType: cpp ? 'NATIVE_BUNDLE' : 'JS_BUNDLE',
137
137
  },
138
- asarUnpack: ['node_modules/agora-electron-sdk'],
138
+ asarUnpack: ['node_modules/shengwang-electron-sdk'],
139
139
  directories: {
140
140
  output: resolveCwd('release'),
141
141
  buildResources: resolveCwd('installer/resources'),
@@ -93,7 +93,7 @@ const builderOptions = {
93
93
  main: mainScript,
94
94
  bundleType: 'NATIVE_BUNDLE',
95
95
  },
96
- asarUnpack: ['node_modules/agora-electron-sdk'],
96
+ asarUnpack: ['node_modules/shengwang-electron-sdk'],
97
97
 
98
98
  directories: {
99
99
  output: resolveCwd('release'),