bob-esbuild-cli
Advanced tools
Comparing version 4.0.0 to 5.0.0-alpha-d826df0.0
'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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
172
8517
1
+ Added@pnpm/types@9.4.2(transitive)
+ Added@rollup/pluginutils@5.1.3(transitive)
+ Added@rollup/rollup-android-arm-eabi@4.27.4(transitive)
+ Added@rollup/rollup-android-arm64@4.27.4(transitive)
+ Added@rollup/rollup-darwin-arm64@4.27.4(transitive)
+ Added@rollup/rollup-darwin-x64@4.27.4(transitive)
+ Added@rollup/rollup-freebsd-arm64@4.27.4(transitive)
+ Added@rollup/rollup-freebsd-x64@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm-musleabihf@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.27.4(transitive)
+ Added@rollup/rollup-linux-powerpc64le-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-s390x-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.27.4(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.27.4(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.27.4(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.27.4(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Addedbob-esbuild@5.0.0-alpha-d826df0.0(transitive)
+ Addedbob-esbuild-plugin@5.0.0-alpha-d826df0.0(transitive)
+ Addedcommander@11.1.0(transitive)
+ Addedpicomatch@4.0.2(transitive)
+ Addedrollup@4.27.4(transitive)
- Removed@pnpm/types@8.10.0(transitive)
- Removed@rollup/pluginutils@4.2.1(transitive)
- Removedbob-esbuild@4.0.3(transitive)
- Removedbob-esbuild-plugin@4.0.0(transitive)
- Removedcommander@9.5.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedrollup@2.79.2(transitive)
Updatedcommander@^11.1.0