hi guys is there a better way to read in a local f...
# general
b
hi guys is there a better way to read in a local file with node? I have a
buildspec.yml
file I'm trying to read in to aws.codebuild.Project as a variable, but using
fs.readFileSync
I get:
Type 'Buffer' is not assignable to type 'Input<string>'.
this seemed to work:
Copy code
source: {
        type: "NO_SOURCE",
        buildspec: fs.readFileSync("./buildspec.yml").toString(),
    },
l
better readFileSync(file, 'utf8')
this will give you a string
b
cool ty