@batijs/build
Advanced tools
Comparing version 0.0.317 to 0.0.318
@@ -41,4 +41,14 @@ // src/index.ts | ||
}); | ||
return res.code; | ||
return clearExports(res.code, meta); | ||
} | ||
function clearExports(code, meta) { | ||
if (code.trim() === "export {};") { | ||
return void 0; | ||
} | ||
if (meta.BATI.has("biome")) { | ||
const index = code.indexOf("\nexport {};"); | ||
return code.slice(0, index) + "\n// biome-ignore lint/complexity/noUselessEmptyExport: ensure that the file is considered as a module" + code.slice(index); | ||
} | ||
return code; | ||
} | ||
@@ -56,9 +66,13 @@ // src/operations/file.ts | ||
let fileContent = result.code; | ||
if (op.sourceAbsolute.endsWith(".d.ts") && previousOperationSameDestination?.content) { | ||
fileContent = await mergeDts({ | ||
fileContent, | ||
previousContent: previousOperationSameDestination.content, | ||
meta, | ||
filepath | ||
}); | ||
if (op.sourceAbsolute.endsWith(".d.ts")) { | ||
if (previousOperationSameDestination?.content) { | ||
fileContent = await mergeDts({ | ||
fileContent, | ||
previousContent: previousOperationSameDestination.content, | ||
meta, | ||
filepath | ||
}); | ||
} else { | ||
fileContent = clearExports(fileContent, meta); | ||
} | ||
} | ||
@@ -65,0 +79,0 @@ return { |
{ | ||
"name": "@batijs/build", | ||
"version": "0.0.317", | ||
"version": "0.0.318", | ||
"description": "", | ||
@@ -13,7 +13,7 @@ "type": "module", | ||
"tsup": "^8.3.5", | ||
"@batijs/compile": "0.0.317", | ||
"@batijs/features": "0.0.317" | ||
"@batijs/features": "0.0.318", | ||
"@batijs/compile": "0.0.318" | ||
}, | ||
"dependencies": { | ||
"@batijs/core": "0.0.317" | ||
"@batijs/core": "0.0.318" | ||
}, | ||
@@ -20,0 +20,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14994
404
+ Added@batijs/core@0.0.318(transitive)
- Removed@batijs/core@0.0.317(transitive)
Updated@batijs/core@0.0.318