@patternplate/load-config
Advanced tools
Comparing version 2.0.0-0 to 2.0.0-2.0.0-26.debug.0
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-0", | ||
"version": "2.0.0-2.0.0-26.debug.0", | ||
"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, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/sinnerschrader/patternplate.git" | ||
"url": "git+https://github.com/patternplate/patternplate.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/sinnerschrader/patternplate/issues" | ||
"url": "https://github.com/patternplate/patternplate/issues" | ||
}, | ||
"homepage": "https://github.com/sinnerschrader/patternplate#readme", | ||
"homepage": "https://github.com/patternplate/patternplate#readme", | ||
"author": { | ||
@@ -24,3 +30,13 @@ "name": "Mario Nebl", | ||
"cosmiconfig": "^3.1.0" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"module:@patternplate/babel-preset" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.40", | ||
"@patternplate/babel-preset": "^2.0.0-2.0.0-26.debug.0", | ||
"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
12763
7
287
1
40
3
1