maizzle / cli

CLI tool for the Maizzle Email Framework.
https://maizzle.com/docs/cli
MIT License
35 stars 7 forks source link

Does not run on macOS #228

Closed steinybot closed 7 months ago

steinybot commented 9 months ago

Using version 1.5.7.

The script in node_modules/.bin/maizzle has CRLF line endings and so on macOS it fails with:

[127] jason@goodness> ./node_modules/.bin/maizzle build twirl                                                                         ~/src/goodcover/marketing/templating
env: node\r: No such file or directory
cossssmin commented 8 months ago

Hmm, many people use Maizzle on a Mac so I imagine this would have been an issue for all users if that were the case.

Not sure why that is happening for you, git ls-files --eol shows all files as LF.

$ git ls-files --eol
i/lf    w/lf    attr/                   .editorconfig
i/lf    w/lf    attr/                   .github/cli-mark-dark.svg
i/lf    w/lf    attr/                   .github/cli-mark-light.svg
i/lf    w/lf    attr/                   .github/dependabot.yml
i/lf    w/lf    attr/                   .github/workflows/nodejs.yml
i/lf    w/lf    attr/                   .gitignore
i/lf    w/lf    attr/                   LICENSE
i/lf    w/lf    attr/                   README.md
i/lf    w/lf    attr/                   bin/maizzle
i/lf    w/lf    attr/                   package-lock.json
i/lf    w/lf    attr/                   package.json
i/lf    w/lf    attr/                   src/commands/make/config.js
i/lf    w/lf    attr/                   src/commands/make/layout.js
i/lf    w/lf    attr/                   src/commands/make/tailwind.js
i/lf    w/lf    attr/                   src/commands/make/template.js
i/lf    w/lf    attr/                   src/commands/new.js
i/lf    w/lf    attr/                   src/index.js
i/lf    w/lf    attr/                   src/stubs/config/base.js
i/lf    w/lf    attr/                   src/stubs/config/full.js
i/lf    w/lf    attr/                   src/stubs/config/tailwind.config.js
i/lf    w/lf    attr/                   src/stubs/layout.html
i/lf    w/lf    attr/                   src/stubs/template.html
i/lf    w/lf    attr/                   src/utils.js
i/lf    w/lf    attr/                   test/test-build.js
i/lf    w/lf    attr/                   test/test-config.js
i/lf    w/lf    attr/                   test/test-layout.js
i/lf    w/lf    attr/                   test/test-misc.js
i/lf    w/lf    attr/                   test/test-new.js
i/lf    w/lf    attr/                   test/test-tailwind.js
i/lf    w/lf    attr/                   test/test-template.js
i/lf    w/lf    attr/                   xo.config.js