(opts = {})
| 91 | }; |
| 92 | |
| 93 | const createPackage = (opts = {}) => { |
| 94 | const filepath = 'package.json'; |
| 95 | const cnt = getTemplateFileContent(filepath); |
| 96 | const dst = resolveRoot(filepath); |
| 97 | fs.writeFileSync(dst, template(cnt)({ |
| 98 | ...opts, |
| 99 | version, |
| 100 | })); |
| 101 | }; |
| 102 | |
| 103 | const checkBoolean = value => value && value !== 'false' ? true : false; |
| 104 |
no test coverage detected