@joystick.js/cli-canary 0.0.0-canary.122 → 0.0.0-canary.123

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.
@@ -50,7 +50,7 @@ const handleAvaSTDIO = (ava = {}, options = {}) => {
50
50
  };
51
51
  const runAva = (options = {}) => {
52
52
  try {
53
- const packageRoot = options?.__dirname?.split("/dist")[0];
53
+ const packageRoot = process.cwd();
54
54
  const avaPath = `${packageRoot}/node_modules/.bin/ava`;
55
55
  return new Promise((resolve, reject) => {
56
56
  const ava = child_process.exec(`${avaPath} --config ${options?.__dirname}/tests.config.js`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.122",
3
+ "version": "0.0.0-canary.123",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -67,7 +67,7 @@ const runAva = (options = {}) => {
67
67
  // NOTE: __dirname includes the entire path to lib/dev/index.js but we only
68
68
  // care about the root folder/package here (we need to reference the node_modules
69
69
  // folder in the package).
70
- const packageRoot = options?.__dirname?.split('/dist')[0];
70
+ const packageRoot = process.cwd();
71
71
  const avaPath = `${packageRoot}/node_modules/.bin/ava`;
72
72
 
73
73
  return new Promise((resolve, reject) => {