How to use the roarr.info function in roarr

To help you get started, we’ve selected a few roarr 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 s-panferov / tygen / packages / tygen-reflector / src / package.ts View on Github external
files.forEach(file => {
				log.info({ fileName: file.sourceFile.fileName }, 'Generate module')
				file.generate(ctx)
			})
		}
github s-panferov / tygen / packages / tygen-reflector / src / helpers.ts View on Github external
export function compileFolder(target: string = process.cwd()): FolderCompilationResult {
	log.info(`Using TypeScript ${ts.version}`)

	let packageFilePath: string | undefined
	let configFilePath: string | undefined

	if (target.includes('package.json')) {
		packageFilePath = target
	} else if (target.includes('.json')) {
		configFilePath = target
	} else {
		const maybeTsconfig = path.join(target, 'tsconfig.json')
		if (fs.existsSync(maybeTsconfig)) {
			configFilePath = maybeTsconfig
		}

		const maybePackageJson = path.join(target, 'package.json')
		if (fs.existsSync(maybePackageJson)) {
github s-panferov / tygen / packages / tygen-reflector / src / generator.ts View on Github external
version: pkg.manifest.version,
					manifest: pkg.manifestFilePath,
					folder: pkg.folderPath
				}

				if (!pkg.manifest.name) {
					log.error(packageInfo, 'Package has no name, skipping')
					return
				}

				if (!pkg.manifest.version) {
					log.error(packageInfo, 'Package has no version, skipping')
					return
				}

				log.info(packageInfo, 'Generate package')
				pkg.generate(context)
			})

roarr

JSON logger for Node.js and browser.

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

80 / 100
Full package analysis