@screenly/edge-apps 0.0.14 → 0.0.16
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* global process */
|
|
1
2
|
import path from 'path'
|
|
2
3
|
import { createRequire } from 'module'
|
|
3
4
|
import { fileURLToPath } from 'url'
|
|
@@ -5,11 +6,10 @@ import { existsSync } from 'fs'
|
|
|
5
6
|
|
|
6
7
|
const PREVIEW_PORT = 4173
|
|
7
8
|
|
|
8
|
-
// Resolve @playwright/test from the calling app's node_modules, not the library's
|
|
9
9
|
const appRequire = createRequire(path.join(process.cwd(), 'package.json'))
|
|
10
10
|
|
|
11
|
-
let defineConfig
|
|
12
|
-
let devices
|
|
11
|
+
let defineConfig
|
|
12
|
+
let devices
|
|
13
13
|
|
|
14
14
|
try {
|
|
15
15
|
const playwrightTest = appRequire('@playwright/test')
|
package/package.json
CHANGED
package/scripts/cli.ts
CHANGED
|
@@ -224,7 +224,7 @@ async function screenshotsCommand(_args: string[]) {
|
|
|
224
224
|
const playwrightConfig = path.resolve(
|
|
225
225
|
libraryRoot,
|
|
226
226
|
'configs',
|
|
227
|
-
'playwright.
|
|
227
|
+
'playwright.js',
|
|
228
228
|
)
|
|
229
229
|
execSync(`"${playwrightBin}" test --config "${playwrightConfig}"`, {
|
|
230
230
|
stdio: 'inherit',
|
package/tsconfig.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"forceConsistentCasingInFileNames": true,
|
|
15
15
|
"resolveJsonModule": true,
|
|
16
16
|
"allowSyntheticDefaultImports": true,
|
|
17
|
-
"types": ["bun-types"]
|
|
17
|
+
"types": ["bun-types", "vite/client"]
|
|
18
18
|
},
|
|
19
19
|
"include": ["src/**/*"],
|
|
20
20
|
"exclude": ["node_modules", "dist", "**/*.test.ts"]
|