@atscript/core 0.1.68 → 0.1.70
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/index.cjs +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1344,6 +1344,7 @@ async function loadTsConfig(configFile, forceFormat) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
async function loadConfig(configPath, forceFormat) {
|
|
1347
|
+
if (!configPath) throw new Error("loadConfig: no config path provided (resolveConfigFile returned undefined).");
|
|
1347
1348
|
const ext = node_path.default.extname(configPath);
|
|
1348
1349
|
try {
|
|
1349
1350
|
if (SUPPORTED_JS_CONFIG_FORMATS.includes(ext)) return forceFormat ? await loadTsConfig(node_path.default.resolve(configPath), forceFormat) : (await import(
|
package/dist/index.mjs
CHANGED
|
@@ -1320,6 +1320,7 @@ async function loadTsConfig(configFile, forceFormat) {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
async function loadConfig(configPath, forceFormat) {
|
|
1323
|
+
if (!configPath) throw new Error("loadConfig: no config path provided (resolveConfigFile returned undefined).");
|
|
1323
1324
|
const ext = path.extname(configPath);
|
|
1324
1325
|
try {
|
|
1325
1326
|
if (SUPPORTED_JS_CONFIG_FORMATS.includes(ext)) return forceFormat ? await loadTsConfig(path.resolve(configPath), forceFormat) : (await import(
|