Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
`changelog --${ctx.options.version} -x chore`,
`git add -A`,
`git commit -m 'updated CHANGELOG.md'`,
])
}
)
task(
'build:all', [
{ name: 'build', async: true },
{ name: 'build:dist', async: true },
{ name: 'build:es', async: true },
],
)
option('-t, --type ', 'Semver versions, patch | major | minor')
task<{ type: 'patch' | 'major' | 'minor' }>('publish', async ctx => {
await ctx.run('preversion', { options: { version: ctx.options.type } })
await ctx.exec(`npm version ${ctx.options.type}`)
await fs.rmrf('./lib/test')
await fs.rmrf('./es/test')
await Promise.all([
ctx.exec(`git push origin master --tags`),
ctx.exec(`npm --registry https://registry.npmjs.org/ publish`),
])
})
task('test', async ctx => {
await ctx.exec(`${MochaCli} \"src/test/unit/*.test.ts\"`)
})
task('test:all', ['test'.async(), 'test:e2e'.async(), 'flow'.async()])