Skip to content

Commit

Permalink
fix: ESM in create script
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-goodwin committed Jan 3, 2024
1 parent 2fcd979 commit 9dfe28a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ runs:

- uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "20"
cache: "pnpm"

- run: pnpm install --frozen-lockfile
Expand Down
4 changes: 3 additions & 1 deletion packages/create-eventual/src/create-new-aws-cdk-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import {
import fs from "fs/promises";
import path from "path";
import { sampleCDKApp } from "./sample-code.js";
import { createRequire } from "module";

const require = createRequire(import.meta.url);

// eslint-disable-next-line @typescript-eslint/no-var-requires
const version: string = require("../package.json").version;

export interface CreateAwsCdkProps {
Expand Down

0 comments on commit 9dfe28a

Please sign in to comment.