@nextsparkjs/core 0.1.0-beta.36 → 0.1.0-beta.38
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/presets/theme/tests/cypress.config.ts +2 -0
- package/dist/styles/classes.json +1 -1
- package/dist/templates/contents/themes/starter/tests/cypress.config.ts +1 -2
- package/dist/templates/tsconfig.cypress.json +2 -2
- package/package.json +1 -1
- package/templates/contents/themes/starter/tests/cypress.config.ts +1 -2
- package/templates/tsconfig.cypress.json +2 -2
|
@@ -9,6 +9,8 @@ import { defineConfig } from 'cypress'
|
|
|
9
9
|
import path from 'path'
|
|
10
10
|
import fs from 'fs'
|
|
11
11
|
|
|
12
|
+
// __dirname works natively with CommonJS module resolution (tsconfig.cypress.json)
|
|
13
|
+
|
|
12
14
|
// Paths relative to this config file
|
|
13
15
|
const themeRoot = path.resolve(__dirname, '..')
|
|
14
16
|
const projectRoot = path.resolve(__dirname, '../../../..')
|
package/dist/styles/classes.json
CHANGED
|
@@ -11,8 +11,7 @@ import { defineConfig } from 'cypress'
|
|
|
11
11
|
import path from 'path'
|
|
12
12
|
import fs from 'fs'
|
|
13
13
|
|
|
14
|
-
// __dirname
|
|
15
|
-
// (Next.js projects don't use "type": "module" in package.json)
|
|
14
|
+
// __dirname works natively with CommonJS module resolution (tsconfig.cypress.json)
|
|
16
15
|
|
|
17
16
|
// Paths relative to this config file
|
|
18
17
|
const themeRoot = path.resolve(__dirname, '..')
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"target": "ES2020",
|
|
5
5
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
-
"module": "
|
|
7
|
-
"moduleResolution": "
|
|
6
|
+
"module": "CommonJS",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
8
|
"esModuleInterop": true,
|
|
9
9
|
"allowSyntheticDefaultImports": true,
|
|
10
10
|
"strict": true,
|
package/package.json
CHANGED
|
@@ -11,8 +11,7 @@ import { defineConfig } from 'cypress'
|
|
|
11
11
|
import path from 'path'
|
|
12
12
|
import fs from 'fs'
|
|
13
13
|
|
|
14
|
-
// __dirname
|
|
15
|
-
// (Next.js projects don't use "type": "module" in package.json)
|
|
14
|
+
// __dirname works natively with CommonJS module resolution (tsconfig.cypress.json)
|
|
16
15
|
|
|
17
16
|
// Paths relative to this config file
|
|
18
17
|
const themeRoot = path.resolve(__dirname, '..')
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"target": "ES2020",
|
|
5
5
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
-
"module": "
|
|
7
|
-
"moduleResolution": "
|
|
6
|
+
"module": "CommonJS",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
8
|
"esModuleInterop": true,
|
|
9
9
|
"allowSyntheticDefaultImports": true,
|
|
10
10
|
"strict": true,
|