Skip to content

Commit 94d46d4

Browse files
authored
Refactor @workflow/next to dynamically import @workflow/builders (#296)
Signed-off-by: Nathan Rajlich <n@n8.io>
1 parent 68363b2 commit 94d46d4

File tree

7 files changed

+418
-386
lines changed

7 files changed

+418
-386
lines changed

.changeset/sixty-facts-slide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"workflow": patch
3+
"@workflow/next": patch
4+
---
5+
6+
Refactor `@workflow/next` to dynamically import `@workflow/builders`

packages/builders/src/apply-swc-transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { createRequire } from 'node:module';
12
import { transform } from '@swc/core';
2-
import { createRequire } from 'module';
33

4-
const require = createRequire(import.meta.filename);
4+
const require = createRequire(import.meta.url);
55

66
export type WorkflowManifest = {
77
steps?: {

0 commit comments

Comments
 (0)