@maizzle/framework 4.8.4 → 4.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maizzle/framework",
3
- "version": "4.8.4",
3
+ "version": "4.8.5",
4
4
  "description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
5
5
  "license": "MIT",
6
6
  "main": "src/index.js",
@@ -69,7 +69,7 @@
69
69
  "posthtml-markdownit": "^1.3.1",
70
70
  "posthtml-match-helper": "^1.0.3",
71
71
  "posthtml-mso": "^2.0.1",
72
- "posthtml-postcss-merge-longhand": "^2.1.0",
72
+ "posthtml-postcss-merge-longhand": "^3.1.0",
73
73
  "posthtml-safe-class-names": "^3.0.0",
74
74
  "posthtml-url-parameters": "^2.0.0",
75
75
  "pretty": "^2.0.0",
@@ -7,26 +7,21 @@ const build = async (env = 'local', config = {}) => {
7
7
  const start = new Date()
8
8
  const spinner = ora('Building emails...').start()
9
9
 
10
- try {
11
- const {files, parsed} = await Output.toDisk(env, spinner, config)
10
+ const {files, parsed} = await Output.toDisk(env, spinner, config)
12
11
 
13
- const elapsedSeconds = (Date.now() - start) / 1000
12
+ const elapsedSeconds = (Date.now() - start) / 1000
14
13
 
15
- if (get(config, 'build.command') === 'serve') {
16
- if (get(config, 'build.console.clear')) {
17
- clearConsole()
18
- }
19
-
20
- spinner.succeed(`Re-built ${parsed.length} templates in ${elapsedSeconds}s`)
21
- } else {
22
- spinner.succeed(`Built ${parsed.length} templates in ${elapsedSeconds}s`)
14
+ if (get(config, 'build.command') === 'serve') {
15
+ if (get(config, 'build.console.clear')) {
16
+ clearConsole()
23
17
  }
24
18
 
25
- return {files}
26
- } catch (error) {
27
- spinner.fail(error.message)
28
- throw error
19
+ spinner.succeed(`Re-built ${parsed.length} templates in ${elapsedSeconds}s`)
20
+ } else {
21
+ spinner.succeed(`Built ${parsed.length} templates in ${elapsedSeconds}s`)
29
22
  }
23
+
24
+ return {files}
30
25
  }
31
26
 
32
27
  module.exports = build
@@ -236,7 +236,9 @@ module.exports = async (env, spinner, config) => {
236
236
  files = [...new Set([...files, ...contents])]
237
237
  })
238
238
  })
239
- .catch(error => spinner.warn(error.message))
239
+ .catch(error => {
240
+ throw error
241
+ })
240
242
  }
241
243
  }
242
244