@powerlines/nx 0.13.78 → 0.13.79
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.js +5 -1
- package/dist/src/base/base-executor.mjs +5 -1
- package/dist/src/base/base-executor.mjs.map +1 -1
- package/dist/src/base/base-executor.untyped.d.mts +1 -3
- package/dist/src/base/base-executor.untyped.d.ts +1 -3
- package/dist/src/base/base-executor.untyped.mjs.map +1 -1
- package/dist/src/{base-executor-DlhT5y9h.mjs → base-executor-BdEt-X2U.mjs} +6 -2
- package/dist/src/base-executor-BdEt-X2U.mjs.map +1 -0
- package/dist/src/{base-executor-FxB6c-wO.js → base-executor-Be_4Hkpu.js} +5 -1
- package/dist/src/base-executor.untyped-BD9-7XGx.mjs.map +1 -1
- package/dist/src/executors/build/executor.d.mts.map +1 -1
- 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/executor.mjs.map +1 -1
- package/dist/src/executors/build/untyped.d.mts +1 -3
- package/dist/src/executors/build/untyped.d.ts +1 -3
- package/dist/src/executors/build/untyped.mjs.map +1 -1
- package/dist/src/executors/clean/executor.d.mts.map +1 -1
- 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/executor.mjs.map +1 -1
- package/dist/src/executors/clean/untyped.d.mts +1 -3
- package/dist/src/executors/clean/untyped.d.ts +1 -3
- package/dist/src/executors/clean/untyped.mjs.map +1 -1
- package/dist/src/executors/docs/executor.d.mts.map +1 -1
- 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/executor.mjs.map +1 -1
- package/dist/src/executors/docs/untyped.d.mts +1 -3
- package/dist/src/executors/docs/untyped.d.ts +1 -3
- package/dist/src/executors/docs/untyped.mjs.map +1 -1
- package/dist/src/executors/lint/executor.d.mts.map +1 -1
- 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/executor.mjs.map +1 -1
- package/dist/src/executors/lint/untyped.d.mts +1 -3
- package/dist/src/executors/lint/untyped.d.ts +1 -3
- package/dist/src/executors/lint/untyped.mjs.map +1 -1
- package/dist/src/executors/prepare/executor.d.mts.map +1 -1
- 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/untyped.d.mts +1 -3
- package/dist/src/executors/prepare/untyped.d.ts +1 -3
- package/dist/src/executors/prepare/untyped.mjs.map +1 -1
- package/dist/src/generators/sync/generator.mjs.map +1 -1
- package/dist/src/generators/sync/untyped.d.mts +1 -3
- package/dist/src/generators/sync/untyped.d.ts +1 -3
- package/dist/src/generators/sync/untyped.mjs.map +1 -1
- package/dist/src/helpers/constants.mjs.map +1 -1
- package/dist/src/helpers/plugin-utilities.d.mts.map +1 -1
- package/dist/src/helpers/plugin-utilities.d.ts.map +1 -1
- package/dist/src/helpers/plugin-utilities.mjs.map +1 -1
- package/dist/src/plugin/index.d.mts +1 -3
- package/dist/src/plugin/index.d.mts.map +1 -1
- package/dist/src/plugin/index.d.ts +1 -3
- package/dist/src/plugin/index.d.ts.map +1 -1
- package/dist/src/plugin/index.mjs.map +1 -1
- package/dist/src/types/plugin.d.mts.map +1 -1
- package/dist/src/types/plugin.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/src/base-executor-DlhT5y9h.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../../src/types/plugin.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;IAOA,SAAA;;;;IAKA,MAAA;;;;IAWA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;;;;;;EAWN,aAAA;;;;;;EAOA,KAAA;;;;;;;;;EAUA,KAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","names":[],"sources":["../../../src/types/plugin.ts"],"mappings":";UAkBiB,eAAA;EAAA;;;EAIf,KAAA;IAAA;;;;;IAQM,UAAA;IAwCA;;;;;IAjCA,KAAA;IA2EA;;;;;IApEA,oBAAA;IAmHA;;;;;IA5GA,SAAA;IA0JN;;;IArJM,MAAA;IAkLA;;;IApKA,OAAA;IAoMN;;;;;IA7LM,QAAA;EAAA;EAoPA;;;EA9ON,OAAA;IA0QM;;;;;IAlQA,UAAA;IAkTN
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","names":[],"sources":["../../../src/types/plugin.ts"],"mappings":";UAkBiB,eAAA;EAAA;;;EAIf,KAAA;IAAA;;;;;IAQM,UAAA;IAwCA;;;;;IAjCA,KAAA;IA2EA;;;;;IApEA,oBAAA;IAmHA;;;;;IA5GA,SAAA;IA0JN;;;IArJM,MAAA;IAkLA;;;IApKA,OAAA;IAoMN;;;;;IA7LM,QAAA;EAAA;EAoPA;;;EA9ON,OAAA;IA0QM;;;;;IAlQA,UAAA;IAkTN;;;AAUK;;IArTC,KAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,IAAA;;;;;;IAQM,UAAA;;;;;;IAOA,KAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,KAAA;;;;;;IAQM,UAAA;;;;;;IAOA,KAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,IAAA;;;;;;IAQM,UAAA;;;;;;IAOA,KAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAcA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;EAMN,MAAA;;;;;;IAQM,UAAA;;;;;;IAOA,KAAA;;;;;;IAOA,oBAAA;;;;;;IAOA,SAAA;;;;IAKA,MAAA;;;;IAWA,OAAA;;;;;;IAOA,QAAA;EAAA;;;;;;;;;EAWN,aAAA;;;;;;EAOA,KAAA;;;;;;;;;EAUA,KAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/nx",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.79",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Nx plugin to support Powerlines development in Nx monorepos.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "github",
|
|
8
8
|
"url": "https://github.com/storm-software/powerlines.git",
|
|
9
|
-
"directory": "packages/
|
|
9
|
+
"directory": "packages/devkit/nx"
|
|
10
10
|
},
|
|
11
11
|
"type": "commonjs",
|
|
12
12
|
"exports": {
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"@stryke/path": "^0.29.3",
|
|
186
186
|
"@stryke/string-format": "^0.17.18",
|
|
187
187
|
"@stryke/type-checks": "^0.6.9",
|
|
188
|
-
"powerlines": "^0.47.
|
|
188
|
+
"powerlines": "^0.47.41",
|
|
189
189
|
"defu": "^6.1.7",
|
|
190
190
|
"jiti": "^2.7.0"
|
|
191
191
|
},
|
|
@@ -205,5 +205,5 @@
|
|
|
205
205
|
"publishConfig": { "access": "public" },
|
|
206
206
|
"executors": "./executors.json",
|
|
207
207
|
"generators": "./generators.json",
|
|
208
|
-
"gitHead": "
|
|
208
|
+
"gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
|
|
209
209
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-executor-DlhT5y9h.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 { omit } from \"@stryke/helpers/omit\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { isSetArray } from \"@stryke/type-checks/is-set-array\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type {\n InlineConfig,\n Mode,\n OutputConfig,\n PowerlinesCommand\n} from \"powerlines\";\nimport type { PowerlinesEngine } from \"powerlines/engine\";\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 { createPowerlines } = await jiti.import<{\n createPowerlines: typeof import(\"powerlines/engine\").createPowerlines;\n }>(jiti.esmResolve(\"powerlines/engine\"));\n\n const api = await createPowerlines({\n cwd: context.root,\n root: projectConfig.root\n });\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n command,\n inlineConfig: defu(\n {\n name: context.projectName,\n command,\n root: projectConfig.root,\n configFile: options.configFile || options.config,\n projectType: projectConfig.projectType,\n mode: options.mode as Mode,\n output: {\n path: options.outputPath,\n copy:\n options.copyPath === false\n ? false\n : {\n path: options.copyPath,\n assets: options.assets\n },\n minify: options.minify,\n sourceMap: options.sourceMap\n } as OutputConfig,\n resolve:\n isSetArray(options.external) ||\n isSetArray(options.noExternal) ||\n isSet(options.skipNodeModulesBundle)\n ? {\n external: isSetArray(options.external)\n ? options.external\n : undefined,\n noExternal: isSetArray(options.noExternal)\n ? options.noExternal\n : undefined,\n skipNodeModulesBundle: isSet(\n options.skipNodeModulesBundle\n )\n ? options.skipNodeModulesBundle\n : undefined\n }\n : undefined,\n define: isSetObject(options.define)\n ? options.define\n : undefined,\n assets: isSetObject(options.assets)\n ? options.assets\n : undefined\n },\n omit(options, [\n \"config\",\n \"configFile\",\n \"outputPath\",\n \"copyPath\",\n \"sourceMap\",\n \"minify\",\n \"format\",\n \"external\",\n \"noExternal\",\n \"skipNodeModulesBundle\",\n \"mode\",\n \"define\",\n \"assets\"\n ])\n ) as InlineConfig\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 }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n options.copyPath ??= \"dist/{projectRoot}\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4DA,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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