mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
fix: Resolve cfg redeclaration and update ignore patterns field
This commit is contained in:
@@ -131,8 +131,8 @@ func runRollup() error {
|
|||||||
} else {
|
} else {
|
||||||
codeGenList = strings.Split(codeGenPatterns, ",")
|
codeGenList = strings.Split(codeGenPatterns, ",")
|
||||||
}
|
}
|
||||||
if cfg != nil && len(cfg.Ignore) > 0 {
|
if cfg != nil && len(cfg.IgnorePatterns) > 0 {
|
||||||
ignoreList = cfg.Ignore
|
ignoreList = cfg.IgnorePatterns
|
||||||
} else {
|
} else {
|
||||||
ignoreList = strings.Split(ignorePatterns, ",")
|
ignoreList = strings.Split(ignorePatterns, ",")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
var (
|
var (
|
||||||
urls []string
|
urls []string
|
||||||
outputFile string
|
outputFile string
|
||||||
cfg *config.Config
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var webCmd = &cobra.Command{
|
var webCmd = &cobra.Command{
|
||||||
|
|||||||
Reference in New Issue
Block a user