Skip to content

Commit

Permalink
fix null pointer & rebuild (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
bloep authored Dec 15, 2021
1 parent 27f0c6e commit ebe7145
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40395,7 +40395,7 @@ const archiveFilePath = cacheFile();
const packageYml = await readPackageYml(packageDir);
const packageVersion = packageYml.version;
const packageName = packageYml.package;
const packageInstallerIgnore = packageYml.installer_ignore;
const packageInstallerIgnore = packageYml.installer_ignore || [];
await zip(archiveFilePath, packageDir, packageName, packageInstallerIgnore);
const archiveMd5 = await md5_file(archiveFilePath);
core.info(`Created zip file md5: ${archiveMd5}`);
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const archiveFilePath = cacheFile();
const packageYml = await readPackageYml(packageDir);
const packageVersion = packageYml.version;
const packageName = packageYml.package;
const packageInstallerIgnore = packageYml.installer_ignore;
const packageInstallerIgnore = packageYml.installer_ignore || [];

await zip(archiveFilePath, packageDir, packageName, packageInstallerIgnore);
const archiveMd5 = await md5_file(archiveFilePath);
Expand Down
2 changes: 1 addition & 1 deletion src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import crypto from "crypto";
interface PackageYml {
package: string;
version: string;
installer_ignore: string[];
installer_ignore: string[]|null;
}

export async function readPackageYml(addonDir: string): Promise<PackageYml> {
Expand Down

0 comments on commit ebe7145

Please sign in to comment.