@patternplate/load-config
Advanced tools
Comparing version 2.0.0-16 to 2.0.0-17
23
index.js
@@ -1,22 +0,1 @@ | ||
const cosmiconfig = require("cosmiconfig"); | ||
const DEFAULTS = { | ||
docs: ["docs/**/*.md"], | ||
entry: ["lib/**/demo.js"], | ||
render: "@patternplate/render-default/render", | ||
mount: "@patternplate/render-default/mount" | ||
}; | ||
module.exports = async ({ cwd }) => { | ||
const explorer = cosmiconfig("patternplate"); | ||
const config = await explorer.load(cwd); | ||
if (!config) { | ||
return { | ||
config: DEFAULTS, | ||
filepath: null | ||
}; | ||
} | ||
return config; | ||
}; | ||
module.exports = require("./lib/load-config"); |
{ | ||
"name": "@patternplate/load-config", | ||
"version": "2.0.0-16", | ||
"version": "2.0.0-17", | ||
"description": "Load patternplate config", | ||
"scripts": { | ||
"start": "yarn build -w", | ||
"build": "babel -D src -d lib --source-maps --ignore **/*.test.js", | ||
"clean": "rimraf lib", | ||
"watch": "yarn build -w" | ||
}, | ||
"xo": false, | ||
@@ -24,3 +30,13 @@ "repository": { | ||
"cosmiconfig": "^3.1.0" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"module:@patternplate/babel-preset" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.40", | ||
"@patternplate/babel-preset": "^2.0.0-17", | ||
"fixturez": "^1.1.0" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
12784
7
287
1
40
3
1