@joystick.js/cli-canary 0.0.0-canary.102 → 0.0.0-canary.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,9 +19,13 @@ const handleAvaSTDIO = (ava = {}) => {
19
19
  };
20
20
  const runAva = (__dirname = "") => {
21
21
  try {
22
- const avaPath = console.log(`node_modules/.bin/ava --config ${__dirname}/tests.config.js`);
22
+ const avaPath = `${__dirname}/node_modules/.bin/ava`;
23
+ console.log({
24
+ avaPath,
25
+ cmd: `${avaPath} --config ${__dirname}/tests.config.js`
26
+ });
23
27
  return new Promise((resolve, reject) => {
24
- const ava = child_process.exec(`node_modules/.bin/ava --config ${__dirname}/tests.config.js`, {
28
+ const ava = child_process.exec(`${avaPath} --config ${__dirname}/tests.config.js`, {
25
29
  stdio: "inherit",
26
30
  env: {
27
31
  ...process.env,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.102",
3
+ "version": "0.0.0-canary.103",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -24,10 +24,15 @@ const handleAvaSTDIO = (ava = {}) => {
24
24
 
25
25
  const runAva = (__dirname = '') => {
26
26
  try {
27
- const avaPath =
28
- console.log(`node_modules/.bin/ava --config ${__dirname}/tests.config.js`);
27
+ const avaPath = `${__dirname}/node_modules/.bin/ava`;
28
+
29
+ console.log({
30
+ avaPath,
31
+ cmd: `${avaPath} --config ${__dirname}/tests.config.js`,
32
+ });
33
+
29
34
  return new Promise((resolve, reject) => {
30
- const ava = child_process.exec(`node_modules/.bin/ava --config ${__dirname}/tests.config.js`, {
35
+ const ava = child_process.exec(`${avaPath} --config ${__dirname}/tests.config.js`, {
31
36
  stdio: 'inherit',
32
37
  env: {
33
38
  ...(process.env),