Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "pack/node/pushtest/nodePushTests"

Index

Variables

Const HasPackageLock

HasPackageLock: PredicatePushTest = hasFile("package-lock.json")

Const IsAtomistAutomationClient

IsAtomistAutomationClient: PredicatePushTest = predicatePushTest("Is Automation Client", async p => {try {const pjFile = await p.getFile("package.json");const pjString = await pjFile.getContent();interface PJ {dependencies: {[key: string]: string;};}const pj: PJ = JSON.parse(pjString);if (!pj || !pj.dependencies) {return false;}return !!(pj.dependencies["@atomist/automation-client"] || pj.dependencies["@atomist/sdm"]);} catch (e) {return false;}})

Const IsNode

IsNode: PredicatePushTest = hasFile("package.json")

Generated using TypeDoc