skedyul 1.2.26 → 1.2.27

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/cli/index.js CHANGED
@@ -5002,7 +5002,7 @@ async function transpileTypeScript(filePath) {
5002
5002
  const configDir = path7.dirname(path7.resolve(filePath));
5003
5003
  let transpiled = content.replace(/import\s+type\s+\{[^}]+\}\s+from\s+['"][^'"]+['"]\s*;?\n?/g, "").replace(/import\s+\{\s*defineConfig\s*\}\s+from\s+['"]skedyul['"]\s*;?\n?/g, "").replace(/:\s*SkedyulConfig/g, "").replace(/export\s+default\s+/, "module.exports = ").replace(/defineConfig\s*\(\s*\{/, "{").replace(/\}\s*\)\s*;?\s*$/, "}");
5004
5004
  transpiled = transpiled.replace(
5005
- /import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]/g,
5005
+ /import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]\s*(?:with\s*\{[^}]*\})?/g,
5006
5006
  (match, varName, relativePath) => {
5007
5007
  const absolutePath = path7.resolve(configDir, relativePath);
5008
5008
  return `const ${varName} = require('${absolutePath.replace(/\\/g, "/")}')`;
@@ -3964,7 +3964,7 @@ async function transpileTypeScript(filePath) {
3964
3964
  const configDir = path.dirname(path.resolve(filePath));
3965
3965
  let transpiled = content.replace(/import\s+type\s+\{[^}]+\}\s+from\s+['"][^'"]+['"]\s*;?\n?/g, "").replace(/import\s+\{\s*defineConfig\s*\}\s+from\s+['"]skedyul['"]\s*;?\n?/g, "").replace(/:\s*SkedyulConfig/g, "").replace(/export\s+default\s+/, "module.exports = ").replace(/defineConfig\s*\(\s*\{/, "{").replace(/\}\s*\)\s*;?\s*$/, "}");
3966
3966
  transpiled = transpiled.replace(
3967
- /import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]/g,
3967
+ /import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]\s*(?:with\s*\{[^}]*\})?/g,
3968
3968
  (match, varName, relativePath) => {
3969
3969
  const absolutePath = path.resolve(configDir, relativePath);
3970
3970
  return `const ${varName} = require('${absolutePath.replace(/\\/g, "/")}')`;
package/dist/index.js CHANGED
@@ -4130,7 +4130,7 @@ async function transpileTypeScript(filePath) {
4130
4130
  const configDir = path.dirname(path.resolve(filePath));
4131
4131
  let transpiled = content.replace(/import\s+type\s+\{[^}]+\}\s+from\s+['"][^'"]+['"]\s*;?\n?/g, "").replace(/import\s+\{\s*defineConfig\s*\}\s+from\s+['"]skedyul['"]\s*;?\n?/g, "").replace(/:\s*SkedyulConfig/g, "").replace(/export\s+default\s+/, "module.exports = ").replace(/defineConfig\s*\(\s*\{/, "{").replace(/\}\s*\)\s*;?\s*$/, "}");
4132
4132
  transpiled = transpiled.replace(
4133
- /import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]/g,
4133
+ /import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]\s*(?:with\s*\{[^}]*\})?/g,
4134
4134
  (match, varName, relativePath) => {
4135
4135
  const absolutePath = path.resolve(configDir, relativePath);
4136
4136
  return `const ${varName} = require('${absolutePath.replace(/\\/g, "/")}')`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",