Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump the production group across 1 directory with 2 updates #206

Merged
merged 2 commits into from
Jul 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup: build
  • Loading branch information
mcous committed Jul 6, 2024
commit 24cc98d66e489b2dc9aec012b9e53912b44a181f
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
@@ -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");