Linting.
This commit is contained in:
parent
012b290895
commit
93d7707168
|
@ -18,18 +18,24 @@ async function run() {
|
||||||
profile = BASE_PROFILE
|
profile = BASE_PROFILE
|
||||||
}
|
}
|
||||||
// basic manifest file describing the latest
|
// basic manifest file describing the latest
|
||||||
fs.writeFileSync(MANIFEST, JSON.stringify({
|
fs.writeFileSync(
|
||||||
version: packageJson.version,
|
MANIFEST,
|
||||||
dir: S3_COMP_DIR,
|
JSON.stringify({
|
||||||
}))
|
version: packageJson.version,
|
||||||
|
dir: S3_COMP_DIR,
|
||||||
|
})
|
||||||
|
)
|
||||||
execSync(`aws s3 sync ${TO_SYNC} ${buildS3Path()} --profile ${profile}`)
|
execSync(`aws s3 sync ${TO_SYNC} ${buildS3Path()} --profile ${profile}`)
|
||||||
execSync(`aws s3 cp ${MANIFEST} ${BUCKET_LOCATION}/${MANIFEST} --profile ${profile}`)
|
execSync(
|
||||||
|
`aws s3 cp ${MANIFEST} ${BUCKET_LOCATION}/${MANIFEST} --profile ${profile}`
|
||||||
|
)
|
||||||
fs.unlinkSync(MANIFEST)
|
fs.unlinkSync(MANIFEST)
|
||||||
}
|
}
|
||||||
|
|
||||||
run().then(() => {
|
run()
|
||||||
console.log(`Deployment complete, version ${packageJson.version}`)
|
.then(() => {
|
||||||
}).catch((err) => {
|
console.log(`Deployment complete, version ${packageJson.version}`)
|
||||||
console.error(err)
|
})
|
||||||
})
|
.catch(err => {
|
||||||
|
console.error(err)
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue