fs.writeFileSync(functionparametersFilePath, functionjsonString, 'utf8'); } else if (parameters.resourceName) { const s3ResourceName = s3ResourceAlreadyExists(); const s3ResourceName = s3ResourceAlreadyExists(context); if (s3ResourceName) { let s3UserInputs = await invokeS3GetUserInputs(context...
importfsfrom'fs';import('./nope.mjs').catch(()=>fs.writeFileSync('./nope.mjs')).then(()=>import('./nope.mjs')).then(console.log); Sorry, something went wrong. Copy link Author jonathantnealcommentedApr 5, 2019 @devsnek, hmm, might this be limited to imports that use node_modu...
fs.writeFileSync('client/plugin-module.js', scripts); }else{ fs.writeFileSync('client/plugin-module.js', 'module.exports = {}'); } systemConfigPlugin = commonLib.initPlugins(systemConfigPlugin, 'ext'); systemConfigPlugin.forEach(plugin=>{ if(plugin.client && plugin.enable){ scripts.push...
import { readJson, writeJson } from "fs-extra"; export async function configrationExport(path: string, output: Nvmd.Configration) { const filename = `configration_${Date.now()}.json`; await writeJson(join(path, `configration_${Date.now()}.json`), output); return filename; } export ...
dirname(file) ], { stdio: [ "ignore", 1, 2 ] } ); // rewrite file fs.writeFileSync(file, data); } }; local.functionOrNop = function (fnc) { /* * this function will if <fnc> exists, * return <fnc>, * else return <nop> */ return fnc || local.nop; }; local.identity...
fs.writeFileSync('client/plugin-module.js', 'module.exports = {}'); } systemConfigPlugin = commonLib.initPlugins(systemConfigPlugin, 'ext'); systemConfigPlugin.forEach(plugin=>{ if(plugin.client && plugin.enable){ scripts.push(createScript(plugin, 'exts')) } }) scripts = "module.exports...
The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. - fix: update migration msg, ddb import e2e, lgtm errors (#8796) · aws-amplify/amplify-cli@a2d87ec