@atlaspack/cli 2.13.25-typescript-1fd1095e8.0 → 2.13.25-typescript-e99c742e9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import commander from 'commander';
2
+ export interface OptionsDefinition {
3
+ [key: string]: string | unknown[] | commander.Option;
4
+ }
5
+ export declare function applyOptions(cmd: commander.Command, options: OptionsDefinition): void;
package/lib/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function logUncaughtError(e: unknown): Promise<void>;
2
+ export declare function handleUncaughtException(exception: unknown): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import commander from 'commander';
2
+ export declare function makeDebugCommand(): commander.Command;
@@ -0,0 +1,40 @@
1
+ import commander from 'commander';
2
+ import type { FileSystem } from '@atlaspack/fs';
3
+ import type { FeatureFlags } from '@atlaspack/feature-flags';
4
+ import type { InitialAtlaspackOptions, LogLevel } from '@atlaspack/types';
5
+ export interface Options {
6
+ production?: boolean;
7
+ autoinstall?: boolean;
8
+ https?: boolean;
9
+ cert?: string;
10
+ key?: string;
11
+ host: string;
12
+ port?: string;
13
+ hmr?: boolean;
14
+ hmrPort?: string;
15
+ hmrHost?: string;
16
+ publicUrl?: string;
17
+ detailedReport?: boolean | string;
18
+ reporter: string[];
19
+ trace?: boolean;
20
+ cache?: boolean;
21
+ cacheDir?: string;
22
+ watchDir?: string;
23
+ watchBackend?: 'watchman' | 'fs-events' | 'inotify' | 'brute-force' | 'windows';
24
+ watchIgnore?: string[];
25
+ config?: string;
26
+ logLevel?: LogLevel;
27
+ profile?: boolean;
28
+ contentHash?: boolean;
29
+ featureFlag?: Partial<FeatureFlags>;
30
+ optimize?: boolean;
31
+ sourceMaps?: boolean;
32
+ scopeHoist?: boolean;
33
+ distDir?: string;
34
+ lazy?: string;
35
+ lazyExclude?: string;
36
+ target: string[];
37
+ }
38
+ export interface CommandExt extends commander.Command, Options {
39
+ }
40
+ export declare function normalizeOptions(command: CommandExt, inputFS: FileSystem): Promise<InitialAtlaspackOptions>;
@@ -0,0 +1,4 @@
1
+ import type { OptionsDefinition } from './applyOptions';
2
+ export declare let watcherBackendChoices: string[];
3
+ export declare const commonOptions: OptionsDefinition;
4
+ export declare const hmrOptions: OptionsDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/cli",
3
- "version": "2.13.25-typescript-1fd1095e8.0",
3
+ "version": "2.13.25-typescript-e99c742e9.0",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "type": "commonjs",
@@ -14,36 +14,36 @@
14
14
  "bin": {
15
15
  "atlaspack": "bin/atlaspack.js"
16
16
  },
17
- "main": "lib/bin.js",
18
- "source": "src/bin.ts",
17
+ "main": "./lib/bin.js",
18
+ "source": "./src/bin.ts",
19
+ "types": "./lib/bin.d.ts",
19
20
  "scripts": {
20
- "check-ts": "tsc --noEmit"
21
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src"
21
22
  },
22
23
  "engines": {
23
24
  "node": ">= 16.0.0"
24
25
  },
25
26
  "dependencies": {
26
- "@atlaspack/config-default": "3.1.23-typescript-1fd1095e8.0",
27
- "@atlaspack/core": "2.19.3-typescript-1fd1095e8.0",
28
- "@atlaspack/diagnostic": "2.14.2-typescript-1fd1095e8.0",
29
- "@atlaspack/events": "2.14.2-typescript-1fd1095e8.0",
30
- "@atlaspack/feature-flags": "2.19.3-typescript-1fd1095e8.0",
31
- "@atlaspack/fs": "2.15.16-typescript-1fd1095e8.0",
32
- "@atlaspack/logger": "2.14.14-typescript-1fd1095e8.0",
33
- "@atlaspack/package-manager": "2.14.21-typescript-1fd1095e8.0",
34
- "@atlaspack/reporter-cli": "2.17.3-typescript-1fd1095e8.0",
35
- "@atlaspack/reporter-dev-server": "2.14.21-typescript-1fd1095e8.0",
36
- "@atlaspack/reporter-tracer": "2.14.21-typescript-1fd1095e8.0",
37
- "@atlaspack/utils": "2.17.3-typescript-1fd1095e8.0",
27
+ "@atlaspack/config-default": "3.1.23-typescript-e99c742e9.0",
28
+ "@atlaspack/core": "2.19.3-typescript-e99c742e9.0",
29
+ "@atlaspack/diagnostic": "2.14.2-typescript-e99c742e9.0",
30
+ "@atlaspack/events": "2.14.2-typescript-e99c742e9.0",
31
+ "@atlaspack/feature-flags": "2.19.3-typescript-e99c742e9.0",
32
+ "@atlaspack/fs": "2.15.16-typescript-e99c742e9.0",
33
+ "@atlaspack/logger": "2.14.14-typescript-e99c742e9.0",
34
+ "@atlaspack/package-manager": "2.14.21-typescript-e99c742e9.0",
35
+ "@atlaspack/reporter-cli": "2.17.3-typescript-e99c742e9.0",
36
+ "@atlaspack/reporter-dev-server": "2.14.21-typescript-e99c742e9.0",
37
+ "@atlaspack/reporter-tracer": "2.14.21-typescript-e99c742e9.0",
38
+ "@atlaspack/utils": "2.17.3-typescript-e99c742e9.0",
38
39
  "chalk": "^4.1.0",
39
40
  "commander": "^7.0.0",
40
41
  "get-port": "^4.2.0"
41
42
  },
42
43
  "devDependencies": {
43
- "@atlaspack/babel-register": "2.14.2-typescript-1fd1095e8.0",
44
+ "@atlaspack/babel-register": "2.14.2-typescript-e99c742e9.0",
44
45
  "@babel/core": "^7.22.11",
45
46
  "rimraf": "^5.0.5"
46
47
  },
47
- "types": "src/bin.ts",
48
- "gitHead": "1fd1095e86da1e50d6c7819c0f132ce09a2bf396"
49
- }
48
+ "gitHead": "e99c742e92175ac411d807daf2ba45d5bacebb58"
49
+ }