Skip to content

Commit

Permalink
Merge pull request #88 from embroider-build/use-local-ec
Browse files Browse the repository at this point in the history
Use local ember-cli instead of global
  • Loading branch information
mansona authored Sep 27, 2024
2 parents f186cae + 6fee365 commit 2fb32d8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"prettier": "^3.2.5",
"prettier-plugin-ember-template-tag": "^2.0.2",
"release-plan": "^0.9.0",
"resolve-bin": "^1.0.1",
"strip-ansi": "^7.1.0",
"tmp-promise": "^3.0.3",
"vitest": "^1.6.0"
Expand Down
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tests/default.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { execa } from 'execa';
import copyWithTemplate from '../lib/copy-with-template';
import { existsSync, writeFileSync } from 'fs';
import stripAnsi from 'strip-ansi';
import { emberCli } from './helpers.mjs';

const blueprintPath = join(__dirname, '..');
const appName = 'fancy-app-in-test';
Expand All @@ -24,7 +25,7 @@ describe('basic functionality', function () {
'--skip-git',
];

await execa('ember', emberCliArgs, {
await execa(emberCli, emberCliArgs, {
cwd: tmpDir.path,
preferLocal: true,
});
Expand Down
7 changes: 7 additions & 0 deletions tests/helpers.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { sync as resolveBinSync } from 'resolve-bin';

function findEmber() {
return resolveBinSync('ember-cli', { executable: 'ember' });
}

export const emberCli = findEmber();

0 comments on commit 2fb32d8

Please sign in to comment.