From 0eac8d9c5cb1e5f04747bc2de0ee6b7350bb4010 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Tue, 1 Feb 2022 15:25:51 -0600 Subject: [PATCH] Yarn workspaces (#42) * Try yarn workspaces * Add versions to sub package.json files --- .gitignore | 2 ++ common/package.json | 3 ++- functions/package.json | 1 + package.json | 12 ++++++++++++ web/package.json | 3 ++- 5 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 90399065..7c2f76f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .DS_Store .vercel +node_modules +yarn.lock diff --git a/common/package.json b/common/package.json index 1219c8f0..033c193c 100644 --- a/common/package.json +++ b/common/package.json @@ -1,5 +1,6 @@ { - "name": "mantic-common", + "name": "common", + "version": "1.0.0", "private": true, "scripts": {}, "dependencies": { diff --git a/functions/package.json b/functions/package.json index 20991499..144d3d54 100644 --- a/functions/package.json +++ b/functions/package.json @@ -1,5 +1,6 @@ { "name": "functions", + "version": "1.0.0", "scripts": { "build": "tsc", "watch": "tsc -w", diff --git a/package.json b/package.json new file mode 100644 index 00000000..098f9cce --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name": "mantic", + "private": true, + "workspaces": [ + "common", + "functions", + "web" + ], + "scripts": {}, + "dependencies": {}, + "devDependencies": {} +} diff --git a/web/package.json b/web/package.json index 9bcede3d..96ef19fb 100644 --- a/web/package.json +++ b/web/package.json @@ -1,5 +1,6 @@ { - "name": "mantic", + "name": "web", + "version": "1.0.0", "private": true, "scripts": { "dev": "concurrently -n NEXT,TS -c magenta,cyan \"next dev -p 3000\" \"yarn ts --watch\"",