mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Fix NPX issue with TailwindCSS v4
This allows the `tailwindcss` CLI binary to live in the `PATH` for NPM-less projects. Fixes #13221
This commit is contained in:
@@ -313,7 +313,7 @@ allow = ['asciidoctor']
|
||||
converter.ProviderConfig{
|
||||
Logger: loggers.NewDefault(),
|
||||
Conf: conf,
|
||||
Exec: hexec.New(securityConfig, ""),
|
||||
Exec: hexec.New(securityConfig, "", loggers.NewDefault()),
|
||||
},
|
||||
)
|
||||
c.Assert(err, qt.IsNil)
|
||||
|
@@ -34,7 +34,7 @@ func TestConvert(t *testing.T) {
|
||||
var err error
|
||||
sc.Exec.Allow, err = security.NewWhitelist("pandoc")
|
||||
c.Assert(err, qt.IsNil)
|
||||
p, err := Provider.New(converter.ProviderConfig{Exec: hexec.New(sc, ""), Logger: loggers.NewDefault()})
|
||||
p, err := Provider.New(converter.ProviderConfig{Exec: hexec.New(sc, "", loggers.NewDefault()), Logger: loggers.NewDefault()})
|
||||
c.Assert(err, qt.IsNil)
|
||||
conv, err := p.New(converter.DocumentContext{})
|
||||
c.Assert(err, qt.IsNil)
|
||||
|
@@ -36,7 +36,7 @@ func TestConvert(t *testing.T) {
|
||||
p, err := Provider.New(
|
||||
converter.ProviderConfig{
|
||||
Logger: loggers.NewDefault(),
|
||||
Exec: hexec.New(sc, ""),
|
||||
Exec: hexec.New(sc, "", loggers.NewDefault()),
|
||||
})
|
||||
c.Assert(err, qt.IsNil)
|
||||
conv, err := p.New(converter.DocumentContext{})
|
||||
|
Reference in New Issue
Block a user