@pzlr/build-core
Advanced tools
Comparing version 2.8.17 to 2.9.0
@@ -13,4 +13,2 @@ 'use strict'; | ||
packagePath = path.join(process.cwd(), 'package.json'), | ||
configPath = path.join(process.cwd(), '.pzlrrc'), | ||
configExists = fs.existsSync(configPath), | ||
superLink = '@super'; | ||
@@ -23,5 +21,9 @@ | ||
if (configExists) { | ||
const | ||
jsConfigPath = path.join(process.cwd(), '.pzlrrc.js'), | ||
jsonConfigPath = path.join(process.cwd(), '.pzlrrc'); | ||
if (fs.existsSync(jsonConfigPath)) { | ||
try { | ||
$C.extend(true, config, fs.readJsonSync(configPath)); | ||
$C.extend(true, config, fs.readJsonSync(jsonConfigPath)); | ||
@@ -31,5 +33,6 @@ } catch (_) { | ||
} | ||
} | ||
} else { | ||
console.warn('Warning: .pzlrrc doesn\'t exist'); | ||
if (fs.existsSync(jsConfigPath)) { | ||
$C.extend({deep: true, withAccessors: true}, config, require(jsConfigPath)); | ||
} | ||
@@ -36,0 +39,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"typings": "index.d.ts", | ||
"version": "2.8.17", | ||
"version": "2.9.0", | ||
"license": "MIT", | ||
@@ -29,11 +29,11 @@ "author": { | ||
"dependencies": { | ||
"@hapi/joi": "^15.1.0", | ||
"@hapi/joi": "^15.1.1", | ||
"collection.js": "^6.7.10", | ||
"find-node-modules": "^2.0.0", | ||
"fs-extra-promise": "^1.0.1", | ||
"glob": "^7.1.4", | ||
"glob": "^7.1.6", | ||
"glob-promise": "^3.4.0", | ||
"is-path-inside": "^3.0.1", | ||
"is-path-inside": "^3.0.2", | ||
"sugar": "^2.0.6", | ||
"upath": "^1.1.2", | ||
"upath": "^1.2.0", | ||
"vinyl-fs": "^3.0.3" | ||
@@ -45,5 +45,5 @@ }, | ||
"@types/vinyl-fs": "^2.4.11", | ||
"babel-eslint": "^10.0.2", | ||
"eslint": "^6.1.0" | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^6.8.0" | ||
} | ||
} |
@@ -0,0 +0,0 @@ Build Core |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
37899
1313
5
+ Added@types/node@22.13.1(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
- Removed@types/node@22.13.4(transitive)
- Removedcall-bind-apply-helpers@1.0.2(transitive)
Updated@hapi/joi@^15.1.1
Updatedglob@^7.1.6
Updatedis-path-inside@^3.0.2
Updatedupath@^1.2.0