aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-30 00:26:01 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-30 02:24:28 +0100
commit61fd13c55f5e69a9d8b32dd0d74b08870783bcce (patch)
tree4f3f97b1629f3c262bea076b596bc7245ccbc0bd /package.json
parentRevert "refactor: Switch back to consola for prettyness" (diff)
downloadsophie-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 'package.json')
-rw-r--r--package.json7
1 files changed, 5 insertions, 2 deletions
diff --git a/package.json b/package.json
index 90d0a92..03c1696 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
17 "scripts": { 17 "scripts": {
18 "clean": "rimraf dist .log && yarn workspaces foreach run clean", 18 "clean": "rimraf dist .log && yarn workspaces foreach run clean",
19 "test": "yarn workspaces foreach -vpt run test", 19 "test": "yarn workspaces foreach -vpt run test",
20 "build": "yarn workspaces foreach -vpt run build", 20 "build": "node scripts/build.js",
21 "precompile": "cross-env MODE=production yarn run build", 21 "precompile": "cross-env MODE=production yarn run build",
22 "compile": "yarn precompile && yarn compile:electron-builder", 22 "compile": "yarn precompile && yarn compile:electron-builder",
23 "compile:electron-builder": "electron-builder build --config .electron-builder.config.js --dir", 23 "compile:electron-builder": "electron-builder build --config .electron-builder.config.js --dir",
@@ -38,16 +38,19 @@
38 "devDependencies": { 38 "devDependencies": {
39 "@electron/fuses": "^1.5.0", 39 "@electron/fuses": "^1.5.0",
40 "@types/jest": "^27.0.3", 40 "@types/jest": "^27.0.3",
41 "@vitejs/plugin-react": "^1.1.3",
42 "chokidar": "^3.5.2",
41 "cross-env": "^7.0.3", 43 "cross-env": "^7.0.3",
42 "electron": "16.0.5", 44 "electron": "16.0.5",
43 "electron-builder": "^22.14.11", 45 "electron-builder": "^22.14.11",
46 "esbuild": "^0.14.9",
44 "eslint": "^8.5.0", 47 "eslint": "^8.5.0",
45 "jest": "^27.4.5", 48 "jest": "^27.4.5",
46 "rimraf": "^3.0.2", 49 "rimraf": "^3.0.2",
47 "rollup": "^2.62.0", 50 "rollup": "^2.62.0",
48 "ts-jest": "^27.1.2", 51 "ts-jest": "^27.1.2",
49 "typescript": "^4.5.4", 52 "typescript": "^4.5.4",
50 "vite": "^2.7.7" 53 "vite": "^2.7.9"
51 }, 54 },
52 "packageManager": "yarn@3.1.1" 55 "packageManager": "yarn@3.1.1"
53} 56}