aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/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 /packages/shared/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 'packages/shared/package.json')
-rw-r--r--packages/shared/package.json8
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/shared/package.json b/packages/shared/package.json
index a2e4232..3db4cb1 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -3,12 +3,11 @@
3 "version": "0.1.0", 3 "version": "0.1.0",
4 "private": true, 4 "private": true,
5 "sideEffects": false, 5 "sideEffects": false,
6 "main": "dist/index.cjs", 6 "main": "src/index.ts",
7 "module": "dist/index.es.js", 7 "module": "dist/index.mjs",
8 "types": "dist/index.d.ts", 8 "types": "dist/index.d.ts",
9 "scripts": { 9 "scripts": {
10 "clean": "rimraf dist tsconfig.tsbuildinfo", 10 "clean": "rimraf dist tsconfig.tsbuildinfo",
11 "build": "vite build",
12 "typecheck": "tsc" 11 "typecheck": "tsc"
13 }, 12 },
14 "dependencies": { 13 "dependencies": {
@@ -18,7 +17,6 @@
18 }, 17 },
19 "devDependencies": { 18 "devDependencies": {
20 "rimraf": "^3.0.2", 19 "rimraf": "^3.0.2",
21 "typescript": "^4.5.4", 20 "typescript": "^4.5.4"
22 "vite": "^2.7.7"
23 } 21 }
24} 22}