{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/usage.ts"],"names":[],"mappings":";AAGA,wBAaC","sourcesContent":["import chalk from 'chalk'\nimport fail from './fail.js'\n\nexport default (err?: string) => {\n  const url = 'https://github.com/isaacs/tshy'\n  const link =\n    chalk.level > 0 ? `\\x1b]8;;${url}\\x1b\\\\${url}\\x1b]8;;\\x1b\\\\` : url\n  console[err ? 'error' : 'log'](`Usage: tshy [--help]\n  --help -h   Print this message and exit.\n  --watch -w  Watch files in ./src and build when they change.\n\nDefault behavior: build project according to tshy config in package.json\n\nSee the docs for more information: ${link}`)\n  if (err) fail(err)\n  process.exit(err ? 1 : 0)\n}\n"]}