File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ const FastObject = require("../lib/fast-object.js");
11
11
const PkgInfo = require ( "./pkg-info.js" ) ;
12
12
const SemVer = require ( "semver" ) ;
13
13
14
+ const REIFY_PACKAGE_NAME = '@meteorjs/reify' ;
15
+
14
16
const DEFAULT_PKG_CONFIG = {
15
17
"cache-directory" : ".reify-cache" ,
16
18
parser : void 0 ,
@@ -23,8 +25,8 @@ const reifySemVer = require("./version.js");
23
25
24
26
function getReifyRange ( json , name ) {
25
27
const entry = json [ name ] ;
26
- return utils . isObject ( entry ) && hasOwn . call ( entry , "@meteorjs/reify" )
27
- ? SemVer . validRange ( entry . reify )
28
+ return utils . isObject ( entry ) && hasOwn . call ( entry , REIFY_PACKAGE_NAME )
29
+ ? SemVer . validRange ( entry [ REIFY_PACKAGE_NAME ] )
28
30
: null ;
29
31
}
30
32
@@ -118,7 +120,7 @@ function readPkgInfo(dirPath) {
118
120
return null ;
119
121
}
120
122
121
- const reify = pkgJSON . reify ;
123
+ const reify = pkgJSON [ REIFY_PACKAGE_NAME ] ;
122
124
123
125
if ( reify === false ) {
124
126
// An explicit "reify": false property in package.json disables
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " reify-test-package" ,
3
3
"private" : true ,
4
- "reify" : {
4
+ "@meteorjs/ reify" : {
5
5
"cache-directory" : " .cache/path/for/tests"
6
6
},
7
7
"dependencies" : {
You can’t perform that action at this time.
0 commit comments