@travetto/email-compiler 8.0.0-alpha.6 → 8.0.0-alpha.8

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/README.md CHANGED
@@ -55,13 +55,13 @@ The module provides [Command Line Interface](https://github.com/travetto/travett
55
55
 
56
56
  **Terminal: Running template compilation**
57
57
  ```bash
58
- $ trv email:compile -h
58
+ $ trv email:compile --help
59
59
 
60
60
  Usage: email:compile [options]
61
61
 
62
62
  Options:
63
63
  -w, --watch Compile in watch mode
64
- -h, --help display help for command
64
+ --help display help for command
65
65
  ```
66
66
 
67
67
  Will convert all `.email.html` files into the appropriate `.compiled.html`, `.compiled.text` and `.compiled.subject` files. These will be used during the running of the application. By default these files are added to the `.gitignore` as they are generally not intended to be saved but to be generated during the build process.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/email-compiler",
3
- "version": "8.0.0-alpha.6",
3
+ "version": "8.0.0-alpha.8",
4
4
  "type": "module",
5
5
  "description": "Email compiling module",
6
6
  "keywords": [
@@ -27,12 +27,12 @@
27
27
  "directory": "module/email-compiler"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/config": "^8.0.0-alpha.5",
31
- "@travetto/di": "^8.0.0-alpha.5",
32
- "@travetto/email": "^8.0.0-alpha.5",
33
- "@travetto/image": "^8.0.0-alpha.5",
34
- "@travetto/runtime": "^8.0.0-alpha.5",
35
- "@travetto/worker": "^8.0.0-alpha.5",
30
+ "@travetto/config": "^8.0.0-alpha.7",
31
+ "@travetto/di": "^8.0.0-alpha.7",
32
+ "@travetto/email": "^8.0.0-alpha.7",
33
+ "@travetto/image": "^8.0.0-alpha.7",
34
+ "@travetto/runtime": "^8.0.0-alpha.7",
35
+ "@travetto/worker": "^8.0.0-alpha.7",
36
36
  "@types/inline-css": "^3.0.4",
37
37
  "html-entities": "^2.6.0",
38
38
  "inline-css": "^4.0.3",
@@ -40,7 +40,7 @@
40
40
  "sass": "^1.98.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@travetto/cli": "^8.0.0-alpha.8"
43
+ "@travetto/cli": "^8.0.0-alpha.12"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@travetto/cli": {
package/src/util.ts CHANGED
@@ -185,7 +185,7 @@ export class EmailCompileUtil {
185
185
  static async applyStyles(html: string, options: EmailTemplateResource): Promise<string> {
186
186
  const styles = [
187
187
  options.globalStyles ?? '',
188
- await options.loader.readText('/email/main.scss').catch(() => '')
188
+ await options.loader.readUTF8('/email/main.scss').catch(() => '')
189
189
  ]
190
190
  .filter(line => !!line)
191
191
  .join('\n');