@powerlines/nx 0.12.29 → 0.12.31
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.
- package/dist/src/base/base-executor.d.mts.map +1 -1
- package/dist/src/base/base-executor.d.ts.map +1 -1
- package/dist/src/base/base-executor.js +6 -5
- package/dist/src/base/base-executor.mjs +6 -5
- package/dist/src/base/base-executor.mjs.map +1 -1
- package/dist/src/base/base-executor.schema.d.mts +0 -4
- package/dist/src/base/base-executor.schema.d.mts.map +1 -1
- package/dist/src/base/base-executor.schema.d.ts +0 -4
- package/dist/src/base/base-executor.schema.d.ts.map +1 -1
- package/dist/src/base/base-executor.schema.json +4 -12
- package/dist/src/base/base-executor.untyped.js +28 -40
- package/dist/src/base/base-executor.untyped.mjs +28 -40
- package/dist/src/base/base-executor.untyped.mjs.map +1 -1
- package/dist/src/{base-executor-tBEl5AWE.js → base-executor-BNRPo3ZJ.js} +6 -5
- package/dist/src/{base-executor-iHU-fU0G.d.ts → base-executor-C6crUvpJ.d.mts} +1 -5
- package/dist/src/base-executor-C6crUvpJ.d.mts.map +1 -0
- package/dist/src/{base-executor-LiCOQirA.d.mts → base-executor-ChK_tQvQ.d.ts} +1 -5
- package/dist/src/base-executor-ChK_tQvQ.d.ts.map +1 -0
- package/dist/src/{base-executor-Chnlp8E6.mjs → base-executor-P8R4MeC_.mjs} +7 -6
- package/dist/src/base-executor-P8R4MeC_.mjs.map +1 -0
- package/dist/src/{base-executor.untyped-CWwiE6fo.mjs → base-executor.untyped-CLAuFeBO.mjs} +29 -41
- package/dist/src/base-executor.untyped-CLAuFeBO.mjs.map +1 -0
- package/dist/src/{base-executor.untyped-DwcuTgJP.js → base-executor.untyped-Ck6Mm8fr.js} +28 -40
- package/dist/src/executors/build/executor.d.mts +1 -5
- package/dist/src/executors/build/executor.d.mts.map +1 -1
- package/dist/src/executors/build/executor.d.ts +1 -5
- package/dist/src/executors/build/executor.d.ts.map +1 -1
- package/dist/src/executors/build/executor.js +1 -1
- package/dist/src/executors/build/executor.mjs +1 -1
- package/dist/src/executors/build/schema.d.ts +0 -4
- package/dist/src/executors/build/schema.json +4 -12
- package/dist/src/executors/clean/executor.d.mts +1 -5
- package/dist/src/executors/clean/executor.d.mts.map +1 -1
- package/dist/src/executors/clean/executor.d.ts +1 -5
- package/dist/src/executors/clean/executor.d.ts.map +1 -1
- package/dist/src/executors/clean/executor.js +1 -1
- package/dist/src/executors/clean/executor.mjs +1 -1
- package/dist/src/executors/clean/schema.d.ts +0 -4
- package/dist/src/executors/clean/schema.json +4 -12
- package/dist/src/executors/clean/untyped.js +1 -1
- package/dist/src/executors/clean/untyped.mjs +1 -1
- package/dist/src/executors/docs/executor.d.mts +1 -5
- package/dist/src/executors/docs/executor.d.mts.map +1 -1
- package/dist/src/executors/docs/executor.d.ts +1 -5
- package/dist/src/executors/docs/executor.d.ts.map +1 -1
- package/dist/src/executors/docs/executor.js +1 -1
- package/dist/src/executors/docs/executor.mjs +1 -1
- package/dist/src/executors/docs/schema.d.ts +0 -4
- package/dist/src/executors/docs/schema.json +4 -12
- package/dist/src/executors/lint/executor.d.mts +1 -5
- package/dist/src/executors/lint/executor.d.mts.map +1 -1
- package/dist/src/executors/lint/executor.d.ts +1 -5
- package/dist/src/executors/lint/executor.d.ts.map +1 -1
- package/dist/src/executors/lint/executor.js +1 -1
- package/dist/src/executors/lint/executor.mjs +1 -1
- package/dist/src/executors/lint/schema.d.ts +0 -4
- package/dist/src/executors/lint/schema.json +4 -12
- package/dist/src/executors/prepare/executor.d.mts +1 -5
- package/dist/src/executors/prepare/executor.d.mts.map +1 -1
- package/dist/src/executors/prepare/executor.d.ts +1 -5
- package/dist/src/executors/prepare/executor.d.ts.map +1 -1
- package/dist/src/executors/prepare/executor.js +1 -1
- package/dist/src/executors/prepare/executor.mjs +1 -1
- package/dist/src/executors/prepare/executor.mjs.map +1 -1
- package/dist/src/executors/prepare/schema.d.ts +0 -4
- package/dist/src/executors/prepare/schema.json +4 -12
- package/dist/src/executors/prepare/untyped.js +1 -1
- package/dist/src/executors/prepare/untyped.mjs +1 -1
- package/package.json +3 -3
- package/dist/src/base-executor-Chnlp8E6.mjs.map +0 -1
- package/dist/src/base-executor-LiCOQirA.d.mts.map +0 -1
- package/dist/src/base-executor-iHU-fU0G.d.ts.map +0 -1
- package/dist/src/base-executor.untyped-CWwiE6fo.mjs.map +0 -1
|
@@ -9,16 +9,14 @@
|
|
|
9
9
|
"type": "string",
|
|
10
10
|
"format": "path",
|
|
11
11
|
"description": "The path to the Powerlines configuration file. Alias for `configFile`.",
|
|
12
|
-
"id": "#config"
|
|
13
|
-
"default": "{projectRoot}/powerlines.config.ts"
|
|
12
|
+
"id": "#config"
|
|
14
13
|
},
|
|
15
14
|
"configFile": {
|
|
16
15
|
"title": "Powerlines Configuration File",
|
|
17
16
|
"type": "string",
|
|
18
17
|
"format": "path",
|
|
19
18
|
"description": "The path to the Powerlines configuration file. Alias for `config`.",
|
|
20
|
-
"id": "#configFile"
|
|
21
|
-
"default": "{projectRoot}/powerlines.config.ts"
|
|
19
|
+
"id": "#configFile"
|
|
22
20
|
},
|
|
23
21
|
"input": {
|
|
24
22
|
"title": "Input Entry File(s)",
|
|
@@ -35,8 +33,7 @@
|
|
|
35
33
|
"type": "string",
|
|
36
34
|
"format": "path",
|
|
37
35
|
"description": "The path to the tsconfig file",
|
|
38
|
-
"id": "#tsconfig"
|
|
39
|
-
"default": "{projectRoot}/tsconfig.json"
|
|
36
|
+
"id": "#tsconfig"
|
|
40
37
|
},
|
|
41
38
|
"outputPath": {
|
|
42
39
|
"title": "Output Path",
|
|
@@ -97,8 +94,7 @@
|
|
|
97
94
|
"node",
|
|
98
95
|
"browser"
|
|
99
96
|
],
|
|
100
|
-
"id": "#platform"
|
|
101
|
-
"default": "neutral"
|
|
97
|
+
"id": "#platform"
|
|
102
98
|
},
|
|
103
99
|
"external": {
|
|
104
100
|
"title": "External",
|
|
@@ -184,15 +180,11 @@
|
|
|
184
180
|
},
|
|
185
181
|
"type": "object",
|
|
186
182
|
"default": {
|
|
187
|
-
"config": "{projectRoot}/powerlines.config.ts",
|
|
188
|
-
"configFile": "{projectRoot}/powerlines.config.ts",
|
|
189
|
-
"tsconfig": "{projectRoot}/tsconfig.json",
|
|
190
183
|
"copyPath": {},
|
|
191
184
|
"format": [
|
|
192
185
|
"cjs",
|
|
193
186
|
"esm"
|
|
194
187
|
],
|
|
195
|
-
"platform": "neutral",
|
|
196
188
|
"external": [],
|
|
197
189
|
"noExternal": [],
|
|
198
190
|
"define": {},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
2
|
-
const require_base_executor_untyped = require('../../base-executor.untyped-
|
|
2
|
+
const require_base_executor_untyped = require('../../base-executor.untyped-Ck6Mm8fr.js');
|
|
3
3
|
let untyped = require("untyped");
|
|
4
4
|
|
|
5
5
|
//#region src/executors/prepare/untyped.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as base_executor_untyped_default } from "../../base-executor.untyped-
|
|
1
|
+
import { t as base_executor_untyped_default } from "../../base-executor.untyped-CLAuFeBO.mjs";
|
|
2
2
|
import { defineUntypedSchema } from "untyped";
|
|
3
3
|
|
|
4
4
|
//#region src/executors/prepare/untyped.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/nx",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Nx plugin to support Powerlines development in Nx monorepos.",
|
|
6
6
|
"repository": {
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"eslint-flat-config-utils": "^2.1.4",
|
|
197
197
|
"jsonc-eslint-parser": "^2.4.2",
|
|
198
198
|
"nx": "22.7.0",
|
|
199
|
-
"powerlines": "^0.43.
|
|
199
|
+
"powerlines": "^0.43.16",
|
|
200
200
|
"untyped": "^1.5.2"
|
|
201
201
|
},
|
|
202
202
|
"peerDependencies": { "nx": ">=22.7.0", "powerlines": ">=0.43.12" },
|
|
@@ -207,5 +207,5 @@
|
|
|
207
207
|
"publishConfig": { "access": "public" },
|
|
208
208
|
"executors": "./executors.json",
|
|
209
209
|
"generators": "./generators.json",
|
|
210
|
-
"gitHead": "
|
|
210
|
+
"gitHead": "182725c5b044a748506a1b46fd9cf72627b600b4"
|
|
211
211
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-Chnlp8E6.mjs","names":[],"sources":["../../src/base/base-executor.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type {\n InlineConfig,\n PowerlinesCommand,\n PowerlinesEngine\n} from \"powerlines\";\nimport { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type PowerlinesExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\n};\n\n/**\n * A utility function to create a Powerlines executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Powerlines executors by providing a consistent interface and error handling.\n *\n * @param command - The command that the executor will handle (e.g., \"new\", \"prepare\", \"build\", etc.).\n * @param executorFn - The function that will be executed when the command is run.\n * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: PowerlinesExecutorContext<TCommand, TExecutorSchema>,\n api: PowerlinesEngine\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Powerlines ${command} command executor`,\n async (\n options: TExecutorSchema,\n context: ExecutorContext,\n workspaceConfig: StormWorkspaceConfig\n ): Promise<BaseExecutorResult | null | undefined> => {\n if (!context.projectName) {\n throw new Error(\n \"The executor requires `projectName` on the context object.\"\n );\n }\n\n if (\n !context.projectName ||\n !context.projectsConfigurations?.projects ||\n !context.projectsConfigurations.projects[context.projectName] ||\n !context.projectsConfigurations.projects[context.projectName]?.root\n ) {\n throw new Error(\n \"The executor requires `projectsConfigurations` on the context object.\"\n );\n }\n\n const projectConfig =\n context.projectsConfigurations.projects[context.projectName]!;\n\n const jiti = createJiti(context.root, { cache: false });\n const { createEngine } = await jiti.import<{\n createEngine: typeof import(\"powerlines\").createEngine;\n }>(jiti.esmResolve(\"powerlines\"));\n\n const api = await createEngine(\n defu(\n {\n cwd: workspaceConfig.workspaceRoot,\n root: projectConfig.root,\n configFile: options.configFile ?? options.config\n },\n options,\n {\n name: context.projectName\n }\n )\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n projectType: projectConfig.projectType,\n output: {\n path: options.outputPath\n ? replacePath(\n replacePath(\n options.outputPath,\n workspaceConfig.workspaceRoot\n ),\n projectConfig.root\n )\n : undefined,\n copy: {\n path: options.copyPath\n ? replacePath(\n replacePath(\n options.copyPath,\n workspaceConfig.workspaceRoot\n ),\n projectConfig.root\n )\n : undefined,\n assets: options.assets\n },\n format: options.format,\n sourceMap: options.sourceMap\n },\n resolve: {\n external: options.external,\n noExternal: options.noExternal,\n skipNodeModulesBundle: options.skipNodeModulesBundle\n }\n } as InlineConfig,\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Powerlines ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAuDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,cAAc,QAAQ,oBACtB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAElD,MAAM,OAAO,WAAW,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC;EACvD,MAAM,EAAE,iBAAiB,MAAM,KAAK,OAEjC,KAAK,WAAW,aAAa,CAAC;EAEjC,MAAM,MAAM,MAAM,aAChB,KACE;GACE,KAAK,gBAAgB;GACrB,MAAM,cAAc;GACpB,YAAY,QAAQ,cAAc,QAAQ;GAC3C,EACD,SACA,EACE,MAAM,QAAQ,aACf,CACF,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,aAAa,cAAc;KAC3B,QAAQ;MACN,MAAM,QAAQ,aACV,YACE,YACE,QAAQ,YACR,gBAAgB,cACjB,EACD,cAAc,KACf,GACD;MACJ,MAAM;OACJ,MAAM,QAAQ,WACV,YACE,YACE,QAAQ,UACR,gBAAgB,cACjB,EACD,cAAc,KACf,GACD;OACJ,QAAQ,QAAQ;OACjB;MACD,QAAQ,QAAQ;MAChB,WAAW,QAAQ;MACpB;KACD,SAAS;MACP,UAAU,QAAQ;MAClB,YAAY,QAAQ;MACpB,uBAAuB,QAAQ;MAChC;KACF;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,oDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,UAAO;KAEV;EACF,CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-LiCOQirA.d.mts","names":["BaseExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;ACZD;;;;;;;EDsBCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;KCxHxE,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-iHU-fU0G.d.ts","names":["BaseExecutorSchema","Array","Record","config","configFile","input","tsconfig","outputPath","copyPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","assets","output","glob","ignore","dot"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"mappings":";;;;;;;;UAIiBA,kBAAAA;;AAAjB;;;;;;;;EAUCG,MAAAA;EA4Ic;;;;;;;;;EAjIdC,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQJ,KAAAA;;;;;;;;;;EAWRK,QAAAA;;ACZD;;;;;;;EDsBCC,UAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;EASAC,MAAAA,GAAST,KAAAA;;;;;;;;;;EAWTU,QAAAA;;;;;;;EAQAC,QAAAA,GAAWX,KAAAA;;;;;;;EAQXY,UAAAA,GAAaZ,KAAAA;;;;;;;EAQba,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASf,MAAAA;;;;;;;EAQTgB,MAAAA,GAASjB,KAAAA;IAAQI,KAAAA;IAAgBc,MAAAA;IAAiBC,IAAAA;IAAcC,MAAAA;IAAmBC,GAAAA;EAAAA;AAAAA;;;KCxHxE,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor.untyped-CWwiE6fo.mjs","names":[],"sources":["../../src/base/base-executor.untyped.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { defineUntypedSchema } from \"untyped\";\n\nexport default defineUntypedSchema({\n $schema: {\n id: \"BaseExecutorSchema\",\n title: \"Base Executor\",\n description:\n \"A shared/base schema type definition for Powerlines executors\",\n required: []\n },\n config: {\n $schema: {\n title: \"Powerlines Configuration File\",\n type: \"string\",\n format: \"path\",\n description:\n \"The path to the Powerlines configuration file. Alias for `configFile`.\"\n },\n $default: \"{projectRoot}/powerlines.config.ts\"\n },\n configFile: {\n $schema: {\n title: \"Powerlines Configuration File\",\n type: \"string\",\n format: \"path\",\n description:\n \"The path to the Powerlines configuration file. Alias for `config`.\"\n },\n $default: \"{projectRoot}/powerlines.config.ts\"\n },\n input: {\n $schema: {\n title: \"Input Entry File(s)\",\n format: \"path\",\n type: \"array\",\n description: \"The entry file(s) that serve as the input for the project\",\n items: { type: \"string\" }\n }\n },\n tsconfig: {\n $schema: {\n title: \"TSConfig Path\",\n type: \"string\",\n format: \"path\",\n description: \"The path to the tsconfig file\"\n },\n $default: \"{projectRoot}/tsconfig.json\"\n },\n outputPath: {\n $schema: {\n title: \"Output Path\",\n type: \"string\",\n format: \"path\",\n description: \"The path to the output directory for the build artifacts\"\n }\n },\n copyPath: {\n $schema: {\n title: \"Copy Path\",\n description: \"A directory path to copy the build artifacts into\",\n oneOf: [\n { type: \"string\", format: \"path\" },\n { type: \"boolean\", enum: [false] }\n ]\n }\n },\n sourceMap: {\n $schema: {\n title: \"Sourcemap\",\n type: \"boolean\",\n description: \"Generate a sourcemap\"\n }\n },\n format: {\n $schema: {\n title: \"Format\",\n type: \"array\",\n description: \"The format to build\",\n items: {\n type: \"string\",\n enum: [\"cjs\", \"esm\", \"iife\"]\n }\n },\n $resolve: (val: string[] = [\"cjs\", \"esm\"]) => ([] as string[]).concat(val)\n },\n platform: {\n $schema: {\n title: \"Platform\",\n type: \"string\",\n description: \"The platform to build\",\n enum: [\"neutral\", \"node\", \"browser\"]\n },\n $default: \"neutral\"\n },\n external: {\n $schema: {\n title: \"External\",\n type: \"array\",\n description: \"The external dependencies\"\n },\n $resolve: (val: string[] = []) => ([] as string[]).concat(val)\n },\n noExternal: {\n $schema: {\n title: \"No External\",\n type: \"array\",\n description: \"The dependencies that should not be treated as external\"\n },\n $resolve: (val: string[] = []) => ([] as string[]).concat(val)\n },\n skipNodeModulesBundle: {\n $schema: {\n title: \"Skip Node Modules Bundle\",\n type: \"boolean\",\n description:\n \"Skip bundling node_modules during the build process (if required)\"\n }\n },\n mode: {\n $schema: {\n title: \"Mode\",\n type: \"string\",\n description: \"The build mode\",\n enum: [\"development\", \"test\", \"production\"]\n }\n },\n logLevel: {\n $schema: {\n title: \"Log Level\",\n type: \"string\",\n description: \"The log level to use for the build process\",\n enum: [\n \"fatal\",\n \"error\",\n \"warn\",\n \"success\",\n \"info\",\n \"debug\",\n \"trace\",\n \"silent\"\n ]\n }\n },\n define: {\n $schema: {\n title: \"Define\",\n type: \"object\",\n tsType: \"Record<string, string>\",\n description: \"The `define` values\"\n },\n $resolve: (val: Record<string, string> = {}) => val,\n $default: {}\n },\n assets: {\n $schema: {\n title: \"Assets\",\n type: \"any\",\n tsType:\n \"Array<{ input?: string; output?: string; glob: string; ignore?: string[]; dot?: boolean; }>\",\n description: \"The `assets` values\"\n }\n }\n});\n"],"mappings":";;;AAoBA,oCAAe,oBAAoB;CACjC,SAAS;EACP,IAAI;EACJ,OAAO;EACP,aACE;EACF,UAAU,EAAE;EACb;CACD,QAAQ;EACN,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aACE;GACH;EACD,UAAU;EACX;CACD,YAAY;EACV,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aACE;GACH;EACD,UAAU;EACX;CACD,OAAO,EACL,SAAS;EACP,OAAO;EACP,QAAQ;EACR,MAAM;EACN,aAAa;EACb,OAAO,EAAE,MAAM,UAAU;EAC1B,EACF;CACD,UAAU;EACR,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aAAa;GACd;EACD,UAAU;EACX;CACD,YAAY,EACV,SAAS;EACP,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACd,EACF;CACD,UAAU,EACR,SAAS;EACP,OAAO;EACP,aAAa;EACb,OAAO,CACL;GAAE,MAAM;GAAU,QAAQ;GAAQ,EAClC;GAAE,MAAM;GAAW,MAAM,CAAC,MAAM;GAAE,CACnC;EACF,EACF;CACD,WAAW,EACT,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACd,EACF;CACD,QAAQ;EACN,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACb,OAAO;IACL,MAAM;IACN,MAAM;KAAC;KAAO;KAAO;KAAO;IAC7B;GACF;EACD,WAAW,MAAgB,CAAC,OAAO,MAAM,KAAM,EAAE,CAAc,OAAO,IAAI;EAC3E;CACD,UAAU;EACR,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACb,MAAM;IAAC;IAAW;IAAQ;IAAU;GACrC;EACD,UAAU;EACX;CACD,UAAU;EACR,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACd;EACD,WAAW,MAAgB,EAAE,KAAM,EAAE,CAAc,OAAO,IAAI;EAC/D;CACD,YAAY;EACV,SAAS;GACP,OAAO;GACP,MAAM;GACN,aAAa;GACd;EACD,WAAW,MAAgB,EAAE,KAAM,EAAE,CAAc,OAAO,IAAI;EAC/D;CACD,uBAAuB,EACrB,SAAS;EACP,OAAO;EACP,MAAM;EACN,aACE;EACH,EACF;CACD,MAAM,EACJ,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACb,MAAM;GAAC;GAAe;GAAQ;GAAa;EAC5C,EACF;CACD,UAAU,EACR,SAAS;EACP,OAAO;EACP,MAAM;EACN,aAAa;EACb,MAAM;GACJ;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACD;EACF,EACF;CACD,QAAQ;EACN,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aAAa;GACd;EACD,WAAW,MAA8B,EAAE,KAAK;EAChD,UAAU,EAAE;EACb;CACD,QAAQ,EACN,SAAS;EACP,OAAO;EACP,MAAM;EACN,QACE;EACF,aAAa;EACd,EACF;CACF,CAAC"}
|