Skip to content

Commit

Permalink
fixup: build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Jul 6, 2024
1 parent 4160c07 commit 24cc98d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 28 deletions.
21 changes: 11 additions & 10 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/main.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/read-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ const readPackageJson = async (...pathSegments: string[]): Promise<string> => {

const readTarballPackageJson = async (file: string): Promise<string> => {
const data: Buffer[] = [];
const onentry = (entry: ReadEntry) => {
const onReadEntry = (entry: ReadEntry) => {
if (entry.path === "package/package.json") {
entry.on("data", (chunk) => data.push(chunk));
}
};

try {
await tarList({ file, onentry });
await tarList({ file, onReadEntry });

if (data.length === 0) {
throw new Error("package.json not found inside archive");
Expand Down

0 comments on commit 24cc98d

Please sign in to comment.