Skip to content

Commit ac79213

Browse files
committed
Write faucet CLI bundle to build/cli-bundle
1 parent 9309bc3 commit ac79213

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/faucet/bin/cosmos-faucet-dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
const path = require("path");
33

44
// attempt to call in main file....
5-
const faucet = require(path.join(__dirname, "..", "dist", "node", "cli.js"));
5+
const faucet = require(path.join(__dirname, "..", "build", "cli-bundle", "cli.js"));
66
faucet.main(process.argv.slice(2));

packages/faucet/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"*.md",
1717
"!*.spec.*",
1818
"!*testutils.*",
19+
"!**/cli-bundle/",
1920
"!**/karma-bundle/",
2021
"!**/testdata/"
2122
],

packages/faucet/webpack.node.config.cjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
const path = require("path");
22

3-
const target = "node";
4-
const distdir = path.join(__dirname, "dist", target);
3+
const cliBundleDir = path.join(__dirname, "build", "cli-bundle");
54

65
module.exports = [
76
{
8-
target: target,
7+
target: "node",
98
entry: "./build/cli.js",
109
output: {
1110
asyncChunks: false,
12-
path: distdir,
11+
path: cliBundleDir,
1312
filename: "cli.js",
1413
library: {
1514
type: "commonjs",

0 commit comments

Comments
 (0)