@gjsify/cli 0.0.3 → 0.0.4

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.
@@ -64,10 +64,12 @@ export declare class BuildAction {
64
64
  mangleQuoted?: boolean | undefined;
65
65
  mangleCache?: Record<string, string | false> | undefined;
66
66
  drop?: import("esbuild").Drop[] | undefined;
67
+ dropLabels?: string[] | undefined;
67
68
  minify?: boolean | undefined;
68
69
  minifyWhitespace?: boolean | undefined;
69
70
  minifyIdentifiers?: boolean | undefined;
70
71
  minifySyntax?: boolean | undefined;
72
+ lineLimit?: number | undefined;
71
73
  charset?: import("esbuild").Charset | undefined;
72
74
  treeShaking?: boolean | undefined;
73
75
  ignoreAnnotations?: boolean | undefined;
@@ -86,24 +88,7 @@ export declare class BuildAction {
86
88
  logLevel?: import("esbuild").LogLevel | undefined;
87
89
  logLimit?: number | undefined;
88
90
  logOverride?: Record<string, import("esbuild").LogLevel> | undefined;
89
- tsconfigRaw?: string | {
90
- compilerOptions?: {
91
- alwaysStrict?: boolean | undefined;
92
- baseUrl?: boolean | undefined;
93
- experimentalDecorators?: boolean | undefined;
94
- importsNotUsedAsValues?: "error" | "remove" | "preserve" | undefined;
95
- jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native" | undefined;
96
- jsxFactory?: string | undefined;
97
- jsxFragmentFactory?: string | undefined;
98
- jsxImportSource?: string | undefined;
99
- paths?: Record<string, string[]> | undefined;
100
- preserveValueImports?: boolean | undefined;
101
- strict?: boolean | undefined;
102
- target?: string | undefined;
103
- useDefineForClassFields?: boolean | undefined;
104
- verbatimModuleSyntax?: boolean | undefined;
105
- } | undefined;
106
- } | undefined;
91
+ tsconfigRaw?: string | import("esbuild").TsconfigRaw | undefined;
107
92
  }>[]>;
108
93
  start(buildType?: {
109
94
  library?: boolean;
package/lib/config.d.ts CHANGED
@@ -2,8 +2,8 @@ import { Options as LoadOptions } from 'cosmiconfig';
2
2
  import type { CliBuildOptions, ConfigData } from './types/index.js';
3
3
  import type { ArgumentsCamelCase } from 'yargs';
4
4
  export declare class Config {
5
- readonly loadOptions: LoadOptions;
6
- constructor(loadOptions?: LoadOptions);
5
+ readonly loadOptions: Partial<LoadOptions>;
6
+ constructor(loadOptions?: Partial<LoadOptions>);
7
7
  /** Loads gjsify config file, e.g `.gjsifyrc.js` */
8
8
  private load;
9
9
  /** Loads package.json of the current project */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "CLI for Gjsify",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -23,17 +23,17 @@
23
23
  "cli"
24
24
  ],
25
25
  "dependencies": {
26
- "@gjsify/esbuild-plugin-deepkit": "^0.0.3",
27
- "@gjsify/esbuild-plugin-gjsify": "^0.0.3",
28
- "cosmiconfig": "^8.2.0",
29
- "esbuild": "^0.18.3",
30
- "get-tsconfig": "^4.6.0",
26
+ "@gjsify/esbuild-plugin-deepkit": "^0.0.4",
27
+ "@gjsify/esbuild-plugin-gjsify": "^0.0.4",
28
+ "cosmiconfig": "^9.0.0",
29
+ "esbuild": "^0.19.10",
30
+ "get-tsconfig": "^4.7.2",
31
31
  "lodash": "^4.17.21",
32
32
  "pkg-types": "^1.0.3",
33
33
  "yargs": "^17.7.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/yargs": "^17.0.24",
37
- "typescript": "^5.1.3"
36
+ "@types/yargs": "^17.0.32",
37
+ "typescript": "^5.3.3"
38
38
  }
39
39
  }
package/src/config.ts CHANGED
@@ -10,9 +10,9 @@ import type { ArgumentsCamelCase } from 'yargs';
10
10
 
11
11
  export class Config {
12
12
 
13
- readonly loadOptions: LoadOptions = {}
13
+ readonly loadOptions: Partial<LoadOptions> = {}
14
14
 
15
- constructor(loadOptions: LoadOptions = {}) {
15
+ constructor(loadOptions: Partial<LoadOptions> = {}) {
16
16
  if(Object.keys(loadOptions).length) {
17
17
  this.loadOptions = loadOptions;
18
18
  }