Skip to content

Commit abb36e8

Browse files
committed
feat(vs-code-ext): display name to "React Email" and fix interop issues with OS
1 parent f0557c2 commit abb36e8

File tree

5 files changed

+79
-29
lines changed

5 files changed

+79
-29
lines changed

vs-code-extension/CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
All notable changes to the "react-email-preview" extension will be documented in this file.
44

5-
## [Unreleased]
5+
## 0.0.2 - 2023-11-04
6+
7+
### Features
8+
9+
- Update the display name to "React Email"
10+
11+
### Fixes
12+
13+
- OS issues with esbuild
614

715
## 0.0.1 - 2023-11-04
816

@@ -16,7 +24,7 @@ Released first version for testing.
1624

1725
### Features
1826

19-
- Command for opening split for preview
27+
- Command (`CTRL + SHIFT + E` or `CMD + SHIFT + E`) for opening split for preview
2028
- Preview updates on file save
2129
- When changing files the preview updates
2230
- Multiple previews can't be open

vs-code-extension/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ We want for `react-email` to bring the best developer experience possible and yo
3535
React Email is a collection of high-quality, unstyled components for creating beautiful emails using React and TypeScript. It reduces the pain of coding responsive emails with dark mode support. It also takes care of inconsistencies between Gmail, Outlook, and other email clients for you.
3636

3737
Find out more [here](https://react.email/).
38+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Why `npm`?
2+
3+
This is due to `vsce` (The VS Code extension CLI) having problems with monorepos due to the fact
4+
that it has its own type of linker that, in a monorepo, seems to fail when running `npm run package`.
5+
6+
So you will need to run:
7+
8+
```bash
9+
$ npm install --force
10+
```
11+
12+
## Why `--force`?
13+
14+
Sadly, this is because esbuild is a compiled package, and it has a specific package for each OS,
15+
therefore, we do need to have installed a package for each OS to support them all.
16+
17+
Maybe a better solution for this can be found later.
18+
19+
See https://esbuild.github.io/getting-started/#simultaneous-platforms.

vs-code-extension/package-lock.json

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vs-code-extension/package.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "react-email-preview",
3-
"displayName": "react-email preview",
3+
"displayName": "React Email",
44
"description": "A easy way to view the preview of a email made with react-email from your editor",
5-
"version": "0.0.1",
5+
"version": "0.0.2",
66
"license": "MIT",
77
"publishConfig": {
88
"access": "public"
@@ -48,7 +48,29 @@
4848
},
4949
"dependencies": {
5050
"@react-email/render": "0.0.9",
51-
"esbuild": "0.16.4"
51+
"esbuild": "0.16.4",
52+
"@esbuild/android-arm": "0.16.4",
53+
"@esbuild/android-arm64": "0.16.4",
54+
"@esbuild/android-x64": "0.16.4",
55+
"@esbuild/darwin-arm64": "0.16.4",
56+
"@esbuild/darwin-x64": "0.16.4",
57+
"@esbuild/freebsd-arm64": "0.16.4",
58+
"@esbuild/freebsd-x64": "0.16.4",
59+
"@esbuild/linux-arm": "0.16.4",
60+
"@esbuild/linux-arm64": "0.16.4",
61+
"@esbuild/linux-ia32": "0.16.4",
62+
"@esbuild/linux-loong64": "0.16.4",
63+
"@esbuild/linux-mips64el": "0.16.4",
64+
"@esbuild/linux-ppc64": "0.16.4",
65+
"@esbuild/linux-riscv64": "0.16.4",
66+
"@esbuild/linux-s390x": "0.16.4",
67+
"@esbuild/linux-x64": "0.16.4",
68+
"@esbuild/netbsd-x64": "0.16.4",
69+
"@esbuild/openbsd-x64": "0.16.4",
70+
"@esbuild/sunos-x64": "0.16.4",
71+
"@esbuild/win32-arm64": "0.16.4",
72+
"@esbuild/win32-ia32": "0.16.4",
73+
"@esbuild/win32-x64": "0.16.4"
5274
},
5375
"devDependencies": {
5476
"@types/mocha": "^10.0.2",

0 commit comments

Comments
 (0)