Files generated from https://github.com/Huawei-Edinburgh-Programming-Languages/idlize
Set the environment variable IDLIZE_HOME to the IDLize home directory.
IDLIZE_HOME=~/idlize
Generate components/peers/bridge using IDLize. E.g. npm run all:subset:cj to generate files for the cangjie-subset-idl set of .d.ts files.
Copy the files into the respective folder of the current repository. Excute the following command in the root directory of the repository, replacing cangjie-subset-idl by the respective folder.
rm -rf cangjie-subset-idl
rm -rf external
mkdir -p cangjie-subset-idl
mkdir -p external/incremental-cj/runtime
mkdir -p external/interop/src/cangjie
cp -r $IDLIZE_HOME/arkgen/cjpm.toml cangjie-subset-idl
cp -r $IDLIZE_HOME/arkgen/out cangjie-subset-idl
cp -r $IDLIZE_HOME/arkgen/native/ cangjie-subset-idl
cp -r $IDLIZE_HOME/external/incremental-cj/runtime external/incremental-cj/
cp -r $IDLIZE_HOME/external/interop/src/cangjie external/interop/src/