Deploy script fails on macOS
Output
Building site.js site…
> Minify CSS
> Minify JS
{ [Error: ENOENT: no such file or directory, open 'node_modules/typed.js/lib/typed.js']
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'node_modules/typed.js/lib/typed.js' }
> Inline minified CSS & JS into HTML
/Users/aral/small-tech/site.js/site/_build/inline-css-and-js.js:15
index = index.replace(/<\!-- Start: styles -->.*?<\!-- End: styles -->/s, `<style>${styles}</style>`)
^
SyntaxError: Invalid regular expression flags
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
> Minify HTML
{ [Error: ENOENT: no such file or directory, open 'tmp/index.html']
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'tmp/index.html' }
> Inline SVG into minified HTML
> Copy background image
> Copy Site.js binary releases
> Copy install script