Compare commits

...

3 Commits

Author SHA1 Message Date
65b670d0dd
Tornado CLI 1.0.3-alpha
Fixed withdraw command from cli.js
2024-04-29 05:08:35 +00:00
5dc2b230ba
Rebuilt cli.js 2024-04-29 05:07:26 +00:00
8a0bd4a0d6
Build cli.js from webpack instead of rollup.js 2024-04-29 05:04:44 +00:00
4 changed files with 145594 additions and 174364 deletions

388568
dist/cli.js vendored

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
{ {
"name": "tornado-cli", "name": "tornado-cli",
"version": "1.0.2-alpha", "version": "1.0.3-alpha",
"description": "Modern Toolsets for Privacy Pools on Ethereum", "description": "Modern Toolsets for Privacy Pools on Ethereum",
"main": "./dist/index.js", "main": "./dist/index.js",
"module": "./dist/index.mjs", "module": "./dist/index.mjs",

@ -55,28 +55,6 @@ const config = [
json() json()
], ],
}, },
{
input: 'src/cli.ts',
output: [
{
file: pkgJson.bin[pkgJson.name],
format: "cjs",
esModule: false,
banner: '#!/usr/bin/env node\n'
},
],
plugins: [
esbuild({
include: /\.[jt]sx?$/,
minify: false,
sourceMap: true,
target: 'es2016',
}),
commonjs(),
nodeResolve(),
json()
],
},
{ {
input: 'src/merkleTreeWorker.ts', input: 'src/merkleTreeWorker.ts',
output: [ output: [

@ -53,6 +53,26 @@ module.exports = [
minimize: false, minimize: false,
} }
}, },
{
mode: 'production',
module: {
rules: [esbuildLoader]
},
entry: './src/cli.ts',
output: {
filename: 'cli.js',
path: path.resolve(__dirname, './dist'),
},
target: 'node',
plugins: [],
resolve: {
extensions: ['.tsx', '.ts', '.js'],
alias: {}
},
optimization: {
minimize: false,
}
},
{ {
mode: 'production', mode: 'production',
module: { module: {