UNPKG

hello-npm-tslint-rollup

Version:

Well that's a mouthfull. This package is a test package. It is supposed to let you know whether `package.json` file is in your current working directory `process.cwd()`. The name references the module bundler `rollup` and my own automation-script [tslint]

12 lines (11 loc) 284 B
import greet from "./modules/greet"; import path from "path"; import fs from "fs"; export default function main(): void { const hello = greet(); console.log(hello); console.log( "PACKAGE.JSON IN ROOT? ", fs.existsSync(path.resolve(process.cwd(), "package.json")) ); }