Quellcode durchsuchen

fix: use pnpm to publish instead of lerna

We need to use `pnpm publish` instead of `lerna publish` now that we're using
catalogs, because pnpm is responsible for resolving the catalogs into real
dependencies.

This PR also bumps staking-sdk since the published version currently has
unresolved catalog dependencies.
Connor Prussin vor 7 Monaten
Ursprung
Commit
67e1021b53

+ 0 - 1
.github/CODEOWNERS

@@ -8,7 +8,6 @@ packages/fonts @pyth-network/web-team
 packages/known-publishers @pyth-network/web-team
 packages/next-root @pyth-network/web-team
 Dockerfile.node @pyth-network/web-team
-lerna.json @pyth-network/web-team
 package.json @pyth-network/web-team
 pnpm-workspace.yaml @pyth-network/web-team
 turbo.json @pyth-network/web-team

+ 1 - 1
.github/workflows/publish-js.yml

@@ -27,4 +27,4 @@ jobs:
         env:
           NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
       - run: pnpm run turbo build
-      - run: pnpm run publish
+      - run: pnpm publish -r

+ 1 - 1
governance/pyth_staking_sdk/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@pythnetwork/staking-sdk",
-  "version": "0.1.0",
+  "version": "0.1.1",
   "description": "Pyth staking SDK",
   "main": "src/index.ts",
   "types": "src/index.d.ts",

+ 0 - 5
lerna.json

@@ -1,5 +0,0 @@
-{
-  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
-  "version": "independent",
-  "npmClient": "pnpm"
-}

+ 0 - 2
package.json

@@ -9,13 +9,11 @@
   "scripts": {
     "fix:format": "prettier --write .",
     "install:modules": "[ $CI ] && true || pnpm install",
-    "publish": "lerna publish from-package --no-private --no-git-tag-version --yes",
     "test:format": "prettier --check .",
     "turbo": "[ ! -d node_modules ] && pnpm install; turbo"
   },
   "devDependencies": {
     "@cprussin/prettier-config": "catalog:",
-    "lerna": "catalog:",
     "prettier": "catalog:",
     "prettier-plugin-solidity": "catalog:",
     "turbo": "^2.4.4"

Datei-Diff unterdrückt, da er zu groß ist
+ 7 - 521
pnpm-lock.yaml


+ 0 - 1
pnpm-workspace.yaml

@@ -99,7 +99,6 @@ catalog:
   highlight.js: ^11.11.1
   ip-range-check: ^0.2.0
   jest: ^29.7.0
-  lerna: ^8.2.1
   lightweight-charts: ^5.0.5
   lucide-react: ^0.487.0
   modern-normalize: ^3.0.1

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.