Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ crawlee_storage
storage
.turbo
test/e2e/**/packages
test/e2e/**/.actorignore

.yarn

Expand Down
3 changes: 3 additions & 0 deletions test/e2e/tools.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ async function copyPackages(dirName) {
const srcPackagesDir = join(dirname(fileURLToPath(import.meta.url)), '..', '..', 'packages');
const destPackagesDir = join(dirName, 'packages');
await fs.remove(destPackagesDir);
// `apify push` skips gitignored files, and the copied packages are gitignored.
await fs.writeFile(join(dirName, '.actorignore'), '!packages\n');

// npm (used when building the actor on the platform) understands neither pnpm's `workspace:`
// protocol nor its `catalog:` protocol. Parse the catalog from pnpm-workspace.yaml so
Expand Down Expand Up @@ -412,6 +414,7 @@ async function copyPackages(dirName) {
export async function clearPackages(dirName) {
const destPackagesDir = join(dirName, 'actor', 'packages');
await fs.remove(destPackagesDir);
await fs.remove(join(dirName, 'actor', '.actorignore'));
}

/**
Expand Down
Loading