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
304
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

to
2.12.1-canary.3492

37

lib/cli.js

@@ -237,6 +237,5 @@ "use strict";

Object.assign(command, opts);
const Atlaspack = require('@atlaspack/core').default;
const fs = new (_fs().NodeFS)();
const options = await normalizeOptions(command, fs);
console.log(command.featureFlag);
const Atlaspack = require('@atlaspack/core').default;
const atlaspack = new Atlaspack({

@@ -260,2 +259,36 @@ entries,

applyOptions(invalidate, commonOptions);
const buildAssetGraph = debug.command('build-asset-graph [input...]').description('Build the asset graph then exit').action(async (entries, opts, command) => {
try {
if (entries.length === 0) {
entries = ['.'];
}
entries = entries.map(entry => _path().default.resolve(entry));
Object.assign(command, opts);
const fs = new (_fs().NodeFS)();
const options = await normalizeOptions(command, fs);
const Atlaspack = require('@atlaspack/core').default;
const atlaspack = new Atlaspack({
entries,
defaultConfig: require.resolve('@atlaspack/config-default', {
paths: [fs.cwd(), __dirname]
}),
shouldPatchConsole: false,
...options,
shouldBuildLazily: true,
watchBackend: 'watchman',
featureFlags: {
...options.featureFlags,
fixQuadraticCacheInvalidation: 'NEW',
useLmdbJsLite: true
}
});
console.log('Created atlaspack instance');
await atlaspack.unstable_buildAssetGraph();
console.log('Done building asset graph');
process.exit(0);
} catch (err) {
handleUncaughtException(err);
}
});
applyOptions(buildAssetGraph, commonOptions);
return debug;

@@ -262,0 +295,0 @@ }

28

package.json
{
"name": "@atlaspack/cli",
"version": "2.12.1-canary.3491+a99ff5d2c",
"version": "2.12.1-canary.3492+4df4fe4cb",
"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.3491+a99ff5d2c",
"@atlaspack/core": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/diagnostic": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/events": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/feature-flags": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/fs": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/logger": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/package-manager": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/reporter-cli": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/reporter-dev-server": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/reporter-tracer": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/utils": "2.12.1-canary.3491+a99ff5d2c",
"@atlaspack/config-default": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/core": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/diagnostic": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/events": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/feature-flags": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/fs": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/logger": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/package-manager": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/reporter-cli": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/reporter-dev-server": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/reporter-tracer": "2.12.1-canary.3492+4df4fe4cb",
"@atlaspack/utils": "2.12.1-canary.3492+4df4fe4cb",
"chalk": "^4.1.0",

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

},
"gitHead": "a99ff5d2c9aaeea8d96463c920ab0e86059dfbe7"
"gitHead": "4df4fe4cb9dd65932316b439ba69c76ca50bd56e"
}

@@ -251,8 +251,7 @@ // @flow

Object.assign(command, opts);
const Atlaspack = require('@atlaspack/core').default;
const fs = new NodeFS();
const options = await normalizeOptions(command, fs);
console.log(command.featureFlag);
const Atlaspack = require('@atlaspack/core').default;
const atlaspack = new Atlaspack({

@@ -278,2 +277,44 @@ entries,

const buildAssetGraph = debug
.command('build-asset-graph [input...]')
.description('Build the asset graph then exit')
.action(async (entries, opts, command: any) => {
try {
if (entries.length === 0) {
entries = ['.'];
}
entries = entries.map((entry) => path.resolve(entry));
Object.assign(command, opts);
const fs = new NodeFS();
const options = await normalizeOptions(command, fs);
const Atlaspack = require('@atlaspack/core').default;
const atlaspack = new Atlaspack({
entries,
defaultConfig: require.resolve('@atlaspack/config-default', {
paths: [fs.cwd(), __dirname],
}),
shouldPatchConsole: false,
...options,
shouldBuildLazily: true,
watchBackend: 'watchman',
featureFlags: {
...options.featureFlags,
fixQuadraticCacheInvalidation: 'NEW',
useLmdbJsLite: true,
},
});
console.log('Created atlaspack instance');
await atlaspack.unstable_buildAssetGraph();
console.log('Done building asset graph');
process.exit(0);
} catch (err) {
handleUncaughtException(err);
}
});
applyOptions(buildAssetGraph, commonOptions);
return debug;

@@ -280,0 +321,0 @@ }