Skip to content

Commit

Permalink
chore: improve development flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest Chang committed Aug 31, 2020
1 parent 18a8cc1 commit d70d0a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const packageName = 'form-validation'
const pascalCasePackageName = 'FormValidation'

const input = 'src/index.ts'
const formats = ['es', 'umd', 'amd', 'cjs', 'iife', 'system']
const isProd = process.env.npm_lifecycle_script.indexOf('--watch') === -1
const formats = isProd ? ['es', 'umd', 'amd', 'cjs', 'iife', 'system'] : ['es', 'umd', 'cjs']

const configs = []
formats.forEach(format => {
Expand Down

0 comments on commit d70d0a1

Please sign in to comment.