@atscript/core 0.1.69 → 0.1.71

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 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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/core",
3
- "version": "0.1.69",
3
+ "version": "0.1.71",
4
4
  "description": "Core library for Atscript parsing and file generation.",
5
5
  "keywords": [
6
6
  "annotations",