Skip to content

Commit

Permalink
Updates the references to @meteorjs/reify
Browse files Browse the repository at this point in the history
  • Loading branch information
filipenevola committed Nov 27, 2021
1 parent c27e68d commit ef4f5c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions node/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const FastObject = require("../lib/fast-object.js");
const PkgInfo = require("./pkg-info.js");
const SemVer = require("semver");

const REIFY_PACKAGE_NAME = '@meteorjs/reify';

const DEFAULT_PKG_CONFIG = {
"cache-directory": ".reify-cache",
parser: void 0,
Expand All @@ -23,8 +25,8 @@ const reifySemVer = require("./version.js");

function getReifyRange(json, name) {
const entry = json[name];
return utils.isObject(entry) && hasOwn.call(entry, "@meteorjs/reify")
? SemVer.validRange(entry.reify)
return utils.isObject(entry) && hasOwn.call(entry, REIFY_PACKAGE_NAME)
? SemVer.validRange(entry[REIFY_PACKAGE_NAME])
: null;
}

Expand Down Expand Up @@ -118,7 +120,7 @@ function readPkgInfo(dirPath) {
return null;
}

const reify = pkgJSON.reify;
const reify = pkgJSON[REIFY_PACKAGE_NAME];

if (reify === false) {
// An explicit "reify": false property in package.json disables
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reify-test-package",
"private": true,
"reify": {
"@meteorjs/reify": {
"cache-directory": ".cache/path/for/tests"
},
"dependencies": {
Expand Down

0 comments on commit ef4f5c3

Please sign in to comment.