Skip to content

Commit 0354e29

Browse files
authored
Fix build.mjs: correct entryPoints from src/ to root xpower-flow-card.js
1 parent 17c2356 commit 0354e29

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

‎build.mjs‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ const watch = process.argv.includes('--watch');
77
const banner = `// xPower Flow Card v${pkg.version}\n// Copyright (C) 2025 BTNBx — MIT License\n`;
88

99
const opts = {
10-
entryPoints: ['src/xpower-flow-card.js'],
11-
outfile: 'xpower-flow-card.js',
12-
bundle: false,
13-
minify: true,
14-
sourcemap: false,
15-
target: ['es2020'],
16-
banner: { js: banner },
17-
logLevel: 'info',
10+
entryPoints: ['xpower-flow-card.js'],
11+
outfile: 'xpower-flow-card.js',
12+
bundle: false,
13+
minify: true,
14+
sourcemap: false,
15+
target: ['es2020'],
16+
banner: { js: banner },
17+
logLevel: 'info',
1818
};
1919

2020
if (watch) {
21-
const ctx = await context(opts);
22-
await ctx.watch();
23-
console.log('Watching for changes...');
21+
const ctx = await context(opts);
22+
await ctx.watch();
23+
console.log('Watching for changes...');
2424
} else {
25-
await build(opts);
26-
const { statSync } = await import('fs');
27-
const s = statSync('xpower-flow-card.js');
28-
console.log(`Output: xpower-flow-card.js (${(s.size / 1024).toFixed(1)} KB)`);
25+
await build(opts);
26+
const { statSync } = await import('fs');
27+
const s = statSync('xpower-flow-card.js');
28+
console.log(`Output: xpower-flow-card.js (${(s.size / 1024).toFixed(1)} KB)`);
2929
}

0 commit comments

Comments
 (0)