Skip to content

Commit

Permalink
Libs update + prettier formating
Browse files Browse the repository at this point in the history
  • Loading branch information
edolganov committed Aug 21, 2024
1 parent 1c564db commit ce7b712
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build.js
15 changes: 4 additions & 11 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
const esbuild = require('esbuild');
const { dtsPlugin } = require("esbuild-plugin-d.ts");
const { dtsPlugin } = require('esbuild-plugin-d.ts');

const libDest = 'dist/esbuild/smartypay-node-sdk.js';
const cliDest = 'dist/esbuild/smartypay-cli.js';

async function build(){

async function build() {
// lib
await esbuild.build({
logLevel: 'info',
Expand All @@ -15,12 +14,9 @@ async function build(){
sourcemap: 'external',
platform: 'node',
outfile: libDest,
plugins: [
dtsPlugin()
]
plugins: [dtsPlugin()],
});


// cli
await esbuild.build({
logLevel: 'info',
Expand All @@ -31,12 +27,9 @@ async function build(){
platform: 'node',
outfile: cliDest,
});

}


build().catch((e) => {
console.error('build error', e);
process.exit(1)
process.exit(1);
});

0 comments on commit ce7b712

Please sign in to comment.