@intlayer/config 7.5.6 → 7.5.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.
@@ -3,6 +3,7 @@ const require_configFile_searchConfigurationFile = require('./searchConfiguratio
3
3
  const require_configFile_getConfiguration = require('./getConfiguration.cjs');
4
4
 
5
5
  exports.buildConfigurationFields = require_configFile_buildConfigurationFields.buildConfigurationFields;
6
+ exports.configurationFilesCandidates = require_configFile_searchConfigurationFile.configurationFilesCandidates;
6
7
  exports.getConfiguration = require_configFile_getConfiguration.getConfiguration;
7
8
  exports.getConfigurationAndFilePath = require_configFile_getConfiguration.getConfigurationAndFilePath;
8
9
  exports.searchConfigurationFile = require_configFile_searchConfigurationFile.searchConfigurationFile;
@@ -5,17 +5,14 @@ let node_path = require("node:path");
5
5
  let node_fs = require("node:fs");
6
6
 
7
7
  //#region src/configFile/searchConfigurationFile.ts
8
- const EXTENSION = [
9
- "ts",
10
- "js",
11
- "json",
12
- "cjs",
13
- "mjs",
14
- ""
8
+ const configurationFilesCandidates = [
9
+ "intlayer.config.ts",
10
+ "intlayer.config.js",
11
+ "intlayer.config.json",
12
+ "intlayer.config.cjs",
13
+ "intlayer.config.mjs",
14
+ ".intlayerrc"
15
15
  ];
16
- const CONFIGURATION_FILE_NAME_1 = "intlayer.config";
17
- const CONFIGURATION_FILE_NAME_2 = ".intlayerrc";
18
- const configurationFiles = [...EXTENSION.filter((extension) => extension !== "").map((ext) => `${CONFIGURATION_FILE_NAME_1}.${ext}`), CONFIGURATION_FILE_NAME_2];
19
16
  /**
20
17
  * Search for the configuration file in the given path
21
18
  *
@@ -31,7 +28,7 @@ const searchConfigurationFile = (startDir) => {
31
28
  let configurationFilePath;
32
29
  let numCustomConfiguration = 0;
33
30
  const { baseDir } = require_utils_getPackageJsonPath.getPackageJsonPath(startDir);
34
- for (const fileName of configurationFiles) try {
31
+ for (const fileName of configurationFilesCandidates) try {
35
32
  const filePath = (0, node_path.resolve)(baseDir, fileName);
36
33
  if (!(0, node_fs.existsSync)(filePath)) {} else {
37
34
  numCustomConfiguration += 1;
@@ -47,5 +44,6 @@ const searchConfigurationFile = (startDir) => {
47
44
  };
48
45
 
49
46
  //#endregion
47
+ exports.configurationFilesCandidates = configurationFilesCandidates;
50
48
  exports.searchConfigurationFile = searchConfigurationFile;
51
49
  //# sourceMappingURL=searchConfigurationFile.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchConfigurationFile.cjs","names":["configurationFilePath: string | undefined","getPackageJsonPath"],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { logger } from '../logger';\nimport { getPackageJsonPath } from '../utils/getPackageJsonPath';\n\nconst EXTENSION = ['ts', 'js', 'json', 'cjs', 'mjs', ''];\nconst CONFIGURATION_FILE_NAME_1 = 'intlayer.config';\nconst CONFIGURATION_FILE_NAME_2 = '.intlayerrc';\n\nconst intLayerConfigFiles = EXTENSION.filter(\n (extension) => extension !== ''\n).map((ext) => `${CONFIGURATION_FILE_NAME_1}.${ext}`);\n\nconst configurationFiles = [...intLayerConfigFiles, CONFIGURATION_FILE_NAME_2];\n\ntype SearchConfigurationFileResult = {\n configurationFilePath?: string;\n numCustomConfiguration: number;\n};\n\n/**\n * Search for the configuration file in the given path\n *\n * List of detected configuration files:\n * - intlayer.config.ts\n * - intlayer.config.js\n * - intlayer.config.json\n * - intlayer.config.cjs\n * - intlayer.config.mjs\n * - .intlayerrc\n */\nexport const searchConfigurationFile = (\n startDir: string\n): SearchConfigurationFileResult => {\n let configurationFilePath: string | undefined;\n let numCustomConfiguration = 0;\n\n const { baseDir } = getPackageJsonPath(startDir);\n\n for (const fileName of configurationFiles) {\n try {\n const filePath = resolve(baseDir, fileName);\n\n // Check if the file exists\n if (!existsSync(filePath)) {\n } else {\n numCustomConfiguration += 1;\n\n if (!configurationFilePath) {\n configurationFilePath = filePath;\n }\n }\n } catch (error) {\n // Return \"Cannot use import statement outside a module\"\n logger(`${fileName}: ${error as string}`, { level: 'error' });\n }\n }\n\n return { configurationFilePath, numCustomConfiguration };\n};\n"],"mappings":";;;;;;;AAKA,MAAM,YAAY;CAAC;CAAM;CAAM;CAAQ;CAAO;CAAO;CAAG;AACxD,MAAM,4BAA4B;AAClC,MAAM,4BAA4B;AAMlC,MAAM,qBAAqB,CAAC,GAJA,UAAU,QACnC,cAAc,cAAc,GAC9B,CAAC,KAAK,QAAQ,GAAG,0BAA0B,GAAG,MAAM,EAED,0BAA0B;;;;;;;;;;;;AAkB9E,MAAa,2BACX,aACkC;CAClC,IAAIA;CACJ,IAAI,yBAAyB;CAE7B,MAAM,EAAE,YAAYC,oDAAmB,SAAS;AAEhD,MAAK,MAAM,YAAY,mBACrB,KAAI;EACF,MAAM,kCAAmB,SAAS,SAAS;AAG3C,MAAI,yBAAY,SAAS,EAAE,QACpB;AACL,6BAA0B;AAE1B,OAAI,CAAC,sBACH,yBAAwB;;UAGrB,OAAO;AAEd,wBAAO,GAAG,SAAS,IAAI,SAAmB,EAAE,OAAO,SAAS,CAAC;;AAIjE,QAAO;EAAE;EAAuB;EAAwB"}
1
+ {"version":3,"file":"searchConfigurationFile.cjs","names":["configurationFilePath: string | undefined","getPackageJsonPath"],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { logger } from '../logger';\nimport { getPackageJsonPath } from '../utils/getPackageJsonPath';\n\nexport const configurationFilesCandidates = [\n 'intlayer.config.ts',\n 'intlayer.config.js',\n 'intlayer.config.json',\n 'intlayer.config.cjs',\n 'intlayer.config.mjs',\n '.intlayerrc',\n] as const;\n\ntype SearchConfigurationFileResult = {\n configurationFilePath?: string;\n numCustomConfiguration: number;\n};\n\n/**\n * Search for the configuration file in the given path\n *\n * List of detected configuration files:\n * - intlayer.config.ts\n * - intlayer.config.js\n * - intlayer.config.json\n * - intlayer.config.cjs\n * - intlayer.config.mjs\n * - .intlayerrc\n */\nexport const searchConfigurationFile = (\n startDir: string\n): SearchConfigurationFileResult => {\n let configurationFilePath: string | undefined;\n let numCustomConfiguration = 0;\n\n const { baseDir } = getPackageJsonPath(startDir);\n\n for (const fileName of configurationFilesCandidates) {\n try {\n const filePath = resolve(baseDir, fileName);\n\n // Check if the file exists\n if (!existsSync(filePath)) {\n } else {\n numCustomConfiguration += 1;\n\n if (!configurationFilePath) {\n configurationFilePath = filePath;\n }\n }\n } catch (error) {\n // Return \"Cannot use import statement outside a module\"\n logger(`${fileName}: ${error as string}`, { level: 'error' });\n }\n }\n\n return { configurationFilePath, numCustomConfiguration };\n};\n"],"mappings":";;;;;;;AAKA,MAAa,+BAA+B;CAC1C;CACA;CACA;CACA;CACA;CACA;CACD;;;;;;;;;;;;AAkBD,MAAa,2BACX,aACkC;CAClC,IAAIA;CACJ,IAAI,yBAAyB;CAE7B,MAAM,EAAE,YAAYC,oDAAmB,SAAS;AAEhD,MAAK,MAAM,YAAY,6BACrB,KAAI;EACF,MAAM,kCAAmB,SAAS,SAAS;AAG3C,MAAI,yBAAY,SAAS,EAAE,QACpB;AACL,6BAA0B;AAE1B,OAAI,CAAC,sBACH,yBAAwB;;UAGrB,OAAO;AAEd,wBAAO,GAAG,SAAS,IAAI,SAAmB,EAAE,OAAO,SAAS,CAAC;;AAIjE,QAAO;EAAE;EAAuB;EAAwB"}
@@ -50,6 +50,7 @@ exports.colorizeNumber = require_logger.colorizeNumber;
50
50
  exports.colorizePath = require_logger.colorizePath;
51
51
  exports.compareVersions = require_utils_compareVersions.compareVersions;
52
52
  exports.configESMxCJSRequire = require_utils_ESMxCJSHelpers.configESMxCJSRequire;
53
+ exports.configurationFilesCandidates = require_configFile_searchConfigurationFile.configurationFilesCandidates;
53
54
  exports.extractErrorMessage = require_utils_extractErrorMessage.extractErrorMessage;
54
55
  exports.getAlias = require_alias.getAlias;
55
56
  exports.getAppLogger = require_logger.getAppLogger;
@@ -2,10 +2,15 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_utils_getPackageJsonPath = require('../utils/getPackageJsonPath.cjs');
3
3
  const require_loadExternalFile_bundleFile = require('./bundleFile.cjs');
4
4
  let node_path = require("node:path");
5
+ let node_fs = require("node:fs");
5
6
  let esbuild = require("esbuild");
6
7
  let node_url = require("node:url");
7
8
 
8
9
  //#region src/loadExternalFile/transpileTSToMJS.ts
10
+ const getTsConfigPath = (filePath) => {
11
+ const tsconfigPath = (0, node_path.join)(require_utils_getPackageJsonPath.getPackageJsonPath((0, node_path.dirname)(filePath)).baseDir, "tsconfig.json");
12
+ return (0, node_fs.existsSync)(tsconfigPath) ? tsconfigPath : void 0;
13
+ };
9
14
  const getTransformationOptions = (filePath) => ({
10
15
  loader: {
11
16
  ".js": "js",
@@ -24,7 +29,7 @@ const getTransformationOptions = (filePath) => ({
24
29
  write: false,
25
30
  packages: "external",
26
31
  bundle: true,
27
- tsconfig: (0, node_path.join)(require_utils_getPackageJsonPath.getPackageJsonPath((0, node_path.dirname)(filePath)).baseDir, "tsconfig.json"),
32
+ tsconfig: getTsConfigPath(filePath),
28
33
  define: { "import.meta.url": JSON.stringify((0, node_url.pathToFileURL)(filePath).href) }
29
34
  });
30
35
  const transpileTSToMJSSync = (code, filePath, options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"transpileTSToMJS.cjs","names":["getPackageJsonPath","getLoader"],"sources":["../../../src/loadExternalFile/transpileTSToMJS.ts"],"sourcesContent":["import { dirname, extname, join } from 'node:path';\nimport { pathToFileURL } from 'node:url';\nimport {\n type BuildOptions,\n type BuildResult,\n build,\n buildSync,\n type Plugin,\n} from 'esbuild';\nimport { getPackageJsonPath } from '..';\nimport { getLoader } from './bundleFile';\n\nexport type ESBuildPlugin = Plugin;\n\nconst getTransformationOptions = (filePath: string): BuildOptions => ({\n loader: {\n '.js': 'js',\n '.jsx': 'jsx',\n '.mjs': 'js',\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.cjs': 'js',\n '.json': 'json',\n '.md': 'text',\n '.mdx': 'text',\n },\n format: 'cjs',\n target: 'node20',\n platform: 'node',\n write: false,\n packages: 'external',\n bundle: true,\n tsconfig: join(\n getPackageJsonPath(dirname(filePath)).baseDir,\n 'tsconfig.json'\n ),\n define: {\n 'import.meta.url': JSON.stringify(pathToFileURL(filePath).href),\n },\n});\n\nexport const transpileTSToMJSSync = (\n code: string,\n filePath: string,\n options?: BuildOptions\n): string | undefined => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = buildSync({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n\nexport const transpileTSToMJS = async (\n code: string,\n filePath: string,\n options?: BuildOptions\n): Promise<string | undefined> => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = await build({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n"],"mappings":";;;;;;;;AAcA,MAAM,4BAA4B,cAAoC;CACpE,QAAQ;EACN,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,OAAO;EACP,QAAQ;EACT;CACD,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,OAAO;CACP,UAAU;CACV,QAAQ;CACR,8BACEA,2EAA2B,SAAS,CAAC,CAAC,SACtC,gBACD;CACD,QAAQ,EACN,mBAAmB,KAAK,sCAAwB,SAAS,CAAC,KAAK,EAChE;CACF;AAED,MAAa,wBACX,MACA,UACA,YACuB;AAiBvB,+BAb4C;EAC1C,OAAO;GACL,UAAU;GACV,QALWC,qEADW,SAAS,CACA;GAM/B,mCAAoB,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,CAEsC,cAAc,GAAG;;AAK3D,MAAa,mBAAmB,OAC9B,MACA,UACA,YACgC;AAiBhC,SAbkC,yBAAY;EAC5C,OAAO;GACL,UAAU;GACV,QALWA,qEADW,SAAS,CACA;GAM/B,mCAAoB,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,EAEsC,cAAc,GAAG"}
1
+ {"version":3,"file":"transpileTSToMJS.cjs","names":["getPackageJsonPath","getLoader"],"sources":["../../../src/loadExternalFile/transpileTSToMJS.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { dirname, extname, join } from 'node:path';\nimport { pathToFileURL } from 'node:url';\nimport {\n type BuildOptions,\n type BuildResult,\n build,\n buildSync,\n type Plugin,\n} from 'esbuild';\nimport { getPackageJsonPath } from '..';\nimport { getLoader } from './bundleFile';\n\nexport type ESBuildPlugin = Plugin;\n\nconst getTsConfigPath = (filePath: string): string | undefined => {\n const tsconfigPath = join(\n getPackageJsonPath(dirname(filePath)).baseDir,\n 'tsconfig.json'\n );\n\n // Only return the tsconfig path if it exists\n return existsSync(tsconfigPath) ? tsconfigPath : undefined;\n};\n\nconst getTransformationOptions = (filePath: string): BuildOptions => ({\n loader: {\n '.js': 'js',\n '.jsx': 'jsx',\n '.mjs': 'js',\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.cjs': 'js',\n '.json': 'json',\n '.md': 'text',\n '.mdx': 'text',\n },\n format: 'cjs',\n target: 'node20',\n platform: 'node',\n write: false,\n packages: 'external',\n bundle: true,\n tsconfig: getTsConfigPath(filePath),\n define: {\n 'import.meta.url': JSON.stringify(pathToFileURL(filePath).href),\n },\n});\n\nexport const transpileTSToMJSSync = (\n code: string,\n filePath: string,\n options?: BuildOptions\n): string | undefined => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = buildSync({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n\nexport const transpileTSToMJS = async (\n code: string,\n filePath: string,\n options?: BuildOptions\n): Promise<string | undefined> => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = await build({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n"],"mappings":";;;;;;;;;AAeA,MAAM,mBAAmB,aAAyC;CAChE,MAAM,mCACJA,2EAA2B,SAAS,CAAC,CAAC,SACtC,gBACD;AAGD,gCAAkB,aAAa,GAAG,eAAe;;AAGnD,MAAM,4BAA4B,cAAoC;CACpE,QAAQ;EACN,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,OAAO;EACP,QAAQ;EACT;CACD,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,OAAO;CACP,UAAU;CACV,QAAQ;CACR,UAAU,gBAAgB,SAAS;CACnC,QAAQ,EACN,mBAAmB,KAAK,sCAAwB,SAAS,CAAC,KAAK,EAChE;CACF;AAED,MAAa,wBACX,MACA,UACA,YACuB;AAiBvB,+BAb4C;EAC1C,OAAO;GACL,UAAU;GACV,QALWC,qEADW,SAAS,CACA;GAM/B,mCAAoB,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,CAEsC,cAAc,GAAG;;AAK3D,MAAa,mBAAmB,OAC9B,MACA,UACA,YACgC;AAiBhC,SAbkC,yBAAY;EAC5C,OAAO;GACL,UAAU;GACV,QALWA,qEADW,SAAS,CACA;GAM/B,mCAAoB,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,EAEsC,cAAc,GAAG"}
@@ -1,5 +1,5 @@
1
1
  import { buildConfigurationFields } from "./buildConfigurationFields.mjs";
2
- import { searchConfigurationFile } from "./searchConfigurationFile.mjs";
2
+ import { configurationFilesCandidates, searchConfigurationFile } from "./searchConfigurationFile.mjs";
3
3
  import { getConfiguration, getConfigurationAndFilePath } from "./getConfiguration.mjs";
4
4
 
5
- export { buildConfigurationFields, getConfiguration, getConfigurationAndFilePath, searchConfigurationFile };
5
+ export { buildConfigurationFields, configurationFilesCandidates, getConfiguration, getConfigurationAndFilePath, searchConfigurationFile };
@@ -4,17 +4,14 @@ import { resolve } from "node:path";
4
4
  import { existsSync } from "node:fs";
5
5
 
6
6
  //#region src/configFile/searchConfigurationFile.ts
7
- const EXTENSION = [
8
- "ts",
9
- "js",
10
- "json",
11
- "cjs",
12
- "mjs",
13
- ""
7
+ const configurationFilesCandidates = [
8
+ "intlayer.config.ts",
9
+ "intlayer.config.js",
10
+ "intlayer.config.json",
11
+ "intlayer.config.cjs",
12
+ "intlayer.config.mjs",
13
+ ".intlayerrc"
14
14
  ];
15
- const CONFIGURATION_FILE_NAME_1 = "intlayer.config";
16
- const CONFIGURATION_FILE_NAME_2 = ".intlayerrc";
17
- const configurationFiles = [...EXTENSION.filter((extension) => extension !== "").map((ext) => `${CONFIGURATION_FILE_NAME_1}.${ext}`), CONFIGURATION_FILE_NAME_2];
18
15
  /**
19
16
  * Search for the configuration file in the given path
20
17
  *
@@ -30,7 +27,7 @@ const searchConfigurationFile = (startDir) => {
30
27
  let configurationFilePath;
31
28
  let numCustomConfiguration = 0;
32
29
  const { baseDir } = getPackageJsonPath(startDir);
33
- for (const fileName of configurationFiles) try {
30
+ for (const fileName of configurationFilesCandidates) try {
34
31
  const filePath = resolve(baseDir, fileName);
35
32
  if (!existsSync(filePath)) {} else {
36
33
  numCustomConfiguration += 1;
@@ -46,5 +43,5 @@ const searchConfigurationFile = (startDir) => {
46
43
  };
47
44
 
48
45
  //#endregion
49
- export { searchConfigurationFile };
46
+ export { configurationFilesCandidates, searchConfigurationFile };
50
47
  //# sourceMappingURL=searchConfigurationFile.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchConfigurationFile.mjs","names":["configurationFilePath: string | undefined"],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { logger } from '../logger';\nimport { getPackageJsonPath } from '../utils/getPackageJsonPath';\n\nconst EXTENSION = ['ts', 'js', 'json', 'cjs', 'mjs', ''];\nconst CONFIGURATION_FILE_NAME_1 = 'intlayer.config';\nconst CONFIGURATION_FILE_NAME_2 = '.intlayerrc';\n\nconst intLayerConfigFiles = EXTENSION.filter(\n (extension) => extension !== ''\n).map((ext) => `${CONFIGURATION_FILE_NAME_1}.${ext}`);\n\nconst configurationFiles = [...intLayerConfigFiles, CONFIGURATION_FILE_NAME_2];\n\ntype SearchConfigurationFileResult = {\n configurationFilePath?: string;\n numCustomConfiguration: number;\n};\n\n/**\n * Search for the configuration file in the given path\n *\n * List of detected configuration files:\n * - intlayer.config.ts\n * - intlayer.config.js\n * - intlayer.config.json\n * - intlayer.config.cjs\n * - intlayer.config.mjs\n * - .intlayerrc\n */\nexport const searchConfigurationFile = (\n startDir: string\n): SearchConfigurationFileResult => {\n let configurationFilePath: string | undefined;\n let numCustomConfiguration = 0;\n\n const { baseDir } = getPackageJsonPath(startDir);\n\n for (const fileName of configurationFiles) {\n try {\n const filePath = resolve(baseDir, fileName);\n\n // Check if the file exists\n if (!existsSync(filePath)) {\n } else {\n numCustomConfiguration += 1;\n\n if (!configurationFilePath) {\n configurationFilePath = filePath;\n }\n }\n } catch (error) {\n // Return \"Cannot use import statement outside a module\"\n logger(`${fileName}: ${error as string}`, { level: 'error' });\n }\n }\n\n return { configurationFilePath, numCustomConfiguration };\n};\n"],"mappings":";;;;;;AAKA,MAAM,YAAY;CAAC;CAAM;CAAM;CAAQ;CAAO;CAAO;CAAG;AACxD,MAAM,4BAA4B;AAClC,MAAM,4BAA4B;AAMlC,MAAM,qBAAqB,CAAC,GAJA,UAAU,QACnC,cAAc,cAAc,GAC9B,CAAC,KAAK,QAAQ,GAAG,0BAA0B,GAAG,MAAM,EAED,0BAA0B;;;;;;;;;;;;AAkB9E,MAAa,2BACX,aACkC;CAClC,IAAIA;CACJ,IAAI,yBAAyB;CAE7B,MAAM,EAAE,YAAY,mBAAmB,SAAS;AAEhD,MAAK,MAAM,YAAY,mBACrB,KAAI;EACF,MAAM,WAAW,QAAQ,SAAS,SAAS;AAG3C,MAAI,CAAC,WAAW,SAAS,EAAE,QACpB;AACL,6BAA0B;AAE1B,OAAI,CAAC,sBACH,yBAAwB;;UAGrB,OAAO;AAEd,SAAO,GAAG,SAAS,IAAI,SAAmB,EAAE,OAAO,SAAS,CAAC;;AAIjE,QAAO;EAAE;EAAuB;EAAwB"}
1
+ {"version":3,"file":"searchConfigurationFile.mjs","names":["configurationFilePath: string | undefined"],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { logger } from '../logger';\nimport { getPackageJsonPath } from '../utils/getPackageJsonPath';\n\nexport const configurationFilesCandidates = [\n 'intlayer.config.ts',\n 'intlayer.config.js',\n 'intlayer.config.json',\n 'intlayer.config.cjs',\n 'intlayer.config.mjs',\n '.intlayerrc',\n] as const;\n\ntype SearchConfigurationFileResult = {\n configurationFilePath?: string;\n numCustomConfiguration: number;\n};\n\n/**\n * Search for the configuration file in the given path\n *\n * List of detected configuration files:\n * - intlayer.config.ts\n * - intlayer.config.js\n * - intlayer.config.json\n * - intlayer.config.cjs\n * - intlayer.config.mjs\n * - .intlayerrc\n */\nexport const searchConfigurationFile = (\n startDir: string\n): SearchConfigurationFileResult => {\n let configurationFilePath: string | undefined;\n let numCustomConfiguration = 0;\n\n const { baseDir } = getPackageJsonPath(startDir);\n\n for (const fileName of configurationFilesCandidates) {\n try {\n const filePath = resolve(baseDir, fileName);\n\n // Check if the file exists\n if (!existsSync(filePath)) {\n } else {\n numCustomConfiguration += 1;\n\n if (!configurationFilePath) {\n configurationFilePath = filePath;\n }\n }\n } catch (error) {\n // Return \"Cannot use import statement outside a module\"\n logger(`${fileName}: ${error as string}`, { level: 'error' });\n }\n }\n\n return { configurationFilePath, numCustomConfiguration };\n};\n"],"mappings":";;;;;;AAKA,MAAa,+BAA+B;CAC1C;CACA;CACA;CACA;CACA;CACA;CACD;;;;;;;;;;;;AAkBD,MAAa,2BACX,aACkC;CAClC,IAAIA;CACJ,IAAI,yBAAyB;CAE7B,MAAM,EAAE,YAAY,mBAAmB,SAAS;AAEhD,MAAK,MAAM,YAAY,6BACrB,KAAI;EACF,MAAM,WAAW,QAAQ,SAAS,SAAS;AAG3C,MAAI,CAAC,WAAW,SAAS,EAAE,QACpB;AACL,6BAA0B;AAE1B,OAAI,CAAC,sBACH,yBAAwB;;UAGrB,OAAO;AAEd,SAAO,GAAG,SAAS,IAAI,SAAmB,EAAE,OAAO,SAAS,CAAC;;AAIjE,QAAO;EAAE;EAAuB;EAAwB"}
@@ -9,7 +9,7 @@ import { configESMxCJSRequire, getProjectRequire, isESModule } from "./utils/ESM
9
9
  import { getEnvFilePath, loadEnvFile } from "./loadEnvFile.mjs";
10
10
  import { parseFileContent } from "./loadExternalFile/parseFileContent.mjs";
11
11
  import { bundleJSFile } from "./bundleJSFile.mjs";
12
- import { searchConfigurationFile } from "./configFile/searchConfigurationFile.mjs";
12
+ import { configurationFilesCandidates, searchConfigurationFile } from "./configFile/searchConfigurationFile.mjs";
13
13
  import { defaultValues_exports } from "./defaultValues/index.mjs";
14
14
  import { bundleFile, bundleFileSync } from "./loadExternalFile/bundleFile.mjs";
15
15
  import { extractErrorMessage } from "./utils/extractErrorMessage.mjs";
@@ -25,4 +25,4 @@ import { toLowerCamelCase } from "./utils/stringFormatter/toLowerCamelCase.mjs";
25
25
  import { loadExternalFile, loadExternalFileSync } from "./loadExternalFile/loadExternalFile.mjs";
26
26
  import { getConfiguration, getConfigurationAndFilePath } from "./configFile/getConfiguration.mjs";
27
27
 
28
- export { ANSIColors, defaultValues_exports as DefaultValues, buildConfigurationFields, bundleFile, bundleFileSync, bundleJSFile, cacheDisk, cacheMemory, camelCaseToKebabCase, camelCaseToSentence, clearModuleCache, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizePath, compareVersions, configESMxCJSRequire, extractErrorMessage, getAlias, getAppLogger, getConfiguration, getConfigurationAndFilePath, getEnvFilePath, getExtension, getPackageJsonPath, getProjectRequire, isESModule, kebabCaseToCamelCase, loadEnvFile, loadExternalFile, loadExternalFileSync, logStack, logger, normalizePath, parseFileContent, removeColor, retryManager, searchConfigurationFile, spinnerFrames, toLowerCamelCase, v, x };
28
+ export { ANSIColors, defaultValues_exports as DefaultValues, buildConfigurationFields, bundleFile, bundleFileSync, bundleJSFile, cacheDisk, cacheMemory, camelCaseToKebabCase, camelCaseToSentence, clearModuleCache, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizePath, compareVersions, configESMxCJSRequire, configurationFilesCandidates, extractErrorMessage, getAlias, getAppLogger, getConfiguration, getConfigurationAndFilePath, getEnvFilePath, getExtension, getPackageJsonPath, getProjectRequire, isESModule, kebabCaseToCamelCase, loadEnvFile, loadExternalFile, loadExternalFileSync, logStack, logger, normalizePath, parseFileContent, removeColor, retryManager, searchConfigurationFile, spinnerFrames, toLowerCamelCase, v, x };
@@ -1,10 +1,15 @@
1
1
  import { getPackageJsonPath } from "../utils/getPackageJsonPath.mjs";
2
2
  import { getLoader } from "./bundleFile.mjs";
3
3
  import { dirname, extname, join } from "node:path";
4
+ import { existsSync } from "node:fs";
4
5
  import { build, buildSync } from "esbuild";
5
6
  import { pathToFileURL } from "node:url";
6
7
 
7
8
  //#region src/loadExternalFile/transpileTSToMJS.ts
9
+ const getTsConfigPath = (filePath) => {
10
+ const tsconfigPath = join(getPackageJsonPath(dirname(filePath)).baseDir, "tsconfig.json");
11
+ return existsSync(tsconfigPath) ? tsconfigPath : void 0;
12
+ };
8
13
  const getTransformationOptions = (filePath) => ({
9
14
  loader: {
10
15
  ".js": "js",
@@ -23,7 +28,7 @@ const getTransformationOptions = (filePath) => ({
23
28
  write: false,
24
29
  packages: "external",
25
30
  bundle: true,
26
- tsconfig: join(getPackageJsonPath(dirname(filePath)).baseDir, "tsconfig.json"),
31
+ tsconfig: getTsConfigPath(filePath),
27
32
  define: { "import.meta.url": JSON.stringify(pathToFileURL(filePath).href) }
28
33
  });
29
34
  const transpileTSToMJSSync = (code, filePath, options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"transpileTSToMJS.mjs","names":[],"sources":["../../../src/loadExternalFile/transpileTSToMJS.ts"],"sourcesContent":["import { dirname, extname, join } from 'node:path';\nimport { pathToFileURL } from 'node:url';\nimport {\n type BuildOptions,\n type BuildResult,\n build,\n buildSync,\n type Plugin,\n} from 'esbuild';\nimport { getPackageJsonPath } from '..';\nimport { getLoader } from './bundleFile';\n\nexport type ESBuildPlugin = Plugin;\n\nconst getTransformationOptions = (filePath: string): BuildOptions => ({\n loader: {\n '.js': 'js',\n '.jsx': 'jsx',\n '.mjs': 'js',\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.cjs': 'js',\n '.json': 'json',\n '.md': 'text',\n '.mdx': 'text',\n },\n format: 'cjs',\n target: 'node20',\n platform: 'node',\n write: false,\n packages: 'external',\n bundle: true,\n tsconfig: join(\n getPackageJsonPath(dirname(filePath)).baseDir,\n 'tsconfig.json'\n ),\n define: {\n 'import.meta.url': JSON.stringify(pathToFileURL(filePath).href),\n },\n});\n\nexport const transpileTSToMJSSync = (\n code: string,\n filePath: string,\n options?: BuildOptions\n): string | undefined => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = buildSync({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n\nexport const transpileTSToMJS = async (\n code: string,\n filePath: string,\n options?: BuildOptions\n): Promise<string | undefined> => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = await build({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n"],"mappings":";;;;;;;AAcA,MAAM,4BAA4B,cAAoC;CACpE,QAAQ;EACN,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,OAAO;EACP,QAAQ;EACT;CACD,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,OAAO;CACP,UAAU;CACV,QAAQ;CACR,UAAU,KACR,mBAAmB,QAAQ,SAAS,CAAC,CAAC,SACtC,gBACD;CACD,QAAQ,EACN,mBAAmB,KAAK,UAAU,cAAc,SAAS,CAAC,KAAK,EAChE;CACF;AAED,MAAa,wBACX,MACA,UACA,YACuB;AAiBvB,QAbkC,UAAU;EAC1C,OAAO;GACL,UAAU;GACV,QALW,UADG,QAAQ,SAAS,CACA;GAM/B,YAAY,QAAQ,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,CAEsC,cAAc,GAAG;;AAK3D,MAAa,mBAAmB,OAC9B,MACA,UACA,YACgC;AAiBhC,SAbkC,MAAM,MAAM;EAC5C,OAAO;GACL,UAAU;GACV,QALW,UADG,QAAQ,SAAS,CACA;GAM/B,YAAY,QAAQ,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,EAEsC,cAAc,GAAG"}
1
+ {"version":3,"file":"transpileTSToMJS.mjs","names":[],"sources":["../../../src/loadExternalFile/transpileTSToMJS.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { dirname, extname, join } from 'node:path';\nimport { pathToFileURL } from 'node:url';\nimport {\n type BuildOptions,\n type BuildResult,\n build,\n buildSync,\n type Plugin,\n} from 'esbuild';\nimport { getPackageJsonPath } from '..';\nimport { getLoader } from './bundleFile';\n\nexport type ESBuildPlugin = Plugin;\n\nconst getTsConfigPath = (filePath: string): string | undefined => {\n const tsconfigPath = join(\n getPackageJsonPath(dirname(filePath)).baseDir,\n 'tsconfig.json'\n );\n\n // Only return the tsconfig path if it exists\n return existsSync(tsconfigPath) ? tsconfigPath : undefined;\n};\n\nconst getTransformationOptions = (filePath: string): BuildOptions => ({\n loader: {\n '.js': 'js',\n '.jsx': 'jsx',\n '.mjs': 'js',\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.cjs': 'js',\n '.json': 'json',\n '.md': 'text',\n '.mdx': 'text',\n },\n format: 'cjs',\n target: 'node20',\n platform: 'node',\n write: false,\n packages: 'external',\n bundle: true,\n tsconfig: getTsConfigPath(filePath),\n define: {\n 'import.meta.url': JSON.stringify(pathToFileURL(filePath).href),\n },\n});\n\nexport const transpileTSToMJSSync = (\n code: string,\n filePath: string,\n options?: BuildOptions\n): string | undefined => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = buildSync({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n\nexport const transpileTSToMJS = async (\n code: string,\n filePath: string,\n options?: BuildOptions\n): Promise<string | undefined> => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = await build({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n"],"mappings":";;;;;;;;AAeA,MAAM,mBAAmB,aAAyC;CAChE,MAAM,eAAe,KACnB,mBAAmB,QAAQ,SAAS,CAAC,CAAC,SACtC,gBACD;AAGD,QAAO,WAAW,aAAa,GAAG,eAAe;;AAGnD,MAAM,4BAA4B,cAAoC;CACpE,QAAQ;EACN,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,OAAO;EACP,QAAQ;EACT;CACD,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,OAAO;CACP,UAAU;CACV,QAAQ;CACR,UAAU,gBAAgB,SAAS;CACnC,QAAQ,EACN,mBAAmB,KAAK,UAAU,cAAc,SAAS,CAAC,KAAK,EAChE;CACF;AAED,MAAa,wBACX,MACA,UACA,YACuB;AAiBvB,QAbkC,UAAU;EAC1C,OAAO;GACL,UAAU;GACV,QALW,UADG,QAAQ,SAAS,CACA;GAM/B,YAAY,QAAQ,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,CAEsC,cAAc,GAAG;;AAK3D,MAAa,mBAAmB,OAC9B,MACA,UACA,YACgC;AAiBhC,SAbkC,MAAM,MAAM;EAC5C,OAAO;GACL,UAAU;GACV,QALW,UADG,QAAQ,SAAS,CACA;GAM/B,YAAY,QAAQ,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,EAEsC,cAAc,GAAG"}
@@ -46,10 +46,10 @@ declare const bundleJSFile: (buildOptions: BuildOptions) => Promise<esbuild0.Bui
46
46
  footer?: {
47
47
  [type: string]: string;
48
48
  };
49
- entryPoints?: string[] | Record<string, string> | {
49
+ entryPoints?: (string | {
50
50
  in: string;
51
51
  out: string;
52
- }[];
52
+ })[] | Record<string, string>;
53
53
  stdin?: esbuild0.StdinOptions;
54
54
  plugins?: esbuild0.Plugin[];
55
55
  absWorkingDir?: string;
@@ -88,6 +88,7 @@ declare const bundleJSFile: (buildOptions: BuildOptions) => Promise<esbuild0.Bui
88
88
  };
89
89
  pure?: string[];
90
90
  keepNames?: boolean;
91
+ absPaths?: esbuild0.AbsPaths[];
91
92
  color?: boolean;
92
93
  logLevel: esbuild0.LogLevel;
93
94
  logLimit?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"bundleJSFile.d.ts","names":[],"sources":["../../src/bundleJSFile.ts"],"sourcesContent":[],"mappings":";;;;cAyBa,6BAAoC,iBAAY,iBAAA;;;EAAhD,gBAIT,CAAA,EAAA,OAAA;EAJ6C,OAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;QAAY,EAAA,MAAA,CAAA,iBAAA;EAAA,CAAA;EAAA,iBAAA,CAAA,EAAA,MAAA,EAAA"}
1
+ {"version":3,"file":"bundleJSFile.d.ts","names":[],"sources":["../../src/bundleJSFile.ts"],"sourcesContent":[],"mappings":";;;;cAyBa,6BAAoC,iBAAY,iBAAA;;;EAAhD,gBAIT,CAAA,EAAA,OAAA;EAJ6C,OAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;EAAY,iBAAA,CAAA,EAAA,MAAA,EAAA;EAAA,UAAA,CAAA,EAAA,MAAA,EAAA"}
@@ -1,4 +1,4 @@
1
1
  import { buildConfigurationFields } from "./buildConfigurationFields.js";
2
2
  import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./getConfiguration.js";
3
- import { searchConfigurationFile } from "./searchConfigurationFile.js";
4
- export { GetConfigurationAndFilePathResult, GetConfigurationOptions, buildConfigurationFields, getConfiguration, getConfigurationAndFilePath, searchConfigurationFile };
3
+ import { configurationFilesCandidates, searchConfigurationFile } from "./searchConfigurationFile.js";
4
+ export { GetConfigurationAndFilePathResult, GetConfigurationOptions, buildConfigurationFields, configurationFilesCandidates, getConfiguration, getConfigurationAndFilePath, searchConfigurationFile };
@@ -1,4 +1,5 @@
1
1
  //#region src/configFile/searchConfigurationFile.d.ts
2
+ declare const configurationFilesCandidates: readonly ["intlayer.config.ts", "intlayer.config.js", "intlayer.config.json", "intlayer.config.cjs", "intlayer.config.mjs", ".intlayerrc"];
2
3
  type SearchConfigurationFileResult = {
3
4
  configurationFilePath?: string;
4
5
  numCustomConfiguration: number;
@@ -16,5 +17,5 @@ type SearchConfigurationFileResult = {
16
17
  */
17
18
  declare const searchConfigurationFile: (startDir: string) => SearchConfigurationFileResult;
18
19
  //#endregion
19
- export { searchConfigurationFile };
20
+ export { configurationFilesCandidates, searchConfigurationFile };
20
21
  //# sourceMappingURL=searchConfigurationFile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"sourcesContent":[],"mappings":";KAeK,6BAAA;EAAA,qBAAA,CAAA,EAAA,MAAA;EAgBQ,sBAAA,EAAA,MA4BZ;;;;;;;;;;;;;cA5BY,+CAEV"}
1
+ {"version":3,"file":"searchConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"sourcesContent":[],"mappings":";cAKa;AAAb,KASK,6BAAA,GAFK;EAEL,qBAAA,CAAA,EAAA,MAAA;EAgBQ,sBAAA,EAAA,MA4BZ;;;;;;;;;;;;;cA5BY,+CAEV"}
@@ -13,7 +13,7 @@ import { buildConfigurationFields } from "./configFile/buildConfigurationFields.
13
13
  import { getEnvFilePath, loadEnvFile } from "./loadEnvFile.js";
14
14
  import { parseFileContent } from "./loadExternalFile/parseFileContent.js";
15
15
  import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./configFile/getConfiguration.js";
16
- import { searchConfigurationFile } from "./configFile/searchConfigurationFile.js";
16
+ import { configurationFilesCandidates, searchConfigurationFile } from "./configFile/searchConfigurationFile.js";
17
17
  import { ESBuildPlugin, loadExternalFile, loadExternalFileSync } from "./loadExternalFile/loadExternalFile.js";
18
18
  import { bundleFile, bundleFileSync } from "./loadExternalFile/bundleFile.js";
19
19
  import { retryManager } from "./retryManager.js";
@@ -24,4 +24,4 @@ import { compareVersions } from "./utils/compareVersions.js";
24
24
  import { configESMxCJSRequire, getProjectRequire, isESModule } from "./utils/ESMxCJSHelpers.js";
25
25
  import { getExtension } from "./utils/getExtension.js";
26
26
  import { getPackageJsonPath } from "./utils/getPackageJsonPath.js";
27
- export { ANSIColors, index_d_exports as DefaultValues, Details, type ESBuildPlugin, type GetConfigurationAndFilePathResult, type GetConfigurationOptions, Logger, buildConfigurationFields, bundleFile, bundleFileSync, bundleJSFile, cacheDisk, cacheMemory, camelCaseToKebabCase, camelCaseToSentence, clearModuleCache, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizePath, compareVersions, configESMxCJSRequire, extractErrorMessage, getAlias, getAppLogger, getConfiguration, getConfigurationAndFilePath, getEnvFilePath, getExtension, getPackageJsonPath, getProjectRequire, isESModule, kebabCaseToCamelCase, loadEnvFile, loadExternalFile, loadExternalFileSync, logStack, logger, normalizePath, parseFileContent, removeColor, retryManager, searchConfigurationFile, spinnerFrames, toLowerCamelCase, v, x };
27
+ export { ANSIColors, index_d_exports as DefaultValues, Details, type ESBuildPlugin, type GetConfigurationAndFilePathResult, type GetConfigurationOptions, Logger, buildConfigurationFields, bundleFile, bundleFileSync, bundleJSFile, cacheDisk, cacheMemory, camelCaseToKebabCase, camelCaseToSentence, clearModuleCache, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizePath, compareVersions, configESMxCJSRequire, configurationFilesCandidates, extractErrorMessage, getAlias, getAppLogger, getConfiguration, getConfigurationAndFilePath, getEnvFilePath, getExtension, getPackageJsonPath, getProjectRequire, isESModule, kebabCaseToCamelCase, loadEnvFile, loadExternalFile, loadExternalFileSync, logStack, logger, normalizePath, parseFileContent, removeColor, retryManager, searchConfigurationFile, spinnerFrames, toLowerCamelCase, v, x };
@@ -1 +1 @@
1
- {"version":3,"file":"transpileTSToMJS.d.ts","names":[],"sources":["../../../src/loadExternalFile/transpileTSToMJS.ts"],"sourcesContent":[],"mappings":";;;KAYY,aAAA,GAAgB;cA6Bf,iEAGD;AAhCA,cAqDC,gBArDe,EAAM,CAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAwDtB,YAxDsB,EAAA,GAyD/B,OAzD+B,CAAA,MAAA,GAAA,SAAA,CAAA"}
1
+ {"version":3,"file":"transpileTSToMJS.d.ts","names":[],"sources":["../../../src/loadExternalFile/transpileTSToMJS.ts"],"sourcesContent":[],"mappings":";;;KAaY,aAAA,GAAgB;cAoCf,iEAGD;AAvCA,cA4DC,gBA5De,EAAM,CAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EA+DtB,YA/DsB,EAAA,GAgE/B,OAhE+B,CAAA,MAAA,GAAA,SAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/config",
3
- "version": "7.5.6",
3
+ "version": "7.5.8",
4
4
  "private": false,
5
5
  "description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
6
6
  "keywords": [
@@ -96,10 +96,10 @@
96
96
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
97
97
  },
98
98
  "dependencies": {
99
- "@intlayer/types": "7.5.6",
99
+ "@intlayer/types": "7.5.8",
100
100
  "defu": "6.1.4",
101
101
  "dotenv": "16.6.1",
102
- "esbuild": "0.25.2"
102
+ "esbuild": "0.27.2"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@types/node": "25.0.3",
@@ -112,7 +112,7 @@
112
112
  "vitest": "4.0.16"
113
113
  },
114
114
  "peerDependencies": {
115
- "intlayer": "7.5.6",
115
+ "intlayer": "7.5.8",
116
116
  "react": ">=16.0.0"
117
117
  },
118
118
  "peerDependenciesMeta": {