Skip to content

Commit 56b1c3c

Browse files
o-cappasityAVVS
authored andcommittedNov 19, 2019
feat(get-config): get properties from configs by path (#20)
1 parent b7d5cf1 commit 56b1c3c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
 

‎bin/cmds/get-config.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const { get } = require('lodash');
2+
3+
exports.command = 'get-config';
4+
exports.desc = 'return mdeprc properties';
5+
exports.builder = async (yargs) => {
6+
yargs
7+
.option('path', {
8+
describe: 'path in config',
9+
type: 'string',
10+
})
11+
.strict(false)
12+
.help();
13+
};
14+
exports.handler = (argv) => {
15+
console.info(get(argv, argv.path));
16+
};

‎scripts/setup-semantic-release.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function amIaDependency() {
2020
return parentFolder === 'node_modules' || scopedParentFodler === 'node_modules';
2121
}
2222

23-
if (!amIaDependency() && !isForced) {
23+
if (process.env.NPX || (!amIaDependency() && !isForced)) {
2424
// top level install (we are running `npm i` in this project)
2525
debug('we are installing own dependencies');
2626
process.exit(0);

0 commit comments

Comments
 (0)
Please sign in to comment.