From 6b91727f4a4d979034cc7aa98fe19979d5f064ce Mon Sep 17 00:00:00 2001 From: Nika Otiashvili Date: Fri, 11 Nov 2022 16:30:58 +0400 Subject: [PATCH] Add install script, revert workspaces change This also reverts commit 672ec5b2b3bba3e4902ac15a130ab0f8b86f7a6d. --- README.md | 2 +- lerna.json | 1 - package.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 556e97a8..2a051da3 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Key features: To install all dependencies and run dev server, run: ```shell -yarn && yarn start +yarn setup && yarn start ``` ### Examples diff --git a/lerna.json b/lerna.json index 92a9db2f..76d4a889 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,6 @@ "packages": [ "packages/*" ], - "useWorkspaces": true, "npmClient": "yarn", "version": "2.3.11" } diff --git a/package.json b/package.json index 2b4e66ba..9d09fe34 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "private": true, "repository": "https://github.com/domql/domql", - "workspaces": [ "packages/*" ], "scripts": { + "setup": "yarn && lerna link --force-local", "start": "parcel examples/index.html --no-cache --port 1200", "build": "lerna run build", "build:domql": "parcel build packages/all/index.js && esbuild packages/all/index.js --bundle --format=cjs --outfile=packages/all/dist/module.bundle.cjs.js && esbuild packages/all/allExports.js --bundle --format=cjs --outfile=packages/all/dist/exports.js",