Skip to content

Commit 277a69f

Browse files
authored
Merge branch 'main' into shortcut-improvements
2 parents 72d1381 + 3418aa6 commit 277a69f

File tree

19 files changed

+102
-35
lines changed

19 files changed

+102
-35
lines changed

.changeset/fuzzy-coins-cross.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/kind-plants-tap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Fix externals from monorepo packages with scoped package names #1552

.changeset/rude-walls-help.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/webapp/app/v3/services/expireEnqueuedRun.server.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ export class ExpireEnqueuedRunService extends BaseService {
4949
return;
5050
}
5151

52+
if (run.lockedAt) {
53+
logger.debug("Run cannot be expired because it's locked", {
54+
run,
55+
});
56+
57+
return;
58+
}
59+
5260
logger.debug("Expiring enqueued run", {
5361
run,
5462
});

docs/guides/examples/scrape-hacker-news.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Scrape the top 3 articles from Hacker News and email yourself a summary every weekday"
3-
sidebarTitle: "Scrape Hacker News"
3+
sidebarTitle: "Browserbase & Puppeteer"
44
description: "This example demonstrates how to scrape the top 3 articles from Hacker News using BrowserBase and Puppeteer, summarize them with ChatGPT and send a nicely formatted email summary to yourself every weekday using Resend."
55
---
66

packages/build/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @trigger.dev/build
22

3+
## 3.3.7
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@trigger.dev/[email protected]`
9+
310
## 3.3.6
411

512
### Patch Changes

packages/build/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@trigger.dev/build",
3-
"version": "3.3.6",
3+
"version": "3.3.7",
44
"description": "trigger.dev build extensions",
55
"license": "MIT",
66
"publishConfig": {
@@ -65,7 +65,7 @@
6565
"check-exports": "attw --pack ."
6666
},
6767
"dependencies": {
68-
"@trigger.dev/core": "workspace:3.3.6",
68+
"@trigger.dev/core": "workspace:3.3.7",
6969
"pkg-types": "^1.1.3",
7070
"tinyglobby": "^0.2.2",
7171
"tsconfck": "3.1.3"

packages/cli-v3/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# trigger.dev
22

3+
## 3.3.7
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@trigger.dev/[email protected]`
9+
- `@trigger.dev/[email protected]`
10+
311
## 3.3.6
412

513
### Patch Changes

packages/cli-v3/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trigger.dev",
3-
"version": "3.3.6",
3+
"version": "3.3.7",
44
"description": "A Command-Line Interface for Trigger.dev (v3) projects",
55
"type": "module",
66
"license": "MIT",
@@ -87,8 +87,8 @@
8787
"@opentelemetry/sdk-trace-base": "1.25.1",
8888
"@opentelemetry/sdk-trace-node": "1.25.1",
8989
"@opentelemetry/semantic-conventions": "1.25.1",
90-
"@trigger.dev/build": "workspace:3.3.6",
91-
"@trigger.dev/core": "workspace:3.3.6",
90+
"@trigger.dev/build": "workspace:3.3.7",
91+
"@trigger.dev/core": "workspace:3.3.7",
9292
"c12": "^1.11.1",
9393
"chalk": "^5.2.0",
9494
"cli-table3": "^0.6.3",

packages/cli-v3/src/build/externals.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,27 @@ async function linkExternal(external: CollectedExternal, resolveDir: string, log
4545
external,
4646
});
4747

48+
// For scoped packages, we need to ensure the scope directory exists
49+
if (external.name.startsWith("@")) {
50+
// Get the scope part (e.g., '@huggingface')
51+
const scopeDir = external.name.split("/")[0];
52+
53+
if (scopeDir) {
54+
const scopePath = join(destinationPath, scopeDir);
55+
56+
logger.debug("[externals] Ensure scope directory exists", {
57+
scopeDir,
58+
scopePath,
59+
});
60+
61+
await mkdir(scopePath, { recursive: true });
62+
} else {
63+
logger.debug("[externals] Unable to get the scope directory", {
64+
external,
65+
});
66+
}
67+
}
68+
4869
const symbolicLinkPath = join(destinationPath, external.name);
4970

5071
// Make sure the symbolic link does not exist

0 commit comments

Comments
 (0)