@nextsparkjs/theme-default 0.1.0-beta.35 → 0.1.0-beta.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/theme-default",
3
- "version": "0.1.0-beta.35",
3
+ "version": "0.1.0-beta.37",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./config/theme.config.ts",
@@ -17,7 +17,7 @@
17
17
  "react-dom": "^19.0.0",
18
18
  "react-markdown": "^10.1.0",
19
19
  "zod": "^4.0.0",
20
- "@nextsparkjs/core": "0.1.0-beta.36"
20
+ "@nextsparkjs/core": "0.1.0-beta.37"
21
21
  },
22
22
  "nextspark": {
23
23
  "type": "theme",
@@ -10,9 +10,11 @@
10
10
  import { defineConfig } from 'cypress'
11
11
  import path from 'path'
12
12
  import fs from 'fs'
13
+ import { fileURLToPath } from 'url'
13
14
 
14
- // __dirname is available because ts-node processes this file as CommonJS
15
- // (Next.js projects don't use "type": "module" in package.json)
15
+ // ESM/CJS compatibility: Create __dirname for ES modules
16
+ const __filename = fileURLToPath(import.meta.url)
17
+ const __dirname = path.dirname(__filename)
16
18
 
17
19
  // Paths relative to this config file
18
20
  const themeRoot = path.resolve(__dirname, '..')