Skip to content

Commit

Permalink
fix: add missing exports from packages (#2920)
Browse files Browse the repository at this point in the history
Co-authored-by: Erick Zhao <erick@hotmail.ca>
  • Loading branch information
clavin and erickzhao authored Jul 21, 2022
1 parent 4dcca1c commit 460546b
Show file tree
Hide file tree
Showing 28 changed files with 56 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"sinon-chai": "^3.6.0",
"ts-node": "^10.0.0",
"typedoc": "^0.22.15",
"typedoc-plugin-rename-defaults": "^0.6.4",
"typescript": "^4.6.3",
"xvfb-maybe": "^0.2.1"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/api/core/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ const utils = new ForgeUtils();

export {
ForgeMakeResult,
ElectronProcess,
ForgeUtils,
ImportOptions,
InitOptions,
InstallAsset,
Expand Down
2 changes: 2 additions & 0 deletions packages/installer/deb/src/InstallerDeb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export default class InstallerDeb extends InstallerLinux {
await this.sudo('Debian', 'gdebi', `-n ${filePath}`);
}
}

export { InstallerOptions };
2 changes: 2 additions & 0 deletions packages/installer/dmg/src/InstallerDMG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ export default class InstallerDMG extends InstallerDarwin {
}
}
}

export { InstallerOptions };
2 changes: 2 additions & 0 deletions packages/installer/exe/src/InstallerExe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ export default class InstallerExe extends InstallerBase {
await open(filePath, { wait: false });
}
}

export { InstallerOptions };
2 changes: 2 additions & 0 deletions packages/installer/rpm/src/InstallerRpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export default class InstallerRpm extends InstallerLinux {
await this.sudo('RPM', 'dnf', `--assumeyes --nogpgcheck install ${filePath}`);
}
}

export { InstallerOptions };
2 changes: 2 additions & 0 deletions packages/installer/zip/src/InstallerZip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ export default class InstallerZip extends InstallerDarwin {
await spawn('open', ['-R', targetApplicationPath], { detached: true });
}
}

export { InstallerOptions };
2 changes: 2 additions & 0 deletions packages/maker/appx/src/MakerAppX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,5 @@ export default class MakerAppX extends MakerBase<MakerAppXConfig> {
return [path.resolve(outPath, `${opts.packageName}.appx`)];
}
}

export { MakerAppXConfig };
2 changes: 2 additions & 0 deletions packages/maker/deb/src/MakerDeb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ export default class MakerDeb extends MakerBase<MakerDebConfig> {
return packagePaths;
}
}

export { MakerDebConfig };
2 changes: 2 additions & 0 deletions packages/maker/dmg/src/MakerDMG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ export default class MakerDMG extends MakerBase<MakerDMGConfig> {
return [opts.dmgPath];
}
}

export { MakerDMGConfig };
2 changes: 2 additions & 0 deletions packages/maker/flatpak/src/MakerFlatpak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ export default class MakerFlatpak extends MakerBase<MakerFlatpakConfig> {
return (await fs.readdir(outDir)).filter((basename) => basename.endsWith('.flatpak')).map((basename) => path.join(outDir, basename));
}
}

export { MakerFlatpak };
2 changes: 2 additions & 0 deletions packages/maker/pkg/src/MakerPKG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ export default class MakerDMG extends MakerBase<MakerPKGConfig> {
return [outPath];
}
}

export { MakerPKGConfig };
2 changes: 2 additions & 0 deletions packages/maker/rpm/src/MakerRpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ export default class MakerRpm extends MakerBase<MakerRpmConfig> {
return packagePaths;
}
}

export { MakerRpmConfig };
2 changes: 2 additions & 0 deletions packages/maker/snap/src/MakerSnap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export default class MakerSnap extends MakerBase<MakerSnapConfig> {
return [await installer(snapConfig)];
}
}

