@powerlines/plugin-oxlint 0.7.125 → 0.7.127

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.
Files changed (51) hide show
  1. package/dist/generate-config-BJgmb4Je.mjs +58 -0
  2. package/dist/generate-config-BZjB8irN.cjs +63 -0
  3. package/dist/generate-config-CJpFtLVj.d.mts +13 -0
  4. package/dist/generate-config-Cwl9NeWs.d.cts +13 -0
  5. package/dist/helpers/generate-config.cjs +2 -57
  6. package/dist/helpers/generate-config.d.cts +2 -12
  7. package/dist/helpers/generate-config.d.mts +2 -12
  8. package/dist/helpers/generate-config.mjs +1 -56
  9. package/dist/helpers/index.cjs +2 -2
  10. package/dist/helpers/index.d.cts +2 -1
  11. package/dist/helpers/index.d.mts +2 -1
  12. package/dist/helpers/index.mjs +1 -1
  13. package/dist/index-D-CYNcT9.d.mts +1 -0
  14. package/dist/index-D6CnpA_r.d.cts +1 -0
  15. package/dist/index.cjs +2 -0
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.mts +2 -3
  18. package/dist/index.mjs +2 -0
  19. package/dist/plugin-DHXHjv16.cjs +0 -0
  20. package/dist/plugin-DNsqegEV.mjs +1 -0
  21. package/dist/plugin-Dh4sgAGc.d.cts +1834 -0
  22. package/dist/plugin-mSDnp4ZZ.d.mts +1834 -0
  23. package/dist/types/index.cjs +2 -0
  24. package/dist/types/index.d.cts +2 -1
  25. package/dist/types/index.d.mts +2 -1
  26. package/dist/types/index.mjs +3 -0
  27. package/dist/types/plugin.cjs +1 -0
  28. package/dist/types/plugin.d.cts +1 -82
  29. package/dist/types/plugin.d.mts +1 -82
  30. package/dist/types/plugin.mjs +2 -0
  31. package/dist/types-CpP_DWx6.mjs +1 -0
  32. package/dist/types-DHkg7xmX.cjs +0 -0
  33. package/package.json +4 -4
  34. package/dist/powerlines/src/types/babel.d.mts +0 -2
  35. package/dist/powerlines/src/types/build.d.cts +0 -145
  36. package/dist/powerlines/src/types/build.d.mts +0 -145
  37. package/dist/powerlines/src/types/commands.d.cts +0 -8
  38. package/dist/powerlines/src/types/commands.d.mts +0 -9
  39. package/dist/powerlines/src/types/config.d.cts +0 -369
  40. package/dist/powerlines/src/types/config.d.mts +0 -369
  41. package/dist/powerlines/src/types/context.d.cts +0 -403
  42. package/dist/powerlines/src/types/context.d.mts +0 -405
  43. package/dist/powerlines/src/types/fs.d.cts +0 -486
  44. package/dist/powerlines/src/types/fs.d.mts +0 -486
  45. package/dist/powerlines/src/types/hooks.d.mts +0 -2
  46. package/dist/powerlines/src/types/plugin.d.cts +0 -231
  47. package/dist/powerlines/src/types/plugin.d.mts +0 -231
  48. package/dist/powerlines/src/types/resolved.d.cts +0 -81
  49. package/dist/powerlines/src/types/resolved.d.mts +0 -81
  50. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  51. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
@@ -0,0 +1,2 @@
1
+ require('../plugin-DHXHjv16.cjs');
2
+ require('../types-DHkg7xmX.cjs');
@@ -1,2 +1,3 @@
1
- import { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig } from "./plugin.cjs";
1
+ import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-Dh4sgAGc.cjs";
2
+ import "../index-D6CnpA_r.cjs";
2
3
  export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
@@ -1,2 +1,3 @@
1
- import { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig } from "./plugin.mjs";
1
+ import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-mSDnp4ZZ.mjs";
2
+ import "../index-D-CYNcT9.mjs";
2
3
  export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
@@ -1 +1,4 @@
1
+ import "../plugin-DNsqegEV.mjs";
2
+ import "../types-CpP_DWx6.mjs";
3
+
1
4
  export { };
