ソースを参照

Improve JS client build configurations (#40)

Loris Leiva 1 年間 前
コミット
1e34b70826

+ 5 - 0
.changeset/thick-planes-carry.md

@@ -0,0 +1,5 @@
+---
+"create-solana-program": patch
+---
+
+Improve JS client build configurations

+ 3 - 3
template/clients/js/clients/js/package.json.njk

@@ -34,13 +34,13 @@
   },
   "license": "MIT",
   "peerDependencies": {
-    "@solana/web3.js": "tp3"
+    "@solana/web3.js": "2.0.0-preview.3"
   },
   "devDependencies": {
     "@ava/typescript": "^4.1.0",
     "@solana/eslint-config-solana": "^3.0.0",
-    "@solana/web3.js": "tp3",
-    "@solana/webcrypto-ed25519-polyfill": "tp3",
+    "@solana/web3.js": "2.0.0-preview.3",
+    "@solana/webcrypto-ed25519-polyfill": "2.0.0-preview.3",
     "@typescript-eslint/eslint-plugin": "^7.3.1",
     "@typescript-eslint/parser": "^7.3.1",
     "ava": "^6.1.2",

+ 1 - 1
template/clients/js/clients/js/tsup.config.ts

@@ -21,7 +21,7 @@ export default defineConfig(() => [
   {
     ...SHARED_OPTIONS,
     bundle: false,
-    entry: ['./test/*.ts'],
+    entry: ['./test/**/*.ts'],
     format: 'cjs',
     outDir: './dist/test',
   },