packages/slate-env/index.js
function create({values, name, root} = {}) {
  const envName = _getFileName(name);
  const envPath = path.resolve(
    root || config.get('env.rootDirectory'),
    envName,
  );
  const envContents = _getFileContents(values);

  fs.writeFileSync(envPath, envContents);
}
function create({values, name, root} = {}) {
  const envName = _getFileName(name);
  const envPath = path.resolve(
    root || config.get('env.rootDirectory'),
    envName,
  );
  const envContents = _getFileContents(values);

  fs.writeFileSync(envPath, envContents);
}
function create ( { values , name , root } = { } ) { const envName = _getFileName ( name ) ; const envPath = path . resolve ( root || config . get ( 'env.rootDirectory' ) , envName , ) ; const envContents = _getFileContents ( values ) ; fs . writeFileSync ( envPath , envContents ) ; }
Creates a new env file with optional name and values
Creates a new env file with optional name and values