Skip to content

Instantly share code, notes, and snippets.

View doublecompile's full-sized avatar

Jonathan Hawk doublecompile

View GitHub Profile
@doublecompile
doublecompile / stack.ts
Created September 29, 2022 14:22
AWS CDK Stack for CrossAccountZoneDelegationRecord access
import { Construct } from "constructs";
import { Stack, StackProps, CfnOutput } from "aws-cdk-lib";
import {
IRole,
Role,
PolicyStatement,
AnyPrincipal,
ManagedPolicy,
Effect,
PrincipalWithConditions,
@doublecompile
doublecompile / .projenrc.ts
Last active January 3, 2024 14:34
TypeScript, Jest, ECMAScript Modules, and Projen
import { typescript, javascript } from "projen";
const project = new typescript.TypeScriptProject({
name: "template-typescript-esm",
defaultReleaseBranch: "main",
projenrcTs: true,
devDeps: ["@jest/globals"],
minNodeVersion: "18.0.0",
@doublecompile
doublecompile / projen-bundle-esm.ts
Created September 5, 2023 20:57
projen-bundle-esm.ts
// How to use esbuild with Projen to output an ESM library.
const { bundleTask, outfile } = project.bundler.addBundle("./src/handler.mts", {
target: "node18",
platform: "node",
watchTask: false,
});
const [{ exec: bundleCommand = "" }] = bundleTask.steps;