Преглед на файлове

chore: Add repository url to all package.json files

Michael Bromley преди 9 месеца
родител
ревизия
d86ca35d52

+ 7 - 2
README.md

@@ -197,16 +197,21 @@ To make a release:
 
 ##### 1. `npm run publish-release`
 
-It will run `lerna publish` which will prompt for which version to update to. Although we are using [conventional commits](https://www.conventionalcommits.org), the version is not automatically being calculated from the commit messages. Therefore the next version should be manually selected.
+It will run `lerna version` which will prompt for which version to update to. Although we are using [conventional commits](https://www.conventionalcommits.org), the version is not automatically being calculated from the commit messages. Therefore, the next version should be manually selected.
 
 Next it will build all packages to ensure the distributed files are up to date.
 
-Finally, the command will create changelog entries for this release.
+Finally, the command will create changelog entries for this release and create a tagged commit.
 
 ##### 2. `git push origin master --follow-tags`
 
 The reason we do not rely on Lerna to push the release to Git is that this repo has a lengthy pre-push hook which runs all tests and builds the admin ui. This long wait then invalidates the npm OTP and the publish will fail. So the solution is to publish first and then push.
 
+##### 3. Create a GitHub release
+
+Finally, a GitHub release should be created based on the tag generated by Lerna. This will trigger the "Publish to npmjs" workflow
+which will publish & sign each package.
+
 ## License
 
 See [LICENSE.md](./LICENSE.md).

+ 5 - 1
packages/admin-ui-plugin/package.json

@@ -6,6 +6,10 @@
     "files": [
         "lib/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "license": "GPL-3.0-or-later",
     "scripts": {
         "build": "rimraf lib && node -r ts-node/register build.ts && npm run compile",
@@ -13,7 +17,7 @@
         "lint": "eslint --fix .",
         "compile": "tsc -p ./tsconfig.build.json"
     },
-    "homepage": "https://www.vendure.io/",
+    "homepage": "https://www.vendure.io",
     "funding": "https://github.com/sponsors/michaelbromley",
     "publishConfig": {
         "access": "public"

+ 5 - 1
packages/admin-ui/package.json

@@ -2,6 +2,10 @@
     "name": "@vendure/admin-ui",
     "version": "3.2.1",
     "license": "GPL-3.0-or-later",
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "scripts": {
         "ng": "ng",
         "dev": "node scripts/set-version.js && ng serve",
@@ -13,7 +17,7 @@
         "extract-translations": "node scripts/extract-translations.js",
         "ngcc": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points"
     },
-    "homepage": "https://www.vendure.io/",
+    "homepage": "https://www.vendure.io",
     "funding": "https://github.com/sponsors/michaelbromley",
     "publishConfig": {
         "access": "public",

+ 5 - 1
packages/asset-server-plugin/package.json

@@ -6,6 +6,10 @@
     "files": [
         "lib/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "license": "GPL-3.0-or-later",
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json --watch",
@@ -15,7 +19,7 @@
         "e2e": "cross-env PACKAGE=asset-server-plugin vitest --config ../../e2e-common/vitest.config.mts --run",
         "e2e:watch": "cross-env PACKAGE=asset-server-plugin vitest --config ../../e2e-common/vitest.config.mts"
     },
-    "homepage": "https://www.vendure.io/",
+    "homepage": "https://www.vendure.io",
     "funding": "https://github.com/sponsors/michaelbromley",
     "publishConfig": {
         "access": "public"

+ 1 - 1
packages/cli/package.json

@@ -13,7 +13,7 @@
         "graphql",
         "typescript"
     ],
-    "homepage": "https://www.vendure.io/",
+    "homepage": "https://www.vendure.io",
     "funding": "https://github.com/sponsors/michaelbromley",
     "private": false,
     "license": "GPL-3.0-or-later",

+ 5 - 1
packages/common/package.json

@@ -3,6 +3,10 @@
     "version": "3.2.1",
     "main": "index.js",
     "license": "GPL-3.0-or-later",
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json -w",
         "build": "rimraf lib && tsc -p ./tsconfig.build.json",
@@ -10,7 +14,7 @@
         "test": "vitest --run",
         "ci": "npm run build"
     },
-    "homepage": "https://www.vendure.io/",
+    "homepage": "https://www.vendure.io",
     "funding": "https://github.com/sponsors/michaelbromley",
     "publishConfig": {
         "access": "public"

+ 5 - 1
packages/create/package.json

@@ -10,6 +10,10 @@
         "lib/**/*",
         "assets/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "scripts": {
         "dev": "ts-node src/create-vendure-app.ts",
         "copy-assets": "rimraf assets && ts-node ./build.ts",
@@ -17,7 +21,7 @@
         "watch": "npm run copy-assets && rimraf lib && tsc -p ./tsconfig.build.json -w",
         "lint": "eslint --fix ."
     },
-    "homepage": "https://www.vendure.io/",
+    "homepage": "https://www.vendure.io",
     "funding": "https://github.com/sponsors/michaelbromley",
     "publishConfig": {
         "access": "public"

+ 9 - 0
packages/dashboard/package.json

@@ -3,6 +3,15 @@
     "private": false,
     "version": "3.2.1",
     "type": "module",
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
+    "homepage": "https://www.vendure.io",
+    "funding": "https://github.com/sponsors/michaelbromley",
+    "publishConfig": {
+        "access": "public"
+    },
     "scripts": {
         "dev": "vite",
         "build:lib": "vite build --config vite.config.lib.mts",

+ 4 - 0
packages/elasticsearch-plugin/package.json

@@ -7,6 +7,10 @@
     "files": [
         "lib/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json --watch",
         "build": "rimraf lib && tsc -p ./tsconfig.build.json",

+ 4 - 0
packages/email-plugin/package.json

@@ -9,6 +9,10 @@
         "templates/**/*",
         "dev-mailbox.html"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json --watch",
         "build": "rimraf lib && tsc -p ./tsconfig.build.json",

+ 4 - 0
packages/harden-plugin/package.json

@@ -7,6 +7,10 @@
     "files": [
         "lib/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json --watch",
         "build": "rimraf lib && tsc -p ./tsconfig.build.json",

+ 4 - 0
packages/job-queue-plugin/package.json

@@ -7,6 +7,10 @@
     "files": [
         "package/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "private": false,
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json --watch",

+ 4 - 0
packages/payments-plugin/package.json

@@ -7,6 +7,10 @@
     "files": [
         "package/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "private": false,
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json --watch",

+ 4 - 0
packages/sentry-plugin/package.json

@@ -7,6 +7,10 @@
     "files": [
         "lib/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json --watch",
         "build": "rimraf lib && tsc -p ./tsconfig.build.json",

+ 4 - 0
packages/stellate-plugin/package.json

@@ -7,6 +7,10 @@
     "files": [
         "lib/**/*"
     ],
+    "repository": {
+        "type": "git",
+        "url": "https://github.com/vendure-ecommerce/vendure"
+    },
     "scripts": {
         "watch": "tsc -p ./tsconfig.build.json --watch",
         "build": "rimraf lib && tsc -p ./tsconfig.build.json",

+ 1 - 1
packages/testing/package.json

@@ -23,7 +23,7 @@
     "types": "lib/index.d.ts",
     "repository": {
         "type": "git",
-        "url": "git+https://github.com/vendure-ecommerce/vendure.git"
+        "url": "https://github.com/vendure-ecommerce/vendure"
     },
     "funding": "https://github.com/sponsors/michaelbromley",
     "scripts": {

+ 2 - 2
packages/ui-devkit/package.json

@@ -8,7 +8,7 @@
         "extensions"
     ],
     "author": "Michael Bromley <michael@michaelbromley.co.uk>",
-    "homepage": "https://www.vendure.io/",
+    "homepage": "https://www.vendure.io",
     "license": "GPL-3.0-or-later",
     "files": [
         "client",
@@ -23,7 +23,7 @@
     "types": "client/index.d.ts",
     "repository": {
         "type": "git",
-        "url": "git+https://github.com/vendure-ecommerce/vendure.git"
+        "url": "https://github.com/vendure-ecommerce/vendure"
     },
     "scripts": {
         "build:client": "rimraf ./client && rollup -c rollup.config.mjs --configProduction",