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

bob-esbuild-cli

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bob-esbuild-cli - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0-alpha-d826df0.0

6

lib/commands/build.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var build = require('bob-esbuild/build');
var commander = require('commander');
const build = require('bob-esbuild/build');
const commander = require('commander');
const BuildCommand = new commander.Command("build").description("Build using rollup+esbuild, all these flags override the bob-esbuild.config").option("--cwd <dir>", "Change target current directory").option("-i --input <file...>", "Input pattern files, if not specified, it reads '**/*.ts'").option("--bundle", "Enable bundling every entry point (With no support for code-splitting)").option("--clean", "Clean the output files before writing the new build, by default it's set as 'true' by the global config").option("--skipTsc", "Skip TSC build").option("--onlyCJS", "Only build for CJS").option("--onlyESM", "Only build for ESM").option("--skipValidate", "Skip package.json validation").action(async ({ cwd, inputFiles, bundle, clean, onlyCJS, onlyESM, skipTsc, skipValidate }) => {

@@ -9,0 +7,0 @@ await build.startBuild({

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var build = require('./build.js');
var tsc = require('./tsc.js');
var watch = require('./watch.js');
const build = require('./build.js');
const tsc = require('./tsc.js');
const watch = require('./watch.js');
exports.BuildCommand = build.BuildCommand;
exports.TSCCommand = tsc.TSCCommand;
exports.WatchCommand = watch.WatchCommand;
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var bobEsbuild = require('bob-esbuild');
var commander = require('commander');
const bobEsbuild = require('bob-esbuild');
const commander = require('commander');
const TSCCommand = new commander.Command("tsc").description("Run tsc and then copy the types").option("-t --target <...dirs>").action(async ({ target }) => {

@@ -9,0 +7,0 @@ await bobEsbuild.buildTsc({

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var watch = require('bob-esbuild/watch');
var commander = require('commander');
const watch = require('bob-esbuild/watch');
const commander = require('commander');
const WatchCommand = new commander.Command("watch").description("Watch using rollup+esbuild, all these flags override the bob-esbuild.config");
WatchCommand.option("--cwd <dir>", "Change target current directory").option("-i --input <file...>", "Input pattern files, if not specified, it reads '**/*.ts'").option("--bundle", "Enable bundling every entry point (With no support for code-splitting)").option("--clean", "DEFAULT=false. Clean the output files before writing the new build, by default it's set as 'true' by the global config", false).option("--skipTsc", "Skip TSC build").option("--onlyCJS", "Only build for CJS").option("--onlyESM", "Only build for ESM").option("--onSuccess <cmd>", "Execute script after successful JS build").option("--skipValidate", "Skip package.json validation").action(async ({ cwd, input: inputFiles, bundle, clean, onSuccess, onlyCJS, onlyESM, skipTsc, skipValidate }) => {
const WatchCommand = new commander.Command("watch").description(
"Watch using rollup+esbuild, all these flags override the bob-esbuild.config"
);
WatchCommand.option("--cwd <dir>", "Change target current directory").option("-i --input <file...>", "Input pattern files, if not specified, it reads '**/*.ts'").option("--bundle", "Enable bundling every entry point (With no support for code-splitting)").option(
"--clean",
"DEFAULT=false. Clean the output files before writing the new build, by default it's set as 'true' by the global config",
false
).option("--skipTsc", "Skip TSC build").option("--onlyCJS", "Only build for CJS").option("--onlyESM", "Only build for ESM").option("--onSuccess <cmd>", "Execute script after successful JS build").option("--skipValidate", "Skip package.json validation").action(async ({ cwd, input: inputFiles, bundle, clean, onSuccess, onlyCJS, onlyESM, skipTsc, skipValidate }) => {
const { watcher } = await watch.startWatch({

@@ -11,0 +15,0 @@ rollup: {

'use strict';
const commander = require('commander');
const build = require('./commands/build.js');
const tsc = require('./commands/tsc.js');
const watch = require('./commands/watch.js');
var commander = require('commander');
var build = require('./commands/build.js');
var tsc = require('./commands/tsc.js');
var watch = require('./commands/watch.js');

@@ -8,0 +8,0 @@ commander.program.addCommand(build.BuildCommand).addCommand(tsc.TSCCommand).addCommand(watch.WatchCommand);

{
"name": "bob-esbuild-cli",
"version": "4.0.0",
"version": "5.0.0-alpha-d826df0.0",
"homepage": "https://github.com/PabloSzx/bob-esbuild",

@@ -34,11 +34,11 @@ "bugs": "https://github.com/PabloSzx/bob-esbuild/issues",

"dependencies": {
"commander": "^9.2.0"
"commander": "^11.1.0"
},
"devDependencies": {
"bob-esbuild": "^4.0.0",
"bob-esbuild": "^5.0.0-alpha-d826df0.0",
"changesets-github-release": "^0.1.0",
"typescript": "^4.6.4"
"typescript": "^5.3.3"
},
"peerDependencies": {
"bob-esbuild": "^4.0.0"
"bob-esbuild": "^5.0.0-alpha-d826df0.0"
},

@@ -45,0 +45,0 @@ "peerDependenciesMeta": {

Sorry, the diff of this file is not supported yet

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