@screenly/edge-apps 0.0.6 → 0.0.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/cli.ts +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screenly/edge-apps",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
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
@@ -188,12 +188,12 @@ async function typeCheckCommand(args: string[]) {
188
188
  try {
189
189
  const tscBin = resolveBin('tsc')
190
190
 
191
- const tscArgs = [
192
- '--noEmit',
193
- '--project',
194
- path.resolve(libraryRoot, 'tsconfig.json'),
195
- ...args,
196
- ]
191
+ const appTsConfig = path.resolve(process.cwd(), 'tsconfig.json')
192
+ const tsConfig = fs.existsSync(appTsConfig)
193
+ ? appTsConfig
194
+ : path.resolve(libraryRoot, 'tsconfig.json')
195
+
196
+ const tscArgs = ['--noEmit', '--project', tsConfig, ...args]
197
197
 
198
198
  execSync(`"${tscBin}" ${tscArgs.map((arg) => `"${arg}"`).join(' ')}`, {
199
199
  stdio: 'inherit',