testblocks 0.5.0 → 0.6.0

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.
package/dist/cli/index.js CHANGED
@@ -230,7 +230,7 @@ program
230
230
  'test:junit': 'testblocks run tests/**/*.testblocks.json -r junit -o reports',
231
231
  },
232
232
  devDependencies: {
233
- testblocks: '^0.5.0',
233
+ testblocks: '^0.6.0',
234
234
  },
235
235
  };
236
236
  fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2));
@@ -57,8 +57,16 @@ const path = __importStar(require("path"));
57
57
  const jiti_1 = require("jiti");
58
58
  const core_1 = require("../core");
59
59
  // Create jiti instance for loading TypeScript plugins at runtime
60
+ // Configure it to resolve modules from the user's working directory
60
61
  const jiti = (0, jiti_1.createJiti)(__filename, {
61
62
  interopDefault: true,
63
+ moduleCache: false,
64
+ alias: {
65
+ // Allow plugins to import from 'testblocks' even if they use old relative paths
66
+ '../../src/core': path.join(__dirname, '..', 'core'),
67
+ '../src/core': path.join(__dirname, '..', 'core'),
68
+ './src/core': path.join(__dirname, '..', 'core'),
69
+ },
62
70
  });
63
71
  // Track initialization
64
72
  let pluginsInitialized = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testblocks",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Visual test automation tool with Blockly - API and Playwright testing",
5
5
  "author": "Roy de Kleijn",
6
6
  "license": "MIT",