Created
March 2, 2022 16:35
-
-
Save johncantrell97/f1e3aefc71302baebbd703447cdf71c7 to your computer and use it in GitHub Desktop.
A esbuild plugin for arc typescript to copy your schema.prisma file into your lambda build directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let copyPrismaSchema = { | |
name: "copy-prisma-schema", | |
setup(build) { | |
build.onEnd((result) => { | |
const fs = require("fs"); | |
const source = `${__dirname}/prisma/schema.prisma`; | |
const destination = build.initialOptions.outfile.replace( | |
"index.js", | |
"schema.prisma" | |
); | |
fs.copyFileSync(source, destination); | |
}); | |
}, | |
}; | |
module.exports = { | |
plugins: [copyPrismaSchema], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When it comes to tactical gear and equipment, their purpose is to provide the user with the necessary tools and protection to survive in any environment. This includes items such as body armor, helmets, night vision devices, flashlights, climbing ropes, and even knives. https://tacticalster.com/best-tactical-shorts/