@@ -0,0 +1 @@
1
+ require('../plugin-DHXHjv16.cjs');
@@ -1,83 +1,2 @@
1
- import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
2
- import { PluginContext } from "../powerlines/src/types/context.cjs";
3
- import { UserConfig } from "../powerlines/src/types/config.cjs";
4
-
5
- //#region src/types/plugin.d.ts
6
- interface OxlintPluginOptions {
7
- /**
8
- * A glob pattern or path to ignore files and directories.
9
- */
10
- ignorePatterns?: string | string[];
11
- /**
12
- * The path to the Oxlint configuration file.
13
- *
14
- * @defaultValue ".oxlintrc.json"
15
- */
16
- configFile?: string;
17
- /**
18
- * An array of rules to deny
19
- */
20
- deny?: string[];
21
- /**
22
- * An array of rules to allow
23
- */
24
- allow?: string[];
25
- /**
26
- * An array of rules to warn about
27
- */
28
- warn?: string[];
29
- /**
30
- * Additional parameters to pass to the Oxlint CLI
31
- */
32
- params?: string;
33
- /**
34
- * The path to the Oxlint binary
35
- */
36
- oxlintPath?: string;
37
- /**
38
- * Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
39
- *
40
- * @defaultValue true
41
- */
42
- typeAware?: boolean;
43
- /**
44
- * Whether to automatically fix fixable issues.
45
- *
46
- * - `true` - Automatically fix fixable issues.
47
- * - `false` - Do not fix any issues.
48
- * - `"suggestions"` - Only apply fixes that are considered suggestions.
49
- * - `"dangerously"` - Apply all fixes, including those that may change code behavior.
50
- *
51
- * @defaultValue true
52
- */
53
- fix?: boolean | "suggestions" | "dangerously";
54
- /**
55
- * The output format for linting results.
56
- *
57
- * @defaultValue "stylish"
58
- */
59
- format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
60
- }
61
- interface OxlintPluginUserConfig extends UserConfig {
62
- /**
63
- * Options for the Oxlint plugin.
64
- */
65
- lint?: {
66
- oxlint?: OxlintPluginOptions;
67
- };
68
- }
69
- interface OxlintPluginResolvedConfig extends ResolvedConfig {
70
- /**
71
- * Options for the Oxlint plugin.
72
- */
73
- lint: {
74
- oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
75
- };
76
- }
77
- type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
78
- declare type __ΩOxlintPluginOptions = any[];
79
- declare type __ΩOxlintPluginUserConfig = any[];
80
- declare type __ΩOxlintPluginResolvedConfig = any[];
81
- declare type __ΩOxlintPluginContext = any[];
82
- //#endregion
1
+ import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-Dh4sgAGc.cjs";
83
2
  export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
@@ -1,83 +1,2 @@
1
- import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
2
- import { PluginContext } from "../powerlines/src/types/context.mjs";
3
- import { UserConfig } from "../powerlines/src/types/config.mjs";
4
-
5
- //#region src/types/plugin.d.ts
6
- interface OxlintPluginOptions {
7
- /**
8
- * A glob pattern or path to ignore files and directories.
9
- */
10
- ignorePatterns?: string | string[];
11
- /**
12
- * The path to the Oxlint configuration file.
13
- *
14
- * @defaultValue ".oxlintrc.json"
15
- */
16
- configFile?: string;
17
- /**
18
- * An array of rules to deny
19
- */
20
- deny?: string[];
21
- /**
22
- * An array of rules to allow
23
- */
24
- allow?: string[];
25
- /**
26
- * An array of rules to warn about
27
- */
28
- warn?: string[];
29
- /**
30
- * Additional parameters to pass to the Oxlint CLI
31
- */
32
- params?: string;
33
- /**
34
- * The path to the Oxlint binary
35
- */
36
- oxlintPath?: string;
37
- /**
38
- * Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
39
- *
40
- * @defaultValue true
41
- */
42
- typeAware?: boolean;
43
- /**
44
- * Whether to automatically fix fixable issues.
45
- *
46
- * - `true` - Automatically fix fixable issues.
47
- * - `false` - Do not fix any issues.
48
- * - `"suggestions"` - Only apply fixes that are considered suggestions.
49
- * - `"dangerously"` - Apply all fixes, including those that may change code behavior.
50
- *
51
- * @defaultValue true
52
- */
53
- fix?: boolean | "suggestions" | "dangerously";
54
- /**
55
- * The output format for linting results.
56
- *
57
- * @defaultValue "stylish"
58
- */
59
- format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
60
- }
61
- interface OxlintPluginUserConfig extends UserConfig {
62
- /**
63
- * Options for the Oxlint plugin.
64
- */
65
- lint?: {
66
- oxlint?: OxlintPluginOptions;
67
- };
68
- }
69
- interface OxlintPluginResolvedConfig extends ResolvedConfig {
70
- /**
71
- * Options for the Oxlint plugin.
72
- */
73
- lint: {
74
- oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
75
- };
76
- }
77
- type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
78
- declare type __ΩOxlintPluginOptions = any[];
79
- declare type __ΩOxlintPluginUserConfig = any[];
80
- declare type __ΩOxlintPluginResolvedConfig = any[];
81
- declare type __ΩOxlintPluginContext = any[];
82
- //#endregion
1
+ import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-mSDnp4ZZ.mjs";
83
2
  export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
