Skip to content

Instantly share code, notes, and snippets.

@mikeshultz
Created November 2, 2023 20:50
Show Gist options
  • Save mikeshultz/cc35224bc440affa8fad585b27f8fe9f to your computer and use it in GitHub Desktop.
Save mikeshultz/cc35224bc440affa8fad585b27f8fe9f to your computer and use it in GitHub Desktop.
Using ApePay sdk in chaosnet FE
[mike@vemik cHaOSneT]$ cd ../ApePay/sdk/js
/home/mike/dev/ApePay/sdk/js
[mike@vemik js]$ pwd
/home/mike/dev/ApePay/sdk/js
[mike@vemik js]$ npm link
up to date, audited 3 packages in 467ms
found 0 vulnerabilities
[mike@vemik js]$ cd -
/home/mike/dev/cHaOSneT
[mike@vemik cHaOSneT]$ npm link @apeworx/apepay
up to date, audited 820 packages in 1s
189 packages are looking for funding
run `npm fund` for details
2 vulnerabilities (1 high, 1 critical)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
import path from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { nodePolyfills } from "vite-plugin-node-polyfills";
// https://vitejs.dev/config/
export default defineConfig({
[...snip...]
resolve: {
alias: {
"@apeworx/apepay": path.resolve(
__dirname,
"node_modules/@apeworx/apepay/index.ts",
),
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment