-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from dominykas/cleanup
- Loading branch information
Showing
15 changed files
with
287 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict' | ||
|
||
const fsPromises = require('fs').promises | ||
|
||
exports.getTestingBranchName = async function getTestingBranchName (parentPackageName) { | ||
return `wiby-${parentPackageName}` | ||
} | ||
|
||
exports.getLocalPackageJSON = async function getLocalPackageJSON () { | ||
const pkg = await fsPromises.readFile('package.json') | ||
return JSON.parse(pkg) | ||
} | ||
|
||
exports.checkPackageInPackageJSON = function checkPackageInPackageJSON (dep, packageJSON) { | ||
return Object.prototype.hasOwnProperty.call(packageJSON.dependencies, dep) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.