How to use the @s-ui/helpers/file.removeFile function in @s-ui/helpers

To help you get started, we’ve selected a few @s-ui/helpers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SUI-Components / sui / packages / sui-deploy / src / client / now.js View on Github external
async deployAsSPA(dir = DEFAULT_DIR, {auth, environmentVars}) {
    const {deployName: name} = this
    const path = dir + '/package.json'

    await writePackageJson({name, path, auth})
    const deployUrl = await this.deploy(dir, {auth, environmentVars})
    await removeFile(path)
    return deployUrl
  }
}