New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@best/builder

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@best/builder - npm Package Compare versions

Comparing version 4.0.0-alpha9 to 4.0.0-beta1

3

build/build-benchmark.js

@@ -56,3 +56,4 @@ "use strict";

plugins: [rollup_plugin_benchmark_import_1.default(), ...addResolverPlugins(projectConfig.plugins)],
cache: ROLLUP_CACHE.get(projectName)
cache: ROLLUP_CACHE.get(projectName),
manualChunks: function () { /* guarantee one chunk */ return 'main_chunk'; }
};

@@ -59,0 +60,0 @@ buildLogStream.log('Bundling benchmark files...');

@@ -14,2 +14,3 @@ "use strict";

const worker_farm_1 = __importDefault(require("worker-farm"));
const build_benchmark_1 = require("./build-benchmark");
const DEFAULT_FARM_OPTS = {

@@ -19,3 +20,11 @@ maxConcurrentWorkers: utils_1.isCI ? 2 : require('os').cpus().length,

};
async function buildBenchmarks(benchmarks, projectConfig, globalConfig, buildLogStream) {
async function runInBand(benchmarks, projectConfig, globalConfig, buildLogStream) {
const benchmarkResults = [];
for (const benchmark of benchmarks) {
const result = await build_benchmark_1.buildBenchmark(benchmark, projectConfig, globalConfig, buildLogStream);
benchmarkResults.push(result);
}
return benchmarkResults;
}
function runInWorkers(benchmarks, projectConfig, globalConfig, buildLogStream) {
const opts = {

@@ -61,3 +70,11 @@ ...DEFAULT_FARM_OPTS,

}
function buildBenchmarks(benchmarks, projectConfig, globalConfig, buildLogStream) {
if (globalConfig.runInBand) {
return runInBand(benchmarks, projectConfig, globalConfig, buildLogStream);
}
else {
return runInWorkers(benchmarks, projectConfig, globalConfig, buildLogStream);
}
}
exports.buildBenchmarks = buildBenchmarks;
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ {

},
"version": "4.0.0-alpha9",
"version": "4.0.0-beta1",
"description": "Best build package",

@@ -17,8 +17,9 @@ "keywords": [

"dependencies": {
"@best/runtime": "4.0.0-alpha9",
"@best/utils": "4.0.0-alpha9",
"@best/runtime": "4.0.0-beta1",
"@best/utils": "4.0.0-beta1",
"mkdirp": "~0.5.1",
"ncp": "^2.0.0",
"rimraf": "^2.6.2",
"rollup": "~1.15.5",
"rollup": "~1.26.0",
"rollup-plugin-compat": "^0.21.7",
"worker-farm": "~1.7.0"

@@ -29,3 +30,3 @@ },

],
"gitHead": "6b3e5ae79feebd37eece19a9b6bc6b2d8e897d59"
"gitHead": "4d06a44b069fcefaf95ea845a61bb99ac4254405"
}
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