From e5f36e7a321c13ee25e74eb74d2a5f3d7517119c Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Mon, 8 Jan 2024 17:26:19 -0800 Subject: [PATCH] fix: Add repository directory to all package descriptors --- packages/base64/package.json | 3 ++- packages/bundle-source/package.json | 3 ++- packages/captp/package.json | 3 ++- packages/check-bundle/package.json | 3 ++- packages/cjs-module-analyzer/package.json | 3 ++- packages/cli/package.json | 3 ++- packages/compartment-mapper/package.json | 3 ++- packages/daemon/package.json | 3 ++- packages/env-options/package.json | 3 ++- packages/errors/package.json | 3 ++- packages/eslint-plugin/package.json | 5 ++++- packages/evasive-transform/package.json | 3 ++- packages/eventual-send/package.json | 3 ++- packages/exo/package.json | 3 ++- packages/far/package.json | 3 ++- packages/import-bundle/package.json | 18 ++++++++++++------ packages/init/package.json | 3 ++- packages/lockdown/package.json | 3 ++- packages/lp32/package.json | 3 ++- packages/marshal/package.json | 3 ++- packages/memoize/package.json | 3 ++- packages/nat/package.json | 3 ++- packages/netstring/package.json | 3 ++- packages/pass-style/package.json | 3 ++- packages/patterns/package.json | 3 ++- packages/promise-kit/package.json | 3 ++- packages/ses-ava/package.json | 3 ++- packages/ses-integration-test/package.json | 3 ++- packages/ses/package.json | 3 ++- packages/skel/package.json | 3 ++- packages/static-module-record/package.json | 3 ++- packages/stream-node/package.json | 3 ++- packages/stream-types-test/package.json | 3 ++- packages/stream/package.json | 3 ++- packages/syrup/package.json | 3 ++- packages/test262-runner/package.json | 3 +++ packages/where/package.json | 3 ++- packages/zip/package.json | 3 ++- scripts/create-package.sh | 1 + 39 files changed, 90 insertions(+), 42 deletions(-) diff --git a/packages/base64/package.json b/packages/base64/package.json index de2982b836..ae8fe489f6 100644 --- a/packages/base64/package.json +++ b/packages/base64/package.json @@ -12,7 +12,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/base64/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/base64" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/bundle-source/package.json b/packages/bundle-source/package.json index 9ebb6af853..7fbfc6bd38 100644 --- a/packages/bundle-source/package.json +++ b/packages/bundle-source/package.json @@ -56,7 +56,8 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo" + "url": "git+https://github.com/endojs/endo", + "directory": "packages/bundle-source" }, "author": "Endo contributors", "license": "Apache-2.0", diff --git a/packages/captp/package.json b/packages/captp/package.json index 2ca2a07740..7864c7927c 100644 --- a/packages/captp/package.json +++ b/packages/captp/package.json @@ -30,7 +30,8 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/captp" }, "scripts": { "build": "exit 0", diff --git a/packages/check-bundle/package.json b/packages/check-bundle/package.json index 84be999f5c..641fc49982 100644 --- a/packages/check-bundle/package.json +++ b/packages/check-bundle/package.json @@ -14,7 +14,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/check-bundle#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/check-bundle" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/cjs-module-analyzer/package.json b/packages/cjs-module-analyzer/package.json index cb82af73b2..3fb3a77105 100644 --- a/packages/cjs-module-analyzer/package.json +++ b/packages/cjs-module-analyzer/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/cjs-module-analyzer#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/cjs-module-analyzer" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/cli/package.json b/packages/cli/package.json index 8884eb120f..99b48d3d10 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/cli/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/cli" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/compartment-mapper/package.json b/packages/compartment-mapper/package.json index 0f292e4f89..c22559b4e1 100644 --- a/packages/compartment-mapper/package.json +++ b/packages/compartment-mapper/package.json @@ -13,7 +13,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/compartment-mapper#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/compartment-mapper" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/daemon/package.json b/packages/daemon/package.json index a6d3b0d568..e5f03debc4 100644 --- a/packages/daemon/package.json +++ b/packages/daemon/package.json @@ -11,7 +11,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/daemon/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/daemon" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/env-options/package.json b/packages/env-options/package.json index e50cc27bd7..ab5511b8c9 100644 --- a/packages/env-options/package.json +++ b/packages/env-options/package.json @@ -9,7 +9,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/env-options#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/env-options" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/errors/package.json b/packages/errors/package.json index b265c15648..783ec5714c 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/errors#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/errors" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 8c98f99896..3d15fb357b 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -31,5 +31,8 @@ "publishConfig": { "access": "public" }, - "license": "Apache-2.0" + "license": "Apache-2.0", + "repository": { + "directory": "packages/eslint-plugin" + } } diff --git a/packages/evasive-transform/package.json b/packages/evasive-transform/package.json index 0da50db6b0..27f3892048 100644 --- a/packages/evasive-transform/package.json +++ b/packages/evasive-transform/package.json @@ -11,7 +11,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/evasive-transform#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/evasive-transform" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/eventual-send/package.json b/packages/eventual-send/package.json index dfcc846262..ab09fec15f 100644 --- a/packages/eventual-send/package.json +++ b/packages/eventual-send/package.json @@ -26,7 +26,8 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/eventual-send" }, "author": "Endo contributors", "license": "Apache-2.0", diff --git a/packages/exo/package.json b/packages/exo/package.json index 5f0412b54e..09f58bbe1e 100644 --- a/packages/exo/package.json +++ b/packages/exo/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/exo/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/exo" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/far/package.json b/packages/far/package.json index 920ce96711..5acbefded1 100644 --- a/packages/far/package.json +++ b/packages/far/package.json @@ -23,7 +23,8 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/far" }, "author": "Endo contributors", "license": "Apache-2.0", diff --git a/packages/import-bundle/package.json b/packages/import-bundle/package.json index ef94ca706a..da44531992 100644 --- a/packages/import-bundle/package.json +++ b/packages/import-bundle/package.json @@ -2,6 +2,18 @@ "name": "@endo/import-bundle", "version": "1.0.2", "description": "load modules created by @endo/bundle-source", + "keywords": [], + "author": "Endo contributors", + "license": "Apache-2.0", + "homepage": "https://github.com/endojs/endo/tree/master/packages/import-bundle", + "repository": { + "type": "git", + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/import-bundle" + }, + "bugs": { + "url": "https://github.com/endojs/endo/issues" + }, "type": "module", "main": "src/index.js", "module": "src/index.js", @@ -47,12 +59,6 @@ "*.js", "*.ts" ], - "author": "Endo contributors", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/endojs/endo/issues" - }, - "homepage": "https://github.com/endojs/endo/tree/master/packages/import-bundle", "eslintConfig": { "extends": [ "plugin:@endo/internal" diff --git a/packages/init/package.json b/packages/init/package.json index b3eb1045ee..7f5a78273e 100644 --- a/packages/init/package.json +++ b/packages/init/package.json @@ -48,7 +48,8 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/init" }, "author": "Endo contributors", "license": "Apache-2.0", diff --git a/packages/lockdown/package.json b/packages/lockdown/package.json index 79f7442f35..bc716d416b 100644 --- a/packages/lockdown/package.json +++ b/packages/lockdown/package.json @@ -32,7 +32,8 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/lockdown" }, "author": "Agoric", "license": "Apache-2.0", diff --git a/packages/lp32/package.json b/packages/lp32/package.json index d6720b9249..8420ff9b12 100644 --- a/packages/lp32/package.json +++ b/packages/lp32/package.json @@ -19,7 +19,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/lp32/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/lp32" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/marshal/package.json b/packages/marshal/package.json index 41c1da8461..21986b2982 100644 --- a/packages/marshal/package.json +++ b/packages/marshal/package.json @@ -28,7 +28,8 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/marshal" }, "keywords": [ "marshal" diff --git a/packages/memoize/package.json b/packages/memoize/package.json index 4326b5c1ac..4075081fe4 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -9,7 +9,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/memoize#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/memoize" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/nat/package.json b/packages/nat/package.json index 802f86498d..c0f9ec5ce1 100644 --- a/packages/nat/package.json +++ b/packages/nat/package.json @@ -16,7 +16,8 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/nat" }, "author": "Endo contributors", "license": "Apache-2.0", diff --git a/packages/netstring/package.json b/packages/netstring/package.json index 5edee29cc6..6327bfc36e 100644 --- a/packages/netstring/package.json +++ b/packages/netstring/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/netstring/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/netstring" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/pass-style/package.json b/packages/pass-style/package.json index 88fa405c7f..17d28274f0 100644 --- a/packages/pass-style/package.json +++ b/packages/pass-style/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/pass-style#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/pass-style" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/patterns/package.json b/packages/patterns/package.json index 5324eb2577..8b00d40fc3 100644 --- a/packages/patterns/package.json +++ b/packages/patterns/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/patterns/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/patterns" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/promise-kit/package.json b/packages/promise-kit/package.json index f05577afab..f6f37c4974 100644 --- a/packages/promise-kit/package.json +++ b/packages/promise-kit/package.json @@ -10,7 +10,8 @@ "homepage": "https://github.com/endojs/endo#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/promise-kit" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/ses-ava/package.json b/packages/ses-ava/package.json index 3add760d69..28177661fb 100644 --- a/packages/ses-ava/package.json +++ b/packages/ses-ava/package.json @@ -11,7 +11,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/ses-ava#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/ses-ava" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/ses-integration-test/package.json b/packages/ses-integration-test/package.json index 3686acb651..e53591c149 100644 --- a/packages/ses-integration-test/package.json +++ b/packages/ses-integration-test/package.json @@ -9,7 +9,8 @@ "homepage": "https://github.com/Agoric/SES-shim/tree/master/packages/ses-integration-test#readme", "repository": { "type": "git", - "url": "git+https://github.com/Agoric/SES-shim.git" + "url": "git+https://github.com/Agoric/SES-shim.git", + "directory": "packages/ses-integration-test" }, "bugs": { "url": "https://github.com/Agoric/SES-shim/issues" diff --git a/packages/ses/package.json b/packages/ses/package.json index 7f6f296616..e88a85f366 100644 --- a/packages/ses/package.json +++ b/packages/ses/package.json @@ -23,7 +23,8 @@ "homepage": "https://github.com/Agoric/SES-shim/tree/master/packages/ses#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/ses" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/skel/package.json b/packages/skel/package.json index be2015b3f8..09c5583383 100644 --- a/packages/skel/package.json +++ b/packages/skel/package.json @@ -9,7 +9,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/skel#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/skel" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/static-module-record/package.json b/packages/static-module-record/package.json index 0b0905b734..e081df0d15 100644 --- a/packages/static-module-record/package.json +++ b/packages/static-module-record/package.json @@ -13,7 +13,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/static-module-record#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/static-module-record" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/stream-node/package.json b/packages/stream-node/package.json index b14de7695c..fe704e2a2e 100644 --- a/packages/stream-node/package.json +++ b/packages/stream-node/package.json @@ -14,7 +14,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/stream-node#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/stream-node" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/stream-types-test/package.json b/packages/stream-types-test/package.json index e221a4d47d..efa8b26496 100644 --- a/packages/stream-types-test/package.json +++ b/packages/stream-types-test/package.json @@ -9,7 +9,8 @@ "homepage": "https://github.com/endojs/endo/tree/master/packages/stream-types-test#readme", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/stream-types-test" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/stream/package.json b/packages/stream/package.json index 23a07f06c5..5046b6c5f4 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -15,7 +15,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/stream/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/stream" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/syrup/package.json b/packages/syrup/package.json index ade5953399..d62f1133cf 100644 --- a/packages/syrup/package.json +++ b/packages/syrup/package.json @@ -12,7 +12,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/syrup/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/syrup" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/test262-runner/package.json b/packages/test262-runner/package.json index d5e227ea05..a63a2a573e 100644 --- a/packages/test262-runner/package.json +++ b/packages/test262-runner/package.json @@ -25,5 +25,8 @@ "extends": [ "plugin:@endo/internal" ] + }, + "repository": { + "directory": "packages/test262-runner" } } diff --git a/packages/where/package.json b/packages/where/package.json index 0badcc4a4d..e56c915cf0 100644 --- a/packages/where/package.json +++ b/packages/where/package.json @@ -8,7 +8,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/where/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/where" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/zip/package.json b/packages/zip/package.json index b7902af4d0..3b8cf05834 100644 --- a/packages/zip/package.json +++ b/packages/zip/package.json @@ -12,7 +12,8 @@ "homepage": "https://github.com/endojs/endo/blob/master/packages/zip/README.md", "repository": { "type": "git", - "url": "git+https://github.com/endojs/endo.git" + "url": "git+https://github.com/endojs/endo.git", + "directory": "packages/zip" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/scripts/create-package.sh b/scripts/create-package.sh index ffae467200..81d39e3d63 100755 --- a/scripts/create-package.sh +++ b/scripts/create-package.sh @@ -45,6 +45,7 @@ NEWPKGJSONHASH=$( name: (.name // "@endo/\($name)"), version: (.version // "0.1.0"), homepage: (.homepage // "https://github.com/endojs/endo/tree/master/packages/\($name)#readme"), + repository: (.repository + { directory: "packages/\($name)" }), scripts: ((.scripts // {}) | to_entries | sort_by(.key) | from_entries), dependencies: ((.dependencies // {}) | to_entries | sort_by(.key) | from_entries), devDependencies: ((.devDependencies // {}) | to_entries | sort_by(.key) | from_entries),