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 committed 2023-02-09 21:16:14 +08:00
1 parent 9fd02672ae
commit 058817517a
3 files changed
+10615 -139

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": false,
"useWorkspaces": true,
"packages": [
"packages/*"
],
+6 -4
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",
+10608 -134
View File
File diff suppressed because it is too large. Load diff