From 61fd13c55f5e69a9d8b32dd0d74b08870783bcce Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 30 Dec 2021 00:26:01 +0100 Subject: 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). --- packages/shared/package.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packages/shared/package.json') 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 @@ "version": "0.1.0", "private": true, "sideEffects": false, - "main": "dist/index.cjs", - "module": "dist/index.es.js", + "main": "src/index.ts", + "module": "dist/index.mjs", "types": "dist/index.d.ts", "scripts": { "clean": "rimraf dist tsconfig.tsbuildinfo", - "build": "vite build", "typecheck": "tsc" }, "dependencies": { @@ -18,7 +17,6 @@ }, "devDependencies": { "rimraf": "^3.0.2", - "typescript": "^4.5.4", - "vite": "^2.7.7" + "typescript": "^4.5.4" } } -- cgit v1.2.3-54-g00ecf