Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@batijs/build

Package Overview
Dependencies
Maintainers
0
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@batijs/build - npm Package Compare versions

Comparing version 0.0.317 to 0.0.318

30

dist/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc