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

@atlaspack/cli

Package Overview
Dependencies
Maintainers
0
Versions
302
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/cli - npm Package Compare versions

Comparing version 2.12.1-canary.3443 to 2.12.1-canary.3444

15

lib/cli.js

@@ -220,6 +220,6 @@ "use strict";

}
let serve = program.command('serve [input...]').description('starts a development server').option('--public-url <url>', 'the path prefix for absolute urls').option('--open [browser]', 'automatically open in specified browser, defaults to default browser').option('--watch-for-stdin', 'exit when stdin closes').option('--lazy [includes]', 'Build async bundles on demand, when requested in the browser. Defaults to all async bundles, unless a comma separated list of source file globs is provided. Only async bundles whose entry points match these globs will be built lazily').option('--lazy-exclude <excludes>', 'Can only be used in combination with --lazy. Comma separated list of source file globs, async bundles whose entry points match these globs will not be built lazily').action(runCommand);
let serve = program.command('serve [input...]').description('starts a development server').option('--public-url <url>', 'the path prefix for absolute urls').option('--open [browser]', 'automatically open in specified browser, defaults to default browser').option('--watch-for-stdin', 'exit when stdin closes').option('--lazy [includes]', 'Build async bundles on demand, when requested in the browser. Defaults to all async bundles, unless a comma separated list of source file globs is provided. Only async bundles whose entry points match these globs will be built lazily').option('--lazy-exclude <excludes>', 'Can only be used in combination with --lazy. Comma separated list of source file globs, async bundles whose entry points match these globs will not be built lazily').option('--production', 'Run with production mode defaults').action(runCommand);
applyOptions(serve, hmrOptions);
applyOptions(serve, commonOptions);
let watch = program.command('watch [input...]').description('starts the bundler in watch mode').option('--public-url <url>', 'the path prefix for absolute urls').option('--no-content-hash', 'disable content hashing').option('--watch-for-stdin', 'exit when stdin closes').action(runCommand);
let watch = program.command('watch [input...]').description('starts the bundler in watch mode').option('--public-url <url>', 'the path prefix for absolute urls').option('--no-content-hash', 'disable content hashing').option('--watch-for-stdin', 'exit when stdin closes').option('--production', 'Run with production mode defaults').action(runCommand);
applyOptions(watch, hmrOptions);

@@ -419,5 +419,8 @@ applyOptions(watch, commonOptions);

}
function shouldUseProductionDefaults(command) {
return command.name() === 'build' || command.production === true;
}
async function normalizeOptions(command, inputFS) {
let nodeEnv;
if (command.name() === 'build') {
if (shouldUseProductionDefaults(command)) {
nodeEnv = process.env.NODE_ENV || 'production';

@@ -448,3 +451,3 @@ // Autoinstall unless explicitly disabled or we detect a CI environment.

let originalPort = port;
if (command.name() === 'serve' || command.hmr) {
if (!shouldUseProductionDefaults(command) && (command.name() === 'serve' || command.hmr)) {
try {

@@ -487,3 +490,3 @@ port = await (0, _getPort().default)({

let hmrOptions = null;
if (command.name() !== 'build' && command.hmr !== false) {
if (!shouldUseProductionDefaults(command) && command.hmr !== false) {
let hmrport = command.hmrPort ? parsePort(command.hmrPort) : port;

@@ -512,3 +515,3 @@ let hmrhost = command.hmrHost ? command.hmrHost : host;

}
let mode = command.name() === 'build' ? 'production' : 'development';
let mode = shouldUseProductionDefaults(command) ? 'production' : 'development';
const normalizeIncludeExcludeList = input => {

@@ -515,0 +518,0 @@ if (typeof input !== 'string') return [];

28

package.json
{
"name": "@atlaspack/cli",
"version": "2.12.1-canary.3443+15e45b97e",
"version": "2.12.1-canary.3444+f790d5759",
"description": "Blazing fast, zero configuration web application bundler",

@@ -26,14 +26,14 @@ "license": "(MIT OR Apache-2.0)",

"dependencies": {
"@atlaspack/config-default": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/core": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/diagnostic": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/events": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/feature-flags": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/fs": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/logger": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/package-manager": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/reporter-cli": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/reporter-dev-server": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/reporter-tracer": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/utils": "2.12.1-canary.3443+15e45b97e",
"@atlaspack/config-default": "2.12.1-canary.3444+f790d5759",
"@atlaspack/core": "2.12.1-canary.3444+f790d5759",
"@atlaspack/diagnostic": "2.12.1-canary.3444+f790d5759",
"@atlaspack/events": "2.12.1-canary.3444+f790d5759",
"@atlaspack/feature-flags": "2.12.1-canary.3444+f790d5759",
"@atlaspack/fs": "2.12.1-canary.3444+f790d5759",
"@atlaspack/logger": "2.12.1-canary.3444+f790d5759",
"@atlaspack/package-manager": "2.12.1-canary.3444+f790d5759",
"@atlaspack/reporter-cli": "2.12.1-canary.3444+f790d5759",
"@atlaspack/reporter-dev-server": "2.12.1-canary.3444+f790d5759",
"@atlaspack/reporter-tracer": "2.12.1-canary.3444+f790d5759",
"@atlaspack/utils": "2.12.1-canary.3444+f790d5759",
"chalk": "^4.1.0",

@@ -48,3 +48,3 @@ "commander": "^7.0.0",

},
"gitHead": "15e45b97efca8057803259d2b6362ac1f3e50567"
"gitHead": "f790d5759624f38c8a6663c1e146c59429f79327"
}

@@ -206,2 +206,3 @@ // @flow

)
.option('--production', 'Run with production mode defaults')
.action(runCommand);

@@ -218,2 +219,3 @@

.option('--watch-for-stdin', 'exit when stdin closes')
.option('--production', 'Run with production mode defaults')
.action(runCommand);

@@ -479,2 +481,6 @@

function shouldUseProductionDefaults(command) {
return command.name() === 'build' || command.production === true;
}
async function normalizeOptions(

@@ -485,3 +491,3 @@ command,

let nodeEnv;
if (command.name() === 'build') {
if (shouldUseProductionDefaults(command)) {
nodeEnv = process.env.NODE_ENV || 'production';

@@ -512,3 +518,6 @@ // Autoinstall unless explicitly disabled or we detect a CI environment.

let originalPort = port;
if (command.name() === 'serve' || command.hmr) {
if (
!shouldUseProductionDefaults(command) &&
(command.name() === 'serve' || command.hmr)
) {
try {

@@ -550,3 +559,3 @@ port = await getPort({port, host});

let hmrOptions = null;
if (command.name() !== 'build' && command.hmr !== false) {
if (!shouldUseProductionDefaults(command) && command.hmr !== false) {
let hmrport = command.hmrPort ? parsePort(command.hmrPort) : port;

@@ -580,3 +589,5 @@ let hmrhost = command.hmrHost ? command.hmrHost : host;

let mode = command.name() === 'build' ? 'production' : 'development';
let mode = shouldUseProductionDefaults(command)
? 'production'
: 'development';

@@ -583,0 +594,0 @@ const normalizeIncludeExcludeList = (input?: string): string[] => {

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