@@ -1 +1,3 @@
1
+ import "../plugin-DNsqegEV.mjs";
2
+
1
3
  export { };
@@ -0,0 +1 @@
1
+ export { };
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-oxlint",
3
- "version": "0.7.125",
3
+ "version": "0.7.127",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for running Oxlint on the codebase.",
6
6
  "repository": {
@@ -108,13 +108,13 @@
108
108
  "defu": "^6.1.4",
109
109
  "oxlint": "^1.36.0",
110
110
  "oxlint-tsgolint": "^0.2.1",
111
- "powerlines": "^0.36.26"
111
+ "powerlines": "^0.36.27"
112
112
  },
113
113
  "devDependencies": {
114
- "@powerlines/nx": "^0.11.52",
114
+ "@powerlines/nx": "^0.11.53",
115
115
  "@storm-software/tsup": "^0.2.73",
116
116
  "@types/node": "^24.10.4"
117
117
  },
118
118
  "publishConfig": { "access": "public" },
119
- "gitHead": "f27028746c0657470a2c93af2e3224565ae7fd61"
119
+ "gitHead": "fbc59ce584fd0f78d90d2dbaa18f9c9267bd3b61"
120
120
  }
@@ -1,2 +0,0 @@
1
- import "./context.mjs";
2
- import "./config.mjs";
@@ -1,145 +0,0 @@
1
- //#region ../powerlines/src/types/build.d.ts
2
-
3
- type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
4
- interface BuildConfig {
5
- /**
6
- * The platform to build the project for
7
- *
8
- * @defaultValue "neutral"
9
- */
10
- platform?: "node" | "browser" | "neutral";
11
- /**
12
- * Array of strings indicating the polyfills to include for the build.
13
- *
14
- * @remarks
15
- * This option allows you to specify which polyfills should be included in the build process to ensure compatibility with the target environment. The paths for the polyfills can use placeholder tokens (the `replacePathTokens` helper function will be used to resolve the actual values).
16
- *
17
- * @example
18
- * ```ts
19
- * {
20
- * polyfill: ['{projectRoot}/custom-polyfill.ts']
21
- * }
22
- * ```
23
- */
24
- polyfill?: string[];
25
- /**
26
- * Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
27
- *
28
- * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
29
- */
30
- mainFields?: string[];
31
- /**
32
- * Array of strings indicating what conditions should be used for module resolution.
33
- */
34
- conditions?: string[];
35
- /**
36
- * Array of strings indicating what file extensions should be used for module resolution.
37
- *
38
- * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
39
- */
40
- extensions?: string[];
41
- /**
42
- * Array of strings indicating what modules should be deduplicated to a single version in the build.
43
- *
44
- * @remarks
45
- * This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
46
- */
47
- dedupe?: string[];
48
- /**
49
- * Array of strings or regular expressions that indicate what modules are builtin for the environment.
50
- */
51
- builtins?: (string | RegExp)[];
52
- /**
53
- * Define global variable replacements.
54
- *
55
- * @remarks
56
- * This option allows you to specify global constants that will be replaced in the code during the build process. It is similar to the `define` option in esbuild and Vite, enabling you to replace specific identifiers with constant expressions at build time.
57
- *
58
- * @example
59
- * ```ts
60
- * {
61
- * define: {
62
- * __VERSION__: '"1.0.0"',
63
- * __DEV__: 'process.env.NODE_ENV !== "production"'
64
- * }
65
- * }
66
- * ```
67
- *
68
- * @see https://esbuild.github.io/api/#define
69
- * @see https://vitejs.dev/config/build-options.html#define
70
- * @see https://github.com/rollup/plugins/tree/master/packages/replace
71
- */
72
- define?: Record<string, any>;
73
- /**
74
- * Global variables that will have import statements injected where necessary
75
- *
76
- * @remarks
77
- * This option allows you to specify global variables that should be automatically imported from specified modules whenever they are used in the code. This is particularly useful for polyfilling Node.js globals in a browser environment.
78
- *
79
- * @example
80
- * ```ts
81
- * {
82
- * inject: {
83
- * process: 'process/browser',
84
- * Buffer: ['buffer', 'Buffer'],
85
- * }
86
- * }
87
- * ```
88
- *
89
- * @see https://github.com/rollup/plugins/tree/master/packages/inject
90
- */
91
- inject?: Record<string, string | string[]>;
92
- /**
93
- * The alias mappings to use for module resolution during the build process.
94
- *
95
- * @remarks
96
- * This option allows you to define custom path aliases for modules, which can be useful for simplifying imports and managing dependencies.
97
- *
98
- * @example
99
- * ```ts
100
- * {
101
- * alias: {
102
- * "@utils": "./src/utils",
103
- * "@components": "./src/components"
104
- * }
105
- * }
106
- * ```
107
- *
108
- * @see https://github.com/rollup/plugins/tree/master/packages/alias
109
- */
110
- alias?: Record<string, string> | Array<{
111
- find: string | RegExp;
112
- replacement: string;
113
- }>;
114
- /**
115
- * A list of modules that should not be bundled, even if they are external dependencies.
116
- *
117
- * @remarks
118
- * This option is useful for excluding specific modules from the bundle, such as Node.js built-in modules or other libraries that should not be bundled.
119
- */
120
- external?: (string | RegExp)[];
121
- /**
122
- * A list of modules that should always be bundled, even if they are external dependencies.
123
- */
124
- noExternal?: (string | RegExp)[];
125
- /**
126
- * Should the Powerlines CLI processes skip bundling the `node_modules` directory?
127
- */
128
- skipNodeModulesBundle?: boolean;
129
- /**
130
- * If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime. Otherwise, it is statically replaced as an empty object.
131
- *
132
- * @defaultValue false
133
- */
134
- keepProcessEnv?: boolean;
135
- /**
136
- * An optional set of override options to apply to the selected build variant.
137
- *
138
- * @remarks
139
- * This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
140
- */
141
- override?: Record<string, any>;
142
- }
143
- type BuildResolvedConfig = Omit<BuildConfig, "override">;
144
- //#endregion
145
- export { BuildConfig, BuildResolvedConfig, UnpluginBuildVariant };
@@ -1,145 +0,0 @@
1
- //#region ../powerlines/src/types/build.d.ts
2
-
3
- type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
4
- interface BuildConfig {
5
- /**
6
- * The platform to build the project for
7
- *
8
- * @defaultValue "neutral"
9
- */
10
- platform?: "node" | "browser" | "neutral";
11
- /**
12
- * Array of strings indicating the polyfills to include for the build.
13
- *
14
- * @remarks
15
- * This option allows you to specify which polyfills should be included in the build process to ensure compatibility with the target environment. The paths for the polyfills can use placeholder tokens (the `replacePathTokens` helper function will be used to resolve the actual values).
16
- *
17
- * @example
18
- * ```ts
19
- * {
20
- * polyfill: ['{projectRoot}/custom-polyfill.ts']
21
- * }
22
- * ```
23
- */
24
- polyfill?: string[];
25
- /**
26
- * Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
27
- *
28
- * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
29
- */
30
- mainFields?: string[];
31
- /**
32
- * Array of strings indicating what conditions should be used for module resolution.
33
- */
34
- conditions?: string[];
35
- /**
36
- * Array of strings indicating what file extensions should be used for module resolution.
37
- *
38
- * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
39
- */
40
- extensions?: string[];
41
- /**
42
- * Array of strings indicating what modules should be deduplicated to a single version in the build.
43
- *
44
- * @remarks
45
- * This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
46
- */
47
- dedupe?: string[];
48
- /**
49
- * Array of strings or regular expressions that indicate what modules are builtin for the environment.
50
- */
51
- builtins?: (string | RegExp)[];
52
- /**
53
- * Define global variable replacements.
54
- *
55
- * @remarks
56
- * This option allows you to specify global constants that will be replaced in the code during the build process. It is similar to the `define` option in esbuild and Vite, enabling you to replace specific identifiers with constant expressions at build time.
57
- *
58
- * @example
59
- * ```ts
60
- * {
61
- * define: {
62
- * __VERSION__: '"1.0.0"',
63
- * __DEV__: 'process.env.NODE_ENV !== "production"'
64
- * }
65
- * }
66
- * ```
67
- *
68
- * @see https://esbuild.github.io/api/#define
69
- * @see https://vitejs.dev/config/build-options.html#define
70
- * @see https://github.com/rollup/plugins/tree/master/packages/replace
71
- */
72
- define?: Record<string, any>;
73
- /**
74
- * Global variables that will have import statements injected where necessary
75
- *
76
- * @remarks
77
- * This option allows you to specify global variables that should be automatically imported from specified modules whenever they are used in the code. This is particularly useful for polyfilling Node.js globals in a browser environment.
78
- *
79
- * @example
80
- * ```ts
81
- * {
82
- * inject: {
83
- * process: 'process/browser',
84
- * Buffer: ['buffer', 'Buffer'],
85
- * }
86
- * }
87
- * ```
88
- *
89
- * @see https://github.com/rollup/plugins/tree/master/packages/inject
90
- */
91
- inject?: Record<string, string | string[]>;
92
- /**
93
- * The alias mappings to use for module resolution during the build process.
94
- *
95
- * @remarks
96
- * This option allows you to define custom path aliases for modules, which can be useful for simplifying imports and managing dependencies.
97
- *
98
- * @example
99
- * ```ts
100
- * {
101
- * alias: {
102
- * "@utils": "./src/utils",
103
- * "@components": "./src/components"
104
- * }
105
- * }
106
- * ```
107
- *
108
- * @see https://github.com/rollup/plugins/tree/master/packages/alias
109
- */
110
- alias?: Record<string, string> | Array<{
111
- find: string | RegExp;
112
- replacement: string;
113
- }>;
114
- /**
115
- * A list of modules that should not be bundled, even if they are external dependencies.
116
- *
117
- * @remarks
118
- * This option is useful for excluding specific modules from the bundle, such as Node.js built-in modules or other libraries that should not be bundled.
119
- */
120
- external?: (string | RegExp)[];
121
- /**
122
- * A list of modules that should always be bundled, even if they are external dependencies.
123
- */
124
- noExternal?: (string | RegExp)[];
125
- /**
126
- * Should the Powerlines CLI processes skip bundling the `node_modules` directory?
127
- */
128
- skipNodeModulesBundle?: boolean;
129
- /**
130
- * If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime. Otherwise, it is statically replaced as an empty object.
131
- *
132
- * @defaultValue false
133
- */
134
- keepProcessEnv?: boolean;
135
- /**
136
- * An optional set of override options to apply to the selected build variant.
137
- *
138
- * @remarks
139
- * This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
140
- */
141
- override?: Record<string, any>;
142
- }
143
- type BuildResolvedConfig = Omit<BuildConfig, "override">;
144
- //#endregion
145
- export { BuildConfig, BuildResolvedConfig, UnpluginBuildVariant };
@@ -1,8 +0,0 @@
1
- import { MaybePromise } from "@stryke/types/base";
2
- import { ArrayValues } from "@stryke/types/array";
3
-
4
- //#region ../powerlines/src/types/commands.d.ts
5
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
6
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
7
- //#endregion
8
- export { CommandType };
@@ -1,9 +0,0 @@
1
- import "./context.mjs";
2
- import { MaybePromise } from "@stryke/types/base";
3
- import { ArrayValues } from "@stryke/types/array";
4
-
5
- //#region ../powerlines/src/types/commands.d.ts
6
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
7
- type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
8
- //#endregion
9
- export { CommandType };