Ver código fonte

chore: updated turbo.json, tools version and root package.json

benduran 3 semanas atrás
pai
commit
691d820a39

+ 2 - 2
.tool-versions

@@ -1,4 +1,4 @@
-nodejs 22.14.0
-pnpm 10.7.0
+nodejs 24.10.0
+pnpm 10.19.0
 rust 1.78.0
 python 3.12.4

+ 5 - 4
package.json

@@ -1,10 +1,10 @@
 {
   "name": "@pythnetwork/pyth-crosschain",
   "private": true,
-  "packageManager": "pnpm@10.7.0",
+  "packageManager": "pnpm@10.19.0",
   "engines": {
-    "node": "^22.14.0",
-    "pnpm": "^10.7.0"
+    "node": ">=22.16.0",
+    "pnpm": ">=10.19.0"
   },
   "scripts": {
     "fix:format": "prettier --write .",
@@ -13,9 +13,10 @@
     "turbo": "[ ! -d node_modules ] && pnpm install; turbo"
   },
   "devDependencies": {
+    "@better-builds/ts-duality": "catalog:",
     "@cprussin/prettier-config": "catalog:",
     "prettier": "catalog:",
     "prettier-plugin-solidity": "catalog:",
-    "turbo": "^2.4.4"
+    "turbo": "catalog:"
   }
 }

+ 7 - 2
packages/component-library/package.json

@@ -22,11 +22,11 @@
     "./theme": "./dist/esm/theme.scss"
   },
   "scripts": {
-    "build:declarations": "tsc --project tsconfig.build.json --outDir ./dist/esm",
-    "build:esm": "babel src --out-dir ./dist/esm --extensions .ts && babel src --out-dir ./dist/esm --extensions .tsx --out-file-extension .jsx",
+    "build": "ts-duality",
     "build:scss": "copyfiles -u 1 \"src/**/*.scss\" dist/esm",
     "build:storybook": "storybook build",
     "build:svg": "copyfiles -u 1 \"src/**/*.svg\" dist/esm",
+    "clean": "rm -rf ./dist",
     "fix:format": "prettier --write .",
     "fix:lint:eslint": "eslint --fix .",
     "fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
@@ -96,5 +96,10 @@
     "stylelint": "catalog:",
     "stylelint-config-standard-scss": "catalog:",
     "typescript": "catalog:"
+  },
+  "ts-duality": {
+    "extraExports": {
+      "./theme": "./dist/esm/theme.scss"
+    }
   }
 }

+ 5 - 0
packages/component-library/turbo.json

@@ -6,6 +6,7 @@
       "dependsOn": [
         "//#install:modules",
         "^build",
+        "clean",
         "build:declarations",
         "build:esm",
         "build:scss",
@@ -30,6 +31,10 @@
       "inputs": ["src/**/*.svg"],
       "outputs": ["dist/**/*.svg"]
     },
+    "clean": {
+      "cache": false,
+      "outputs": []
+    },
     "fix:lint": {
       "dependsOn": [
         "//#install:modules",

+ 3 - 1
pnpm-workspace.yaml

@@ -51,6 +51,7 @@ catalog:
   "@amplitude/analytics-browser": ^2.13.0
   "@amplitude/plugin-autocapture-browser": ^1.0.0
   "@axe-core/react": ^4.10.1
+  "@better-builds/ts-duality": beta
   "ag-grid-community": ^34.2.0
   "ag-grid-react": ^34.2.0
   "@babel/cli": ^7.27.2
@@ -159,7 +160,8 @@ catalog:
   tailwindcss-react-aria-components: ^2.0.0
   ts-node: ^10.9.2
   typedoc: ^0.26.8
-  typescript: ^5.8.2
+  typescript: ^5.9.3
+  turbo: ^2.5.8
   vercel: ^41.4.1
   viem: ^2.37.13
   wagmi: ^2.14.16