Skip to content

Commit b181c98

Browse files
committed
Don't use npx for http-server
1 parent ea060f6 commit b181c98

3 files changed

Lines changed: 71 additions & 23 deletions

File tree

bin/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ console.log('Building production app...');
88
execSync('ember build --environment=production', { stdio: 'inherit' });
99

1010
console.log(`\nStarting http-server on port ${PORT}...`);
11-
const server = spawn('npx', ['http-server', '-p', String(PORT)], {
11+
const server = spawn('http-server', ['-p', String(PORT), '--silent'], {
1212
cwd: join(process.cwd(), 'dist'),
13-
stdio: 'inherit',
13+
stdio: 'ignore',
1414
});
1515

1616
// Wait for server to be ready

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
"eslint-plugin-qunit": "^8.2.5",
101101
"express-sslify": "^1.2.0",
102102
"globals": "^15.15.0",
103+
"http-server": "^14.1.1",
103104
"lint-to-the-future": "^2.6.3",
104105
"lint-to-the-future-ember-template": "^4.1.0",
105106
"lint-to-the-future-eslint": "^3.1.0",

pnpm-lock.yaml

Lines changed: 68 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)