export { MakerSnapConfig };
2 changes: 1 addition & 1 deletion packages/maker/squirrel/src/MakerSquirrel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { convertVersion, createWindowsInstaller, Options as ElectronWinstallerOp
import fs from 'fs-extra';
import path from 'path';

type MakerSquirrelConfig = Omit<ElectronWinstallerOptions, 'appDirectory' | 'outputDirectory'>;
export type MakerSquirrelConfig = Omit<ElectronWinstallerOptions, 'appDirectory' | 'outputDirectory'>;

export default class MakerSquirrel extends MakerBase<MakerSquirrelConfig> {
name = 'squirrel';
Expand Down
2 changes: 2 additions & 0 deletions packages/maker/wix/src/MakerWix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ export default class MakerWix extends MakerBase<MakerWixConfig> {
return [msiFile];
}
}

export { MakerWixConfig };
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export default class AutoUnpackNativesPlugin extends PluginBase<AutoUnpackNative
return forgeConfig;
};
}

export { AutoUnpackNativesConfig };
2 changes: 2 additions & 0 deletions packages/plugin/compile/src/CompilePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export default class LocalElectronPlugin extends PluginBase<CompilePluginConfig>
return [process.execPath, path.resolve(this.dir, 'node_modules/electron-prebuilt-compile/lib/cli')];
}
}

export { CompilePluginConfig };
2 changes: 2 additions & 0 deletions packages/plugin/local-electron/src/LocalElectronPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ export default class LocalElectronPlugin extends PluginBase<LocalElectronPluginC
await fs.copy(this.config.electronPath, buildPath);
};
}

export { LocalElectronPluginConfig };
2 changes: 2 additions & 0 deletions packages/plugin/webpack/src/WebpackPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,5 @@ the generated files). Instead, it is ${JSON.stringify(pj.main)}`);
return false;
}
}

export { WebpackPluginConfig };
2 changes: 2 additions & 0 deletions packages/publisher/bitbucket/src/PublisherBitbucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,5 @@ export default class PublisherBitbucket extends PublisherBase<PublisherBitbucket
}
}
}

export { PublisherBitbucketConfig };
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,5 @@ export default class PublisherERS extends PublisherBase<PublisherERSConfig> {
}
}
}

export { PublisherERSConfig };
2 changes: 2 additions & 0 deletions packages/publisher/github/src/PublisherGithub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,5 @@ export default class PublisherGithub extends PublisherBase<PublisherGitHubConfig
}
}
}

export { PublisherGitHubConfig };
2 changes: 2 additions & 0 deletions packages/publisher/nucleus/src/PublisherNucleus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ export default class PublisherNucleus extends PublisherBase<PublisherNucleusConf
}
}
}

export { PublisherNucleusConfig };
2 changes: 2 additions & 0 deletions packages/publisher/s3/src/PublisherS3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ export default class PublisherS3 extends PublisherBase<PublisherS3Config> {
return undefined;
}
}

export { PublisherS3Config };
2 changes: 2 additions & 0 deletions packages/publisher/snapcraft/src/PublisherSnapcraft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ export default class PublisherSnapcraft extends PublisherBase<PublisherSnapcraft
});
}
}

export { PublisherSnapcraftConfig };
1 change: 1 addition & 0 deletions tools/gen-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import * as typedoc from 'typedoc';
excludePrivate: true,
excludeProtected: true,
hideGenerator: true,
plugin: ['typedoc-plugin-rename-defaults'],
});

const projReflection = typedocApp.convert();
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9129,6 +9129,11 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typedoc-plugin-rename-defaults@^0.6.4:
version "0.6.4"
resolved "https://registry.yarnpkg.com/typedoc-plugin-rename-defaults/-/typedoc-plugin-rename-defaults-0.6.4.tgz#8019bbfdbb4616682a0af8ecf1e8f42d053d4a40"
integrity sha512-0rAeNttAfu6ixbi1yu6d+DqNZN8SfRivj2QbnZ4zVa+5HcCPcmQrlR6WHjNzdDfpkGytiiqPTtRD6pAfW/yACg==

typedoc@^0.22.15:
version "0.22.15"
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.22.15.tgz#c6ad7ed9d017dc2c3a06c9189cb392bd8e2d8c3f"
Expand Down

0 comments on commit 460546b

Please sign in to comment.