diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-12-30 00:26:01 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-12-30 02:24:28 +0100 |
commit | 61fd13c55f5e69a9d8b32dd0d74b08870783bcce (patch) | |
tree | 4f3f97b1629f3c262bea076b596bc7245ccbc0bd /packages/main/package.json | |
parent | Revert "refactor: Switch back to consola for prettyness" (diff) | |
download | sophie-61fd13c55f5e69a9d8b32dd0d74b08870783bcce.tar.gz sophie-61fd13c55f5e69a9d8b32dd0d74b08870783bcce.tar.zst sophie-61fd13c55f5e69a9d8b32dd0d74b08870783bcce.zip |
build: Switch to esbuild
We will build all packages except the frontend (where vite remains in
use) with esbuild.
For some reason, the @yarnpkg/esbuild-plugin-pnp doesn't allow esbuild
to load esm modules and we fall back to commonjs for dependencies.
Hence we had to switch back to node_modules (but still rely on yarn
hardlinking for a more efficient install).
Diffstat (limited to 'packages/main/package.json')
-rw-r--r-- | packages/main/package.json | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/main/package.json b/packages/main/package.json index c4670a8..76eff8e 100644 --- a/packages/main/package.json +++ b/packages/main/package.json | |||
@@ -6,7 +6,6 @@ | |||
6 | "types": "dist-types/index.d.ts", | 6 | "types": "dist-types/index.d.ts", |
7 | "scripts": { | 7 | "scripts": { |
8 | "clean": "rimraf dist", | 8 | "clean": "rimraf dist", |
9 | "build": "vite build", | ||
10 | "typecheck": "tsc" | 9 | "typecheck": "tsc" |
11 | }, | 10 | }, |
12 | "dependencies": { | 11 | "dependencies": { |
@@ -14,7 +13,7 @@ | |||
14 | "@sophie/shared": "workspace:*", | 13 | "@sophie/shared": "workspace:*", |
15 | "electron": "16.0.5", | 14 | "electron": "16.0.5", |
16 | "json5": "^2.2.0", | 15 | "json5": "^2.2.0", |
17 | "lodash": "^4.17.21", | 16 | "lodash-es": "^4.17.21", |
18 | "loglevel": "^1.8.0", | 17 | "loglevel": "^1.8.0", |
19 | "loglevel-plugin-prefix": "^0.8.4", | 18 | "loglevel-plugin-prefix": "^0.8.4", |
20 | "mobx": "^6.3.10", | 19 | "mobx": "^6.3.10", |
@@ -22,14 +21,13 @@ | |||
22 | "ms": "^2.1.3" | 21 | "ms": "^2.1.3" |
23 | }, | 22 | }, |
24 | "devDependencies": { | 23 | "devDependencies": { |
25 | "@types/debug": "^4", | ||
26 | "@types/electron-devtools-installer": "^2.2.1", | 24 | "@types/electron-devtools-installer": "^2.2.1", |
27 | "@types/lodash": "^4.14.178", | 25 | "@types/lodash-es": "^4.17.5", |
28 | "@types/ms": "^0.7.31", | 26 | "@types/ms": "^0.7.31", |
29 | "@types/node": "^17.0.5", | 27 | "@types/node": "^17.0.5", |
30 | "electron-devtools-installer": "^3.2.0", | 28 | "electron-devtools-installer": "^3.2.0", |
29 | "esbuild": "^0.14.9", | ||
31 | "rimraf": "^3.0.2", | 30 | "rimraf": "^3.0.2", |
32 | "typescript": "^4.5.4", | 31 | "typescript": "^4.5.4" |
33 | "vite": "^2.7.7" | ||
34 | } | 32 | } |
35 | } | 33 | } |