Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 6d641a1

Browse files
authored
fix/peerdep import (#23)
* fix: upgrade pnpm version & add external pkg * fix: peerdep import error
1 parent 3d84dc5 commit 6d641a1

File tree

5 files changed

+95
-72
lines changed

5 files changed

+95
-72
lines changed

.changeset/dull-clouds-impress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@node-real/greenfield-uploadkit': patch
3+
---
4+
5+
fix: peerdep import error

.github/actions/setup/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runs:
1313
uses: pnpm/action-setup@v2
1414
id: pnpm-install
1515
with:
16-
version: 7
16+
version: 8
1717
run_install: false
1818

1919
- name: Setup pnpm config

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "greenfield-toolkit",
33
"version": "0.0.1",
44
"author": "node-real",
5-
"packageManager": "pnpm@7.33.6",
5+
"packageManager": "pnpm@8.9.2",
66
"description": "Greenfield Toolkit offers easy-to-use tools for developers to effortlessly start building on BNB Greenfield.",
77
"license": "MIT",
88
"scripts": {

packages/uploadkit/vite.config.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
import { defineConfig } from 'vite';
2-
// The default Vite plugin for React projects.
32
import react from '@vitejs/plugin-react';
4-
// Write your styles in TypeScript (or JavaScript) with locally scoped class names and CSS Variables, then generate static CSS files at build time.
53
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
6-
// A Vite plugin that generates declaration files (*.d.ts) from .ts(x) or .vue source files when using Vite in library mode.
74
import dts from 'vite-plugin-dts';
8-
// A Rollup plugin which locates modules using the Node resolution algorithm, for using third party modules in node_modules
95
import nodeResolve from '@rollup/plugin-node-resolve';
10-
// Automatically externalize peerDependencies in a rollup bundle.
116
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
127
import path from 'path';
138

@@ -35,7 +30,15 @@ export default defineConfig({
3530
},
3631
},
3732
rollupOptions: {
38-
external: ['react', 'react-dom', 'viem', 'wagmi', '@bnb-chain/greenfield-js-sdk'],
33+
external: [
34+
'react',
35+
'react-dom',
36+
'viem',
37+
'wagmi',
38+
'@bnb-chain/greenfield-cosmos-types',
39+
'@bnb-chain/greenfield-js-sdk',
40+
'@bnb-chain/reed-solomon',
41+
],
3942
plugins: [peerDepsExternal(), nodeResolve()],
4043
output: {
4144
chunkFileNames: 'common.js',

0 commit comments

Comments
 (0)