generated from wayfair-incubator/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically Detect Package Manager (#17)
Co-authored-by: Eric Jacobson <ejacobson@wayfair.com>
- Loading branch information
Showing
10 changed files
with
113 additions
and
22 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
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
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 |
---|---|---|
@@ -1,18 +1,27 @@ | ||
const CONFIG_FILE = "oneversion.config.json"; | ||
|
||
const LOCKFILES = { | ||
yarn: "yarn.lock", | ||
pnpm: "pnpm-lock.yaml", | ||
}; | ||
|
||
const DEPENDENCY_TYPES = { | ||
DIRECT: "direct", | ||
PEER: "peer", | ||
DEV: "dev", | ||
}; | ||
|
||
const UNABLE_TO_DETECT_PACKAGE_MANAGER_ERROR = | ||
"Unable to detect a package manager. Try installing dependencies."; | ||
const FAILED_CHECK_ERROR = | ||
"More than one version of dependencies found. See above output."; | ||
const NO_CHECK_API_ERROR = `'check' api not supported for package manager:`; | ||
|
||
module.exports = { | ||
CONFIG_FILE, | ||
LOCKFILES, | ||
DEPENDENCY_TYPES, | ||
UNABLE_TO_DETECT_PACKAGE_MANAGER_ERROR, | ||
FAILED_CHECK_ERROR, | ||
NO_CHECK_API_ERROR, | ||
}; |
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