From 3b9ff04faf730205d737ad5a2b3f80b04eade226 Mon Sep 17 00:00:00 2001 From: hasundue Date: Wed, 22 May 2024 22:05:00 +0900 Subject: [PATCH] chore: use workspaces for each packages --- cli/deno.json | 17 ----------------- core/deno.json | 14 -------------- deno.json | 22 +++++++++------------- deno.lock | 11 ++++++++++- integration/deno.json | 8 -------- lib/deno.json | 9 --------- 6 files changed, 19 insertions(+), 62 deletions(-) diff --git a/cli/deno.json b/cli/deno.json index 498cf589..f9b46c3c 100644 --- a/cli/deno.json +++ b/cli/deno.json @@ -13,22 +13,5 @@ "exclude": [ "*_test.ts" ] - }, - "imports": { - "@cliffy/ansi": "jsr:@cliffy/ansi@1.0.0-rc.4", - "@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.4", - "@conventional-commits/parser": "npm:@conventional-commits/parser@^0.4.1", - "@core/unknownutil": "jsr:@core/unknownutil@^3.18.0", - "@david/dax": "jsr:@david/dax@^0.40.0", - "@molt/lib": "jsr:@molt/lib@^0.18.0", - "@molt/core": "jsr:@molt/core@^0.18.4", - "@molt/integration": "jsr:@molt/integration@^0.18.0", - "@std/assert": "jsr:@std/assert@^0.222.1", - "@std/collections": "jsr:@std/collections@^0.222.1", - "@std/fmt": "jsr:@std/fmt@^0.222.1", - "@std/jsonc": "jsr:@std/jsonc@^0.222.1", - "@std/semver": "jsr:@std/semver@^0.222.1", - "@std/path": "jsr:@std/path@^0.222.1", - "@std/testing": "jsr:@std/testing@^0.222.1" } } diff --git a/core/deno.json b/core/deno.json index f05e23b0..d71ac663 100644 --- a/core/deno.json +++ b/core/deno.json @@ -14,19 +14,5 @@ "*_test.ts", "!import_map/js" ] - }, - "imports": { - "@core/unknownutil": "jsr:@core/unknownutil@^3.18.0", - "@deno/graph": "jsr:@deno/graph@^0.73.1", - "@lambdalisue/async": "jsr:@lambdalisue/async@^2.1.1", - "@molt/lib": "jsr:@molt/lib@^0.18.0", - "@std/assert": "jsr:@std/assert@^0.222.1", - "@std/collections": "jsr:@std/collections@^0.222.1", - "@std/fmt": "jsr:@std/fmt@^0.222.1", - "@std/fs": "jsr:@std/fs@^0.222.1", - "@std/jsonc": "jsr:@std/jsonc@^0.222.1", - "@std/path": "jsr:@std/path@^0.222.1", - "@std/semver": "jsr:@std/semver@^0.222.1", - "@std/testing": "jsr:@std/testing@^0.222.1" } } diff --git a/deno.json b/deno.json index e1294f0d..5d36c46a 100644 --- a/deno.json +++ b/deno.json @@ -20,6 +20,9 @@ "@david/dax": "jsr:@david/dax@^0.40.0", "@deno/graph": "jsr:@deno/graph@^0.73.1", "@lambdalisue/async": "jsr:@lambdalisue/async@^2.1.1", + "@molt/core": "jsr:@molt/core@^0.18.4", + "@molt/integration": "jsr:@molt/integration@^0.18.0", + "@molt/lib": "jsr:@molt/lib@^0.18.0", "@octokit/rest": "npm:@octokit/rest@^20.1.0", "@std/assert": "jsr:@std/assert@^0.222.1", "@std/collections": "jsr:@std/collections@^0.222.1", @@ -31,19 +34,6 @@ "@std/semver": "jsr:@std/semver@^0.222.1", "@std/testing": "jsr:@std/testing@^0.222.1" }, - "scopes": { - ".": { - "@molt/core": "./core/mod.ts", - "@molt/lib/path": "./lib/path.ts", - "@molt/lib/testing": "./lib/testing.ts", - "@molt/lib/changelog": "./lib/changelog.ts", - "@molt/integration": "./integration/mod.ts", - "@molt/integration/commits": "./integration/commits.ts", - "@molt/integration/github": "./integration/github.ts", - "@molt/integration/packages": "./integration/packages.ts", - "@molt/integration/repository": "./integration/repository.ts" - } - }, "lint": { "exclude": [ "test/cases", @@ -57,5 +47,11 @@ }, "exclude": [ "core/import_map" + ], + "workspaces": [ + "cli", + "core", + "integration", + "lib" ] } diff --git a/deno.lock b/deno.lock index fe18de1e..e8995156 100644 --- a/deno.lock +++ b/deno.lock @@ -356,6 +356,9 @@ "jsr:@david/dax@^0.40.0", "jsr:@deno/graph@^0.73.1", "jsr:@lambdalisue/async@^2.1.1", + "jsr:@molt/core@^0.18.4", + "jsr:@molt/integration@^0.18.0", + "jsr:@molt/lib@^0.18.0", "jsr:@std/assert@^0.222.1", "jsr:@std/collections@^0.222.1", "jsr:@std/dotenv@^0.222.1", @@ -367,6 +370,12 @@ "jsr:@std/testing@^0.222.1", "npm:@conventional-commits/parser@^0.4.1", "npm:@octokit/rest@^20.1.0" - ] + ], + "members": { + "@molt/cli": {}, + "@molt/core": {}, + "@molt/integration": {}, + "@molt/lib": {} + } } } diff --git a/integration/deno.json b/integration/deno.json index e99d33ac..e402dc06 100644 --- a/integration/deno.json +++ b/integration/deno.json @@ -12,13 +12,5 @@ "exclude": [ "*_test.ts" ] - }, - "imports": { - "@core/match": "jsr:@core/match@^0.2.5", - "@core/unknownutil": "jsr:@core/unknownutil@^3.18.0", - "@molt/core": "jsr:@molt/core@^0.18.0", - "@octokit/rest": "npm:@octokit/rest@^20.1.0", - "@std/jsonc": "jsr:@std/jsonc@^0.222.1", - "@std/path": "jsr:@std/path@^0.222.1" } } diff --git a/lib/deno.json b/lib/deno.json index bcc99e71..e25acc83 100644 --- a/lib/deno.json +++ b/lib/deno.json @@ -10,14 +10,5 @@ "exclude": [ "*_test.ts" ] - }, - "imports": { - "@conventional-commits/parser": "npm:@conventional-commits/parser@^0.4.1", - "@core/match": "jsr:@core/match@^0.2.5", - "@std/assert": "jsr:@std/assert@^0.222.1", - "@std/collections": "jsr:@std/collections@^0.222.1", - "@std/fs": "jsr:@std/fs@^0.222.1", - "@std/path": "jsr:@std/path@^0.222.1", - "@std/testing": "jsr:@std/testing@^0.222.1" } }