@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: typeof import('@playwright/test').defineConfig
12
- let devices: typeof import('@playwright/test').devices
11
+ let defineConfig
12
+ let devices
13
13
 
14
14
  try {
15
15
  const playwrightTest = appRequire('@playwright/test')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screenly/edge-apps",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "A TypeScript library for interfacing with Screenly Edge Apps API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
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.mts',
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"]