agora-appbuilder-core 4.0.0-spl.25 → 4.0.0-spl.27

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-appbuilder-core",
3
- "version": "4.0.0-spl.25",
3
+ "version": "4.0.0-spl.27",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -48,6 +48,8 @@ const TS_DEFS_BUILD_PATH =
48
48
  : process.env.TARGET === 'android'
49
49
  ? path.join(__dirname, '../Builds/ts-defs/android')
50
50
  : path.join(__dirname, '../Builds/ts-defs/.electron');
51
+ const GraphqlFolderName = '__generated__';
52
+ const GraphqlFolderPath = `./src/assets/${GraphqlFolderName}`;
51
53
 
52
54
  const debugFlag = process.argv.indexOf('--debug') !== -1;
53
55
 
@@ -189,6 +191,9 @@ declare module 'customization' {
189
191
  generateNpmPackage: (cb) => {
190
192
  runCli(`cd ${BUILD_PATH} && npm pack`, cb);
191
193
  },
194
+ copyGqlFiles: (cb) => {
195
+ runCli(`cp -r ${GraphqlFolderPath} ${BUILD_PATH}`, cb);
196
+ },
192
197
  };
193
198
 
194
199
  const electron = {
@@ -361,6 +366,7 @@ module.exports.reactSdk = series(
361
366
  reactSdk.generateSdkTypedefs,
362
367
  reactSdk.bundleSdkTypedefs,
363
368
  general.cleanTempFiles,
369
+ general.copyGqlFiles,
364
370
  general.generateNpmPackage,
365
371
  );
366
372