(filename = '../package.json')
| 73 | * @returns The package version from the file (throws if it doesn't exist) |
| 74 | */ |
| 75 | export const readPackageVersion = (filename = '../package.json') => { |
| 76 | const packageJson = JSON.parse(readFileSync(join(__dirname, filename)).toString()); |
| 77 | return packageJson.version; |
| 78 | }; |
| 79 | |
| 80 | /** |
| 81 | * @param secrets The lines of the secrets file |
no outgoing calls
no test coverage detected