We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b066a9 commit 8a7f23bCopy full SHA for 8a7f23b
lib/cli/build.ts
@@ -4,6 +4,13 @@ import * as path from "node:path";
4
import { pathToFileURL } from "node:url";
5
6
export async function build(args: string[]) {
7
+ const ghatsDir = path.resolve(process.cwd(), "node_modules/.ghats");
8
+ const actionJsPath = path.join(ghatsDir, "action.js");
9
+ if (!fs.existsSync(actionJsPath)) {
10
+ fs.mkdirSync(ghatsDir, { recursive: true });
11
+ fs.writeFileSync(actionJsPath, "export {}");
12
+ }
13
+
14
register("@swc-node/register/esm", pathToFileURL("./"));
15
16
const githubWorkflowsPath = path.resolve(process.cwd(), ".github/workflows");
0 commit comments