forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
26
node_modules/conventional-changelog/index.js
generated
vendored
Normal file
26
node_modules/conventional-changelog/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
'use strict'
|
||||
|
||||
const conventionalChangelogCore = require('conventional-changelog-core')
|
||||
const conventionalChangelogPresetLoader = require('conventional-changelog-preset-loader')
|
||||
|
||||
function conventionalChangelog (options, context, gitRawCommitsOpts, parserOpts, writerOpts) {
|
||||
options.warn = options.warn || function () {}
|
||||
|
||||
if (options.preset) {
|
||||
try {
|
||||
options.config = conventionalChangelogPresetLoader(options.preset)
|
||||
} catch (err) {
|
||||
if (typeof options.preset === 'object') {
|
||||
options.warn(`Preset: "${options.preset.name}" ${err.message}`)
|
||||
} else if (typeof options.preset === 'string') {
|
||||
options.warn(`Preset: "${options.preset}" ${err.message}`)
|
||||
} else {
|
||||
options.warn(`Preset: ${err.message}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return conventionalChangelogCore(options, context, gitRawCommitsOpts, parserOpts, writerOpts)
|
||||
}
|
||||
|
||||
module.exports = conventionalChangelog
|
||||
Loading…
Add table
Add a link
Reference in a new issue