@screenly/edge-apps 0.0.7 → 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.
- package/package.json +1 -1
- package/scripts/cli.ts +6 -6
package/package.json
CHANGED
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
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
path.resolve(
|
|
195
|
-
|
|
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',
|