1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

use correct lerna workspace setup

- `lerna bootstrap` is to be deprecated. The `yarn workspace` should be used instead: https://lerna.js.org/docs/getting-started#package-dependency-management
- `"@k8slens/semver": "./packages/semver"` syntax is not universally supported. (In fact, it's not supported by [flatpak_node_generator](https://github.com/flatpak/flatpak-builder-tools/tree/master/node) that I use to [publish this application to flathub.org](https://github.com/flathub/flathub/pull/3811). Of course, it would be [more standard-compliant](https://yarnpkg.com/features/workspaces#workspace-ranges-workspace) to use `workspace:` when you upgrade to yarn 2.

Signed-off-by: proletarius101 <proletarius101@protonmail.com>
This commit is contained in:
proletarius101 2023-02-09 20:53:49 +08:00
parent 9fd02672ae
commit 058817517a
No known key found for this signature in database
GPG Key ID: AD34DEC6F77D5511
3 changed files with 10615 additions and 139 deletions

View File

@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": false,
"useWorkspaces": true,
"packages": [
"packages/*"
],

View File

@ -1,6 +1,9 @@
{
"name": "lens-monorepo",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"adr:create": "echo \"What is the title?\"; read title; adr new \"$title\"",
"adr:change-status": "echo \"Decision number?:\"; read decision; adr status $decision",
@ -18,12 +21,11 @@
"test:unit": "lerna run --stream test:unit",
"test:integration": "lerna run --stream test:integration",
"bump-version": "lerna version --no-git-tag-version --no-push",
"create-release-pr": "create-release-pr",
"postinstall": "lerna bootstrap --ignore open-lens && lerna bootstrap --scope open-lens --include-dependencies"
"create-release-pr": "create-release-pr"
},
"devDependencies": {
"@k8slens/semver": "./packages/semver",
"@k8slens/release-tool": "./packages/release-tool",
"@k8slens/semver": "^6.4.0-beta.13",
"@k8slens/release-tool": "^6.4.0-beta.13",
"adr": "^1.4.3",
"cross-env": "^7.0.3",
"lerna": "^6.4.1",

10742
yarn.lock

File diff suppressed because it is too large Load Diff