@powerlines/nx 0.11.231 → 0.11.232
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.cjs +2 -1
- package/dist/src/base/base-executor.d.cts +2 -2
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.mjs +2 -1
- package/dist/src/base/base-executor.schema.d.cts +1 -1
- package/dist/src/base/base-executor.schema.d.mts +1 -1
- package/dist/src/base/base-executor.untyped.cjs +1 -1
- package/dist/src/base/base-executor.untyped.d.cts +2 -6
- package/dist/src/base/base-executor.untyped.d.mts +2 -7
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.cjs +6 -0
- package/dist/src/base/index.d.cts +5 -0
- package/dist/src/base/index.d.mts +5 -0
- package/dist/src/base/index.mjs +6 -0
- package/dist/src/base-executor-BwNEuJr4.d.mts +2152 -0
- package/dist/src/base-executor-BwNEuJr4.d.mts.map +1 -0
- package/dist/src/base-executor-BxwoTM0e.d.cts +2150 -0
- package/dist/src/base-executor-BxwoTM0e.d.cts.map +1 -0
- package/dist/src/base-executor-D0PC7G0V.cjs +4646 -0
- package/dist/src/base-executor-ZxlpQ-df.mjs +4628 -0
- package/dist/src/base-executor-ZxlpQ-df.mjs.map +1 -0
- package/dist/{base-executor.schema-LJ14f-QU.d.mts → src/base-executor.schema-CZPuauLj.d.cts} +1 -1
- package/dist/src/base-executor.schema-CZPuauLj.d.cts.map +1 -0
- package/dist/{base-executor.schema-CH9f7UZz.d.cts → src/base-executor.schema-DiDI-Jcs.d.mts} +1 -1
- package/dist/src/base-executor.schema-DiDI-Jcs.d.mts.map +1 -0
- package/dist/src/base-executor.untyped-5iZFoBFu.d.mts +7 -0
- package/dist/src/base-executor.untyped-5iZFoBFu.d.mts.map +1 -0
- package/dist/{base-executor.untyped-Bet42T8_.mjs → src/base-executor.untyped-BKF-oUZS.mjs} +1 -1
- package/dist/src/base-executor.untyped-BKF-oUZS.mjs.map +1 -0
- package/dist/{base-executor.untyped-DUgXmZji.cjs → src/base-executor.untyped-CDbDTHgS.cjs} +1 -1
- package/dist/src/base-executor.untyped-DsIwfUqm.d.cts +7 -0
- package/dist/src/base-executor.untyped-DsIwfUqm.d.cts.map +1 -0
- package/dist/src/config-Dkb72RJI.cjs +239 -0
- package/dist/src/config-LoR-NIJg.mjs +147 -0
- package/dist/src/config-LoR-NIJg.mjs.map +1 -0
- package/dist/src/constants-BvU9n9qR.d.mts +8 -0
- package/dist/src/constants-BvU9n9qR.d.mts.map +1 -0
- package/dist/src/constants-CPcygc7m.d.cts +8 -0
- package/dist/src/constants-CPcygc7m.d.cts.map +1 -0
- package/dist/{constants-DPeeG_si.mjs → src/constants-DzvoYj5w.mjs} +1 -1
- package/dist/src/constants-DzvoYj5w.mjs.map +1 -0
- package/dist/src/executors/build/executor.cjs +19 -4
- package/dist/src/executors/build/executor.d.cts +165 -4
- package/dist/src/executors/build/executor.d.cts.map +1 -0
- package/dist/src/executors/build/executor.d.mts +165 -4
- package/dist/src/executors/build/executor.d.mts.map +1 -0
- package/dist/src/executors/build/executor.mjs +18 -3
- package/dist/src/executors/build/executor.mjs.map +1 -0
- package/dist/src/executors/build/untyped.cjs +3 -3
- package/dist/src/executors/build/untyped.d.cts +2 -2
- package/dist/src/executors/build/untyped.d.mts +2 -2
- package/dist/src/executors/build/untyped.mjs +2 -2
- package/dist/src/executors/clean/executor.cjs +13 -4
- package/dist/src/executors/clean/executor.d.cts +139 -4
- package/dist/src/executors/clean/executor.d.cts.map +1 -0
- package/dist/src/executors/clean/executor.d.mts +139 -4
- package/dist/src/executors/clean/executor.d.mts.map +1 -0
- package/dist/src/executors/clean/executor.mjs +13 -3
- package/dist/{executor-DriX4F9a.mjs.map → src/executors/clean/executor.mjs.map} +1 -1
- package/dist/src/executors/clean/untyped.cjs +2 -2
- package/dist/src/executors/clean/untyped.d.cts +2 -2
- package/dist/src/executors/clean/untyped.d.mts +2 -2
- package/dist/src/executors/clean/untyped.mjs +1 -1
- package/dist/src/executors/docs/executor.cjs +13 -4
- package/dist/src/executors/docs/executor.d.cts +155 -4
- package/dist/src/executors/docs/executor.d.cts.map +1 -0
- package/dist/src/executors/docs/executor.d.mts +155 -4
- package/dist/src/executors/docs/executor.d.mts.map +1 -0
- package/dist/src/executors/docs/executor.mjs +13 -3
- package/dist/{executor-CR4F9h0Q.mjs.map → src/executors/docs/executor.mjs.map} +1 -1
- package/dist/src/executors/docs/untyped.cjs +3 -3
- package/dist/src/executors/docs/untyped.d.cts +2 -2
- package/dist/src/executors/docs/untyped.d.mts +2 -2
- package/dist/src/executors/docs/untyped.mjs +2 -2
- package/dist/src/executors/lint/executor.cjs +13 -4
- package/dist/src/executors/lint/executor.d.cts +155 -4
- package/dist/src/executors/lint/executor.d.cts.map +1 -0
- package/dist/src/executors/lint/executor.d.mts +155 -4
- package/dist/src/executors/lint/executor.d.mts.map +1 -0
- package/dist/src/executors/lint/executor.mjs +13 -3
- package/dist/{executor-dakLe5jY.mjs.map → src/executors/lint/executor.mjs.map} +1 -1
- package/dist/src/executors/lint/untyped.cjs +3 -3
- package/dist/src/executors/lint/untyped.d.cts +2 -2
- package/dist/src/executors/lint/untyped.d.mts +2 -2
- package/dist/src/executors/lint/untyped.mjs +2 -2
- package/dist/src/executors/prepare/executor.cjs +19 -4
- package/dist/src/executors/prepare/executor.d.cts +155 -4
- package/dist/src/executors/prepare/executor.d.cts.map +1 -0
- package/dist/src/executors/prepare/executor.d.mts +155 -4
- package/dist/src/executors/prepare/executor.d.mts.map +1 -0
- package/dist/src/executors/prepare/executor.mjs +18 -3
- package/dist/src/executors/prepare/executor.mjs.map +1 -0
- package/dist/src/executors/prepare/untyped.cjs +2 -2
- package/dist/src/executors/prepare/untyped.d.cts +2 -2
- package/dist/src/executors/prepare/untyped.d.mts +2 -2
- package/dist/src/executors/prepare/untyped.mjs +2 -2
- package/dist/src/generators/sync/generator.cjs +11 -3
- package/dist/src/generators/sync/generator.d.cts +8 -2
- package/dist/src/generators/sync/generator.d.cts.map +1 -0
- package/dist/src/generators/sync/generator.d.mts +8 -2
- package/dist/src/generators/sync/generator.d.mts.map +1 -0
- package/dist/src/generators/sync/generator.mjs +10 -2
- package/dist/{generator-DeiwVUqC.mjs.map → src/generators/sync/generator.mjs.map} +1 -1
- package/dist/src/generators/sync/untyped.cjs +1 -1
- package/dist/src/generators/sync/untyped.d.cts +2 -2
- package/dist/src/generators/sync/untyped.d.mts +2 -2
- package/dist/src/helpers/constants.cjs +1 -1
- package/dist/src/helpers/constants.d.cts +2 -8
- package/dist/src/helpers/constants.d.mts +2 -8
- package/dist/src/helpers/constants.mjs +1 -1
- package/dist/src/helpers/index.cjs +9 -0
- package/dist/src/helpers/index.d.cts +5 -0
- package/dist/src/helpers/index.d.mts +5 -0
- package/dist/src/helpers/index.mjs +6 -0
- package/dist/src/helpers/plugin-utilities.cjs +3 -2
- package/dist/src/helpers/plugin-utilities.d.cts +3 -58
- package/dist/src/helpers/plugin-utilities.d.mts +3 -58
- package/dist/src/helpers/plugin-utilities.mjs +3 -2
- package/dist/src/index-DOvrmvAP.d.cts +1 -0
- package/dist/src/index-Dh6J9gb5.d.cts +1 -0
- package/dist/src/index-QAtBiMxG.d.cts +1 -0
- package/dist/src/index-c55Utzva.d.mts +1 -0
- package/dist/src/index.cjs +15 -0
- package/dist/src/index.d.cts +10 -0
- package/dist/src/index.d.mts +10 -0
- package/dist/src/index.mjs +11 -0
- package/dist/src/plugin/index.cjs +8 -4
- package/dist/src/plugin/index.d.cts +8 -3
- package/dist/src/plugin/index.d.cts.map +1 -0
- package/dist/src/plugin/index.d.mts +8 -3
- package/dist/src/plugin/index.d.mts.map +1 -0
- package/dist/src/plugin/index.mjs +9 -4
- package/dist/src/plugin/index.mjs.map +1 -0
- package/dist/src/plugin-BSBH78mm.cjs +0 -0
- package/dist/{plugin-CODFOru1.d.cts → src/plugin-Bpm6rlvQ.d.cts} +1 -1
- package/dist/src/plugin-Bpm6rlvQ.d.cts.map +1 -0
- package/dist/{plugin-DpjoI0QS.d.mts → src/plugin-DK05gCB5.d.mts} +1 -1
- package/dist/src/plugin-DK05gCB5.d.mts.map +1 -0
- package/dist/src/plugin-DRjpXVSI.mjs +1 -0
- package/dist/{plugin-utilities-CuJ0wEZS.cjs → src/plugin-utilities-B6thBT59.cjs} +16 -135
- package/dist/src/plugin-utilities-CYqug_T4.d.mts +58 -0
- package/dist/src/plugin-utilities-CYqug_T4.d.mts.map +1 -0
- package/dist/{plugin-utilities-DpjLrWCz.mjs → src/plugin-utilities-DGw6LPZ0.mjs} +15 -133
- package/dist/src/plugin-utilities-DGw6LPZ0.mjs.map +1 -0
- package/dist/src/plugin-utilities-rlfzc3UW.d.cts +58 -0
- package/dist/src/plugin-utilities-rlfzc3UW.d.cts.map +1 -0
- package/dist/src/types/index.cjs +2 -0
- package/dist/src/types/index.d.cts +3 -0
- package/dist/src/types/index.d.mts +3 -0
- package/dist/src/types/index.mjs +4 -0
- package/dist/src/types/plugin.cjs +1 -0
- package/dist/src/types/plugin.d.cts +1 -1
- package/dist/src/types/plugin.d.mts +1 -1
- package/dist/src/types/plugin.mjs +2 -0
- package/dist/src/types-CKPddlfS.cjs +0 -0
- package/dist/src/types-SpBueMV7.mjs +1 -0
- package/dist/{untyped-DKPJSDgJ.cjs → src/untyped-BgrXugMs.cjs} +2 -2
- package/dist/{untyped-BIEzjl_J.mjs → src/untyped-DCpTmHDS.mjs} +2 -2
- package/dist/src/untyped-DCpTmHDS.mjs.map +1 -0
- package/package.json +18 -46
- package/dist/base-executor-BKuqWAnc.d.mts +0 -28
- package/dist/base-executor-BKuqWAnc.d.mts.map +0 -1
- package/dist/base-executor-CL9md5FK.d.cts +0 -28
- package/dist/base-executor-CL9md5FK.d.cts.map +0 -1
- package/dist/base-executor-DIVmWt0_.mjs +0 -76
- package/dist/base-executor-DIVmWt0_.mjs.map +0 -1
- package/dist/base-executor-hfeykVFL.cjs +0 -83
- package/dist/base-executor.schema-CH9f7UZz.d.cts.map +0 -1
- package/dist/base-executor.schema-LJ14f-QU.d.mts.map +0 -1
- package/dist/base-executor.untyped-Bet42T8_.mjs.map +0 -1
- package/dist/chunk-CbDLau6x.cjs +0 -34
- package/dist/constants-DPeeG_si.mjs.map +0 -1
- package/dist/executor-9aTY5L1O.d.mts +0 -155
- package/dist/executor-9aTY5L1O.d.mts.map +0 -1
- package/dist/executor-BA-Xvw_2.cjs +0 -23
- package/dist/executor-BDu-MfKS.d.cts +0 -155
- package/dist/executor-BDu-MfKS.d.cts.map +0 -1
- package/dist/executor-BaJuosQ2.d.cts +0 -139
- package/dist/executor-BaJuosQ2.d.cts.map +0 -1
- package/dist/executor-BerELzzO.d.cts +0 -165
- package/dist/executor-BerELzzO.d.cts.map +0 -1
- package/dist/executor-C12a2R2m.d.mts +0 -165
- package/dist/executor-C12a2R2m.d.mts.map +0 -1
- package/dist/executor-CQoHBvIx.d.mts +0 -155
- package/dist/executor-CQoHBvIx.d.mts.map +0 -1
- package/dist/executor-CR4F9h0Q.mjs +0 -13
- package/dist/executor-CmOJDW7i.cjs +0 -30
- package/dist/executor-CsYeTG7f.d.mts +0 -155
- package/dist/executor-CsYeTG7f.d.mts.map +0 -1
- package/dist/executor-DXs-DQDq.cjs +0 -23
- package/dist/executor-DY3Q5btA.mjs +0 -18
- package/dist/executor-DY3Q5btA.mjs.map +0 -1
- package/dist/executor-DaM4shEF.d.mts +0 -139
- package/dist/executor-DaM4shEF.d.mts.map +0 -1
- package/dist/executor-DriX4F9a.mjs +0 -13
- package/dist/executor-DupYdy7P.cjs +0 -23
- package/dist/executor-_6Wimayo.d.cts +0 -155
- package/dist/executor-_6Wimayo.d.cts.map +0 -1
- package/dist/executor-dakLe5jY.mjs +0 -13
- package/dist/executor-gauQV_Qs.mjs +0 -18
- package/dist/executor-gauQV_Qs.mjs.map +0 -1
- package/dist/executor-q94V36zQ.d.cts +0 -155
- package/dist/executor-q94V36zQ.d.cts.map +0 -1
- package/dist/executor-tEMakUYi.cjs +0 -30
- package/dist/executors.cjs +0 -13
- package/dist/executors.d.cts +0 -9
- package/dist/executors.d.mts +0 -9
- package/dist/executors.mjs +0 -9
- package/dist/generator-DeiwVUqC.mjs +0 -11
- package/dist/generator-Dv37nXlF.d.cts +0 -8
- package/dist/generator-Dv37nXlF.d.cts.map +0 -1
- package/dist/generator-Uu2ErkQj.cjs +0 -22
- package/dist/generator-aA0eb35E.d.mts +0 -8
- package/dist/generator-aA0eb35E.d.mts.map +0 -1
- package/dist/generators-B8_tB0mD.d.cts +0 -17
- package/dist/generators-B8_tB0mD.d.cts.map +0 -1
- package/dist/generators-DymCAfYw.d.mts +0 -17
- package/dist/generators-DymCAfYw.d.mts.map +0 -1
- package/dist/generators.cjs +0 -5
- package/dist/generators.d.cts +0 -3
- package/dist/generators.d.mts +0 -3
- package/dist/generators.mjs +0 -4
- package/dist/index-BAMQksFF.d.mts +0 -8
- package/dist/index-BAMQksFF.d.mts.map +0 -1
- package/dist/index-C5yJ9lGj.d.cts +0 -8
- package/dist/index-C5yJ9lGj.d.cts.map +0 -1
- package/dist/index.cjs +0 -21
- package/dist/index.d.cts +0 -13
- package/dist/index.d.mts +0 -13
- package/dist/index.mjs +0 -14
- package/dist/plugin-B-zUI527.cjs +0 -12
- package/dist/plugin-BheScrsg.mjs +0 -8
- package/dist/plugin-BheScrsg.mjs.map +0 -1
- package/dist/plugin-CODFOru1.d.cts.map +0 -1
- package/dist/plugin-DpjoI0QS.d.mts.map +0 -1
- package/dist/plugin-utilities-DpjLrWCz.mjs.map +0 -1
- package/dist/src/base/base-executor.untyped.d.cts.map +0 -1
- package/dist/src/base/base-executor.untyped.d.mts.map +0 -1
- package/dist/src/helpers/constants.d.cts.map +0 -1
- package/dist/src/helpers/constants.d.mts.map +0 -1
- package/dist/src/helpers/plugin-utilities.d.cts.map +0 -1
- package/dist/src/helpers/plugin-utilities.d.mts.map +0 -1
- package/dist/untyped-BIEzjl_J.mjs.map +0 -1
- /package/dist/{executors-D7478W2S.cjs → src/base-BHJKI_1R.cjs} +0 -0
- /package/dist/{executors-C15iG1sF.mjs → src/base-BRSa-clf.mjs} +0 -0
- /package/dist/{constants-BHT2TeEj.cjs → src/constants-Dpoi7x5C.cjs} +0 -0
- /package/dist/{generators-q39_jUCw.cjs → src/helpers-Bx2yBrpn.cjs} +0 -0
- /package/dist/{generators-Bi9wzfNx.mjs → src/helpers-j01T2doK.mjs} +0 -0
- /package/dist/{executors-YbcSXKr5.d.mts → src/index-7rWKHdox.d.mts} +0 -0
- /package/dist/{executors-hX1C9GbI.d.cts → src/index-CRo77wc3.d.mts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.schema-CZPuauLj.d.cts","names":["BaseExecutorSchema","Array","Record"],"sources":["../../src/base/base-executor.schema.d.ts"],"sourcesContent":["\n// Generated by @storm-software/untyped\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * @default [\"{sourceRoot}/index.ts\"]\n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n}\n\n"],"mappings":";AAIA;;;AA8EYC,UA9EKD,kBAAAA,CA8ELC;EAQEA;;;;;;;;;;;;;;;;;;;;UAjELA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.schema-DiDI-Jcs.d.mts","names":["BaseExecutorSchema","Array","Record"],"sources":["../../src/base/base-executor.schema.d.ts"],"sourcesContent":["\n// Generated by @storm-software/untyped\n// Do not edit this file directly\n\nexport interface BaseExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * @default [\"{sourceRoot}/index.ts\"]\n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n}\n\n"],"mappings":";AAIA;;;AA8EYC,UA9EKD,kBAAAA,CA8ELC;EAQEA;;;;;;;;;;;;;;;;;;;;UAjELA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.untyped-5iZFoBFu.d.mts","names":[],"sources":["../../src/base/base-executor.untyped.ts"],"sourcesContent":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.untyped-BKF-oUZS.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 configFile: {\n $schema: {\n title: \"Powerlines Configuration File\",\n type: \"string\",\n format: \"path\",\n description: \"The path to the Powerlines configuration file\"\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 $default: [\"{sourceRoot}/index.ts\"]\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 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});\n"],"mappings":";;;AAoBA,oCAAe,oBAAoB;CACjC,SAAS;EACP,IAAI;EACJ,OAAO;EACP,aACE;EACF,UAAU,EAAE;EACb;CACD,YAAY;EACV,SAAS;GACP,OAAO;GACP,MAAM;GACN,QAAQ;GACR,aAAa;GACd;EACD,UAAU;EACX;CACD,OAAO;EACL,SAAS;GACP,OAAO;GACP,QAAQ;GACR,MAAM;GACN,aAAa;GACb,OAAO,EAAE,MAAM,UAAU;GAC1B;EACD,UAAU,CAAC,wBAAwB;EACpC;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,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;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-executor.untyped-DsIwfUqm.d.cts","names":[],"sources":["../../src/base/base-executor.untyped.ts"],"sourcesContent":[],"mappings":""}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
let defu = require("defu");
|
|
29
|
+
defu = __toESM(defu);
|
|
30
|
+
let __stryke_path_append = require("@stryke/path/append");
|
|
31
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
32
|
+
let __stryke_path_replace = require("@stryke/path/replace");
|
|
33
|
+
let __stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
|
|
34
|
+
let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
35
|
+
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
36
|
+
let __storm_software_config_tools_get_config = require("@storm-software/config-tools/get-config");
|
|
37
|
+
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
38
|
+
let c12 = require("c12");
|
|
39
|
+
|
|
40
|
+
//#region ../core/src/constants/commands.ts
|
|
41
|
+
const SUPPORTED_COMMANDS = [
|
|
42
|
+
"new",
|
|
43
|
+
"clean",
|
|
44
|
+
"prepare",
|
|
45
|
+
"lint",
|
|
46
|
+
"test",
|
|
47
|
+
"build",
|
|
48
|
+
"docs",
|
|
49
|
+
"deploy",
|
|
50
|
+
"finalize"
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region ../core/src/constants/plugin.ts
|
|
55
|
+
const UNPLUGIN_BUILDER_VARIANTS = [
|
|
56
|
+
"rollup",
|
|
57
|
+
"webpack",
|
|
58
|
+
"rspack",
|
|
59
|
+
"vite",
|
|
60
|
+
"esbuild",
|
|
61
|
+
"farm",
|
|
62
|
+
"unloader",
|
|
63
|
+
"rolldown",
|
|
64
|
+
"bun"
|
|
65
|
+
];
|
|
66
|
+
const BUILDER_VARIANTS = [
|
|
67
|
+
...UNPLUGIN_BUILDER_VARIANTS,
|
|
68
|
+
"tsup",
|
|
69
|
+
"tsdown",
|
|
70
|
+
"unbuild"
|
|
71
|
+
];
|
|
72
|
+
const PLUGIN_NON_HOOK_FIELDS = [
|
|
73
|
+
"name",
|
|
74
|
+
"api",
|
|
75
|
+
"enforce",
|
|
76
|
+
"dedupe",
|
|
77
|
+
"applyToEnvironment"
|
|
78
|
+
];
|
|
79
|
+
const PLUGIN_HOOKS_FIELDS = [
|
|
80
|
+
...SUPPORTED_COMMANDS,
|
|
81
|
+
"config",
|
|
82
|
+
"configEnvironment",
|
|
83
|
+
"configResolved",
|
|
84
|
+
"types",
|
|
85
|
+
"buildStart",
|
|
86
|
+
"buildEnd",
|
|
87
|
+
"transform",
|
|
88
|
+
"load",
|
|
89
|
+
"resolveId",
|
|
90
|
+
"writeBundle"
|
|
91
|
+
];
|
|
92
|
+
const KNOWN_PLUGIN_FIELDS = [
|
|
93
|
+
...PLUGIN_NON_HOOK_FIELDS,
|
|
94
|
+
...PLUGIN_HOOKS_FIELDS,
|
|
95
|
+
...BUILDER_VARIANTS
|
|
96
|
+
];
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region ../core/src/constants/environments.ts
|
|
100
|
+
const DEFAULT_ENVIRONMENT = "default";
|
|
101
|
+
const GLOBAL_ENVIRONMENT = "__global__";
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region ../core/src/constants/meta.ts
|
|
105
|
+
const ROOT_HASH_LENGTH = 45;
|
|
106
|
+
const CACHE_HASH_LENGTH = 62;
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region ../core/src/lib/config.ts
|
|
110
|
+
/**
|
|
111
|
+
* Loads the workspace configuration.
|
|
112
|
+
*
|
|
113
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
114
|
+
* @param cwd - The current working directory to start searching from.
|
|
115
|
+
* @returns A promise that resolves to the loaded workspace configuration.
|
|
116
|
+
*/
|
|
117
|
+
async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
118
|
+
return (0, defu.default)({ workspaceRoot }, await (0, __storm_software_config_tools_get_config.getWorkspaceConfig)(true, {
|
|
119
|
+
cwd,
|
|
120
|
+
workspaceRoot,
|
|
121
|
+
useDefault: true
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Loads the user configuration file for the project.
|
|
126
|
+
*
|
|
127
|
+
* @param projectRoot - The root directory of the project.
|
|
128
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
129
|
+
* @param jiti - An instance of Jiti to resolve modules from
|
|
130
|
+
* @param command - The {@link PowerlinesCommand} string associated with the current running process
|
|
131
|
+
* @param mode - The mode in which the project is running (default is "production").
|
|
132
|
+
* @param configFile - An optional path to a specific configuration file.
|
|
133
|
+
* @param framework - The framework name to use for default configuration file names.
|
|
134
|
+
* @returns A promise that resolves to the resolved user configuration.
|
|
135
|
+
*/
|
|
136
|
+
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
|
|
137
|
+
let resolvedUserConfig = {};
|
|
138
|
+
let resolvedUserConfigFile;
|
|
139
|
+
if (configFile) resolvedUserConfigFile = (0, __stryke_fs_exists.existsSync)((0, __stryke_path_replace.replacePath)(configFile, projectRoot)) ? (0, __stryke_path_replace.replacePath)(configFile, projectRoot) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), (0, __stryke_path_replace.replacePath)(configFile, projectRoot))) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), (0, __stryke_path_replace.replacePath)(configFile, projectRoot)) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), configFile)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), configFile) : void 0;
|
|
140
|
+
if (!resolvedUserConfigFile) resolvedUserConfigFile = (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.ts`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.js`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.js`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.mts`) : (0, __stryke_fs_exists.existsSync)((0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? (0, __stryke_path_join_paths.joinPaths)((0, __stryke_path_append.appendPath)(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
141
|
+
if (resolvedUserConfigFile) {
|
|
142
|
+
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
143
|
+
if (resolved) {
|
|
144
|
+
let config = {};
|
|
145
|
+
if ((0, __stryke_type_checks_is_function.isFunction)(resolved)) config = await Promise.resolve(resolved({
|
|
146
|
+
command,
|
|
147
|
+
mode,
|
|
148
|
+
isSsrBuild: false,
|
|
149
|
+
isPreview: false
|
|
150
|
+
}));
|
|
151
|
+
if ((0, __stryke_type_checks_is_set_object.isSetObject)(config)) resolvedUserConfig = {
|
|
152
|
+
...config,
|
|
153
|
+
config,
|
|
154
|
+
configFile: resolvedUserConfigFile
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const result = await (0, c12.loadConfig)({
|
|
159
|
+
cwd: projectRoot,
|
|
160
|
+
name: framework,
|
|
161
|
+
envName: mode,
|
|
162
|
+
globalRc: true,
|
|
163
|
+
packageJson: (0, __stryke_string_format_camel_case.camelCase)(framework),
|
|
164
|
+
dotenv: true,
|
|
165
|
+
jiti
|
|
166
|
+
});
|
|
167
|
+
return (0, defu.default)(resolvedUserConfig, (0, __stryke_type_checks_is_set_object.isSetObject)(result?.config) ? {
|
|
168
|
+
...result.config,
|
|
169
|
+
...result
|
|
170
|
+
} : {});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
//#endregion
|
|
174
|
+
Object.defineProperty(exports, 'BUILDER_VARIANTS', {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return BUILDER_VARIANTS;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, 'CACHE_HASH_LENGTH', {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return CACHE_HASH_LENGTH;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, 'DEFAULT_ENVIRONMENT', {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return DEFAULT_ENVIRONMENT;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, 'GLOBAL_ENVIRONMENT', {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return GLOBAL_ENVIRONMENT;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, 'PLUGIN_HOOKS_FIELDS', {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return PLUGIN_HOOKS_FIELDS;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, 'PLUGIN_NON_HOOK_FIELDS', {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return PLUGIN_NON_HOOK_FIELDS;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, 'ROOT_HASH_LENGTH', {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () {
|
|
213
|
+
return ROOT_HASH_LENGTH;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(exports, 'UNPLUGIN_BUILDER_VARIANTS', {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function () {
|
|
219
|
+
return UNPLUGIN_BUILDER_VARIANTS;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, '__toESM', {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () {
|
|
225
|
+
return __toESM;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, 'loadUserConfigFile', {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () {
|
|
231
|
+
return loadUserConfigFile;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, 'loadWorkspaceConfig', {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () {
|
|
237
|
+
return loadWorkspaceConfig;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import defu$1 from "defu";
|
|
2
|
+
import { appendPath } from "@stryke/path/append";
|
|
3
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
4
|
+
import { replacePath } from "@stryke/path/replace";
|
|
5
|
+
import { isFunction } from "@stryke/type-checks/is-function";
|
|
6
|
+
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
7
|
+
import { existsSync } from "@stryke/fs/exists";
|
|
8
|
+
import { getWorkspaceConfig } from "@storm-software/config-tools/get-config";
|
|
9
|
+
import { camelCase } from "@stryke/string-format/camel-case";
|
|
10
|
+
import { loadConfig } from "c12";
|
|
11
|
+
|
|
12
|
+
//#region ../core/src/constants/commands.ts
|
|
13
|
+
const SUPPORTED_COMMANDS = [
|
|
14
|
+
"new",
|
|
15
|
+
"clean",
|
|
16
|
+
"prepare",
|
|
17
|
+
"lint",
|
|
18
|
+
"test",
|
|
19
|
+
"build",
|
|
20
|
+
"docs",
|
|
21
|
+
"deploy",
|
|
22
|
+
"finalize"
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../core/src/constants/plugin.ts
|
|
27
|
+
const UNPLUGIN_BUILDER_VARIANTS = [
|
|
28
|
+
"rollup",
|
|
29
|
+
"webpack",
|
|
30
|
+
"rspack",
|
|
31
|
+
"vite",
|
|
32
|
+
"esbuild",
|
|
33
|
+
"farm",
|
|
34
|
+
"unloader",
|
|
35
|
+
"rolldown",
|
|
36
|
+
"bun"
|
|
37
|
+
];
|
|
38
|
+
const BUILDER_VARIANTS = [
|
|
39
|
+
...UNPLUGIN_BUILDER_VARIANTS,
|
|
40
|
+
"tsup",
|
|
41
|
+
"tsdown",
|
|
42
|
+
"unbuild"
|
|
43
|
+
];
|
|
44
|
+
const PLUGIN_NON_HOOK_FIELDS = [
|
|
45
|
+
"name",
|
|
46
|
+
"api",
|
|
47
|
+
"enforce",
|
|
48
|
+
"dedupe",
|
|
49
|
+
"applyToEnvironment"
|
|
50
|
+
];
|
|
51
|
+
const PLUGIN_HOOKS_FIELDS = [
|
|
52
|
+
...SUPPORTED_COMMANDS,
|
|
53
|
+
"config",
|
|
54
|
+
"configEnvironment",
|
|
55
|
+
"configResolved",
|
|
56
|
+
"types",
|
|
57
|
+
"buildStart",
|
|
58
|
+
"buildEnd",
|
|
59
|
+
"transform",
|
|
60
|
+
"load",
|
|
61
|
+
"resolveId",
|
|
62
|
+
"writeBundle"
|
|
63
|
+
];
|
|
64
|
+
const KNOWN_PLUGIN_FIELDS = [
|
|
65
|
+
...PLUGIN_NON_HOOK_FIELDS,
|
|
66
|
+
...PLUGIN_HOOKS_FIELDS,
|
|
67
|
+
...BUILDER_VARIANTS
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region ../core/src/constants/environments.ts
|
|
72
|
+
const DEFAULT_ENVIRONMENT = "default";
|
|
73
|
+
const GLOBAL_ENVIRONMENT = "__global__";
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region ../core/src/constants/meta.ts
|
|
77
|
+
const ROOT_HASH_LENGTH = 45;
|
|
78
|
+
const CACHE_HASH_LENGTH = 62;
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region ../core/src/lib/config.ts
|
|
82
|
+
/**
|
|
83
|
+
* Loads the workspace configuration.
|
|
84
|
+
*
|
|
85
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
86
|
+
* @param cwd - The current working directory to start searching from.
|
|
87
|
+
* @returns A promise that resolves to the loaded workspace configuration.
|
|
88
|
+
*/
|
|
89
|
+
async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
90
|
+
return defu$1({ workspaceRoot }, await getWorkspaceConfig(true, {
|
|
91
|
+
cwd,
|
|
92
|
+
workspaceRoot,
|
|
93
|
+
useDefault: true
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Loads the user configuration file for the project.
|
|
98
|
+
*
|
|
99
|
+
* @param projectRoot - The root directory of the project.
|
|
100
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
101
|
+
* @param jiti - An instance of Jiti to resolve modules from
|
|
102
|
+
* @param command - The {@link PowerlinesCommand} string associated with the current running process
|
|
103
|
+
* @param mode - The mode in which the project is running (default is "production").
|
|
104
|
+
* @param configFile - An optional path to a specific configuration file.
|
|
105
|
+
* @param framework - The framework name to use for default configuration file names.
|
|
106
|
+
* @returns A promise that resolves to the resolved user configuration.
|
|
107
|
+
*/
|
|
108
|
+
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
|
|
109
|
+
let resolvedUserConfig = {};
|
|
110
|
+
let resolvedUserConfigFile;
|
|
111
|
+
if (configFile) resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot)) ? replacePath(configFile, projectRoot) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot))) ? joinPaths(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot)) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile) : void 0;
|
|
112
|
+
if (!resolvedUserConfigFile) resolvedUserConfigFile = existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
113
|
+
if (resolvedUserConfigFile) {
|
|
114
|
+
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
115
|
+
if (resolved) {
|
|
116
|
+
let config = {};
|
|
117
|
+
if (isFunction(resolved)) config = await Promise.resolve(resolved({
|
|
118
|
+
command,
|
|
119
|
+
mode,
|
|
120
|
+
isSsrBuild: false,
|
|
121
|
+
isPreview: false
|
|
122
|
+
}));
|
|
123
|
+
if (isSetObject(config)) resolvedUserConfig = {
|
|
124
|
+
...config,
|
|
125
|
+
config,
|
|
126
|
+
configFile: resolvedUserConfigFile
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const result = await loadConfig({
|
|
131
|
+
cwd: projectRoot,
|
|
132
|
+
name: framework,
|
|
133
|
+
envName: mode,
|
|
134
|
+
globalRc: true,
|
|
135
|
+
packageJson: camelCase(framework),
|
|
136
|
+
dotenv: true,
|
|
137
|
+
jiti
|
|
138
|
+
});
|
|
139
|
+
return defu$1(resolvedUserConfig, isSetObject(result?.config) ? {
|
|
140
|
+
...result.config,
|
|
141
|
+
...result
|
|
142
|
+
} : {});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
//#endregion
|
|
146
|
+
export { DEFAULT_ENVIRONMENT as a, PLUGIN_HOOKS_FIELDS as c, ROOT_HASH_LENGTH as i, PLUGIN_NON_HOOK_FIELDS as l, loadWorkspaceConfig as n, GLOBAL_ENVIRONMENT as o, CACHE_HASH_LENGTH as r, BUILDER_VARIANTS as s, loadUserConfigFile as t, UNPLUGIN_BUILDER_VARIANTS as u };
|
|
147
|
+
//# sourceMappingURL=config-LoR-NIJg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-LoR-NIJg.mjs","names":["defu","resolvedUserConfig: Partial<ParsedUserConfig>","resolvedUserConfigFile: string | undefined","loadConfigC12"],"sources":["../../../core/src/constants/commands.ts","../../../core/src/constants/plugin.ts","../../../core/src/constants/environments.ts","../../../core/src/constants/meta.ts","../../../core/src/lib/config.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\nexport const SUPPORTED_COMMANDS = [\n \"new\",\n \"clean\",\n \"prepare\",\n \"lint\",\n \"test\",\n \"build\",\n \"docs\",\n \"deploy\",\n \"finalize\"\n] as const;\n","/* -------------------------------------------------------------------\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 { SUPPORTED_COMMANDS } from \"./commands\";\n\nexport const UNPLUGIN_BUILDER_VARIANTS = [\n \"rollup\",\n \"webpack\",\n \"rspack\",\n \"vite\",\n \"esbuild\",\n \"farm\",\n \"unloader\",\n \"rolldown\",\n \"bun\"\n] as const;\n\nexport const BUILDER_VARIANTS = [\n ...UNPLUGIN_BUILDER_VARIANTS,\n \"tsup\",\n \"tsdown\",\n \"unbuild\"\n] as const;\n\nexport const PLUGIN_NON_HOOK_FIELDS = [\n \"name\",\n \"api\",\n \"enforce\",\n \"dedupe\",\n \"applyToEnvironment\"\n] as const;\n\nexport const PLUGIN_HOOKS_FIELDS = [\n ...SUPPORTED_COMMANDS,\n \"config\",\n \"configEnvironment\",\n \"configResolved\",\n \"types\",\n \"buildStart\",\n \"buildEnd\",\n \"transform\",\n \"load\",\n \"resolveId\",\n \"writeBundle\"\n] as const;\n\nexport const KNOWN_PLUGIN_FIELDS = [\n ...PLUGIN_NON_HOOK_FIELDS,\n ...PLUGIN_HOOKS_FIELDS,\n ...BUILDER_VARIANTS\n] as const;\n","/* -------------------------------------------------------------------\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\nexport const DEFAULT_ENVIRONMENT = \"default\" as const;\nexport const GLOBAL_ENVIRONMENT = \"__global__\" as const;\n\n// General environment names that can be used in plugins and configurations\nexport const CLIENT_ENVIRONMENT = \"client\" as const;\nexport const SERVER_ENVIRONMENT = \"server\" as const;\nexport const SSR_ENVIRONMENT = \"ssr\" as const;\nexport const RSC_ENVIRONMENT = \"rsc\" as const;\n","/* -------------------------------------------------------------------\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\nexport const ROOT_HASH_LENGTH = 45;\nexport const CACHE_HASH_LENGTH = 62;\n","/* -------------------------------------------------------------------\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 { getWorkspaceConfig } from \"@storm-software/config-tools/get-config\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { loadConfig as loadConfigC12 } from \"c12\";\nimport defu from \"defu\";\nimport type { Jiti } from \"jiti\";\nimport type {\n ParsedUserConfig,\n PowerlinesCommand,\n UserConfig,\n WorkspaceConfig\n} from \"../types/config\";\nimport { AnyUserConfig } from \"../types/config\";\nimport { Context } from \"../types/context\";\n\nexport type PartiallyResolvedContext<TContext extends Context = Context> = Omit<\n TContext,\n \"config\" | \"tsconfig\" | \"entry\" | \"fs\" | \"compiler\" | \"unimport\"\n> &\n Partial<TContext> & {\n config: TContext[\"config\"];\n };\n\n/**\n * Loads the workspace configuration.\n *\n * @param workspaceRoot - The root directory of the workspace.\n * @param cwd - The current working directory to start searching from.\n * @returns A promise that resolves to the loaded workspace configuration.\n */\nexport async function loadWorkspaceConfig(\n workspaceRoot: string,\n cwd: string\n): Promise<WorkspaceConfig> {\n return defu(\n {\n workspaceRoot\n },\n await getWorkspaceConfig(true, {\n cwd,\n workspaceRoot,\n useDefault: true\n })\n );\n}\n\n/**\n * Loads the user configuration file for the project.\n *\n * @param projectRoot - The root directory of the project.\n * @param workspaceRoot - The root directory of the workspace.\n * @param jiti - An instance of Jiti to resolve modules from\n * @param command - The {@link PowerlinesCommand} string associated with the current running process\n * @param mode - The mode in which the project is running (default is \"production\").\n * @param configFile - An optional path to a specific configuration file.\n * @param framework - The framework name to use for default configuration file names.\n * @returns A promise that resolves to the resolved user configuration.\n */\nexport async function loadUserConfigFile(\n projectRoot: string,\n workspaceRoot: string,\n jiti: Jiti,\n command?: PowerlinesCommand,\n mode = \"production\",\n configFile?: string,\n framework = \"powerlines\"\n): Promise<ParsedUserConfig> {\n let resolvedUserConfig: Partial<ParsedUserConfig> = {};\n\n let resolvedUserConfigFile: string | undefined;\n if (configFile) {\n resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot))\n ? replacePath(configFile, projectRoot)\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n replacePath(configFile, projectRoot)\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n replacePath(configFile, projectRoot)\n )\n : existsSync(\n joinPaths(appendPath(projectRoot, workspaceRoot), configFile)\n )\n ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile)\n : undefined;\n }\n\n if (!resolvedUserConfigFile) {\n resolvedUserConfigFile = existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.ts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.ts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.js`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.js`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mjs`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mjs`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.ts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.ts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.js`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.js`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mjs`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mjs`\n )\n : undefined;\n }\n\n if (resolvedUserConfigFile) {\n const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));\n if (resolved) {\n let config = {};\n if (isFunction(resolved)) {\n config = await Promise.resolve(\n resolved({\n command,\n mode,\n isSsrBuild: false,\n isPreview: false\n })\n );\n }\n\n if (isSetObject(config)) {\n resolvedUserConfig = {\n ...config,\n config: config as UserConfig,\n configFile: resolvedUserConfigFile\n };\n }\n }\n }\n\n const result = await loadConfigC12({\n cwd: projectRoot,\n name: framework,\n envName: mode,\n globalRc: true,\n packageJson: camelCase(framework),\n dotenv: true,\n jiti\n });\n\n return defu(\n resolvedUserConfig,\n isSetObject(result?.config) ? { ...result.config, ...result } : {}\n ) as ParsedUserConfig;\n}\n\n/**\n * A type helper to make it easier to use `powerlines.config.ts` files.\n *\n * @remarks\n * The function accepts a direct {@link AnyUserConfig} object and returns it typed as a {@link UserConfig} object.\n */\nexport function defineConfig(config: AnyUserConfig): UserConfig {\n return config as any;\n}\n"],"mappings":";;;;;;;;;;;;AAkBA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;ACRD,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,mBAAmB;CAC9B,GAAG;CACH;CACA;CACA;CACD;AAED,MAAa,yBAAyB;CACpC;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,sBAAsB;CACjC,GAAG;CACH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,sBAAsB;CACjC,GAAG;CACH,GAAG;CACH,GAAG;CACJ;;;;AC/CD,MAAa,sBAAsB;AACnC,MAAa,qBAAqB;;;;ACDlC,MAAa,mBAAmB;AAChC,MAAa,oBAAoB;;;;;;;;;;;ACkCjC,eAAsB,oBACpB,eACA,KAC0B;AAC1B,QAAOA,OACL,EACE,eACD,EACD,MAAM,mBAAmB,MAAM;EAC7B;EACA;EACA,YAAY;EACb,CAAC,CACH;;;;;;;;;;;;;;AAeH,eAAsB,mBACpB,aACA,eACA,MACA,SACA,OAAO,cACP,YACA,YAAY,cACe;CAC3B,IAAIC,qBAAgD,EAAE;CAEtD,IAAIC;AACJ,KAAI,WACF,0BAAyB,WAAW,YAAY,YAAY,YAAY,CAAC,GACrE,YAAY,YAAY,YAAY,GACpC,WACI,UACE,WAAW,aAAa,cAAc,EACtC,YAAY,YAAY,YAAY,CACrC,CACF,GACD,UACE,WAAW,aAAa,cAAc,EACtC,YAAY,YAAY,YAAY,CACrC,GACD,WACI,UAAU,WAAW,aAAa,cAAc,EAAE,WAAW,CAC9D,GACD,UAAU,WAAW,aAAa,cAAc,EAAE,WAAW,GAC7D;AAGV,KAAI,CAAC,uBACH,0BAAyB,WACvB,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,YACtB,CACF,GACG,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,YACtB,GACD,WACI,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,YACtB,CACF,GACD,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,YACtB,GACD,WACI,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,aACtB,CACF,GACD,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,aACtB,GACD,WACI,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,aACtB,CACF,GACD,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,aACtB,GACD,WACI,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,YACd,CACF,GACD,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,YACd,GACD,WACI,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,YACd,CACF,GACD,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,YACd,GACD,WACI,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,aACd,CACF,GACD,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,aACd,GACD,WACI,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,aACd,CACF,GACD,UACE,WAAW,aAAa,cAAc,EACtC,GAAG,UAAU,aACd,GACD;AAGpB,KAAI,wBAAwB;EAC1B,MAAM,WAAW,MAAM,KAAK,OAAO,KAAK,WAAW,uBAAuB,CAAC;AAC3E,MAAI,UAAU;GACZ,IAAI,SAAS,EAAE;AACf,OAAI,WAAW,SAAS,CACtB,UAAS,MAAM,QAAQ,QACrB,SAAS;IACP;IACA;IACA,YAAY;IACZ,WAAW;IACZ,CAAC,CACH;AAGH,OAAI,YAAY,OAAO,CACrB,sBAAqB;IACnB,GAAG;IACK;IACR,YAAY;IACb;;;CAKP,MAAM,SAAS,MAAMC,WAAc;EACjC,KAAK;EACL,MAAM;EACN,SAAS;EACT,UAAU;EACV,aAAa,UAAU,UAAU;EACjC,QAAQ;EACR;EACD,CAAC;AAEF,QAAOH,OACL,oBACA,YAAY,QAAQ,OAAO,GAAG;EAAE,GAAG,OAAO;EAAQ,GAAG;EAAQ,GAAG,EAAE,CACnE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/helpers/constants.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* A list of Nx input strings that describe the Powerlines configuration file
|
|
4
|
+
*/
|
|
5
|
+
declare const CONFIG_INPUTS: readonly ["{projectRoot}/{framework}.json", "{projectRoot}/{framework}.*.json", "{projectRoot}/{framework}.jsonc", "{projectRoot}/{framework}.*.jsonc", "{projectRoot}/{framework}.json5", "{projectRoot}/{framework}.*.json5", "{projectRoot}/{framework}.yaml", "{projectRoot}/{framework}.*.yaml", "{projectRoot}/{framework}.yml", "{projectRoot}/{framework}.*.yml", "{projectRoot}/{framework}.toml", "{projectRoot}/{framework}.*.toml", "{projectRoot}/{framework}.config.js", "{projectRoot}/{framework}.*.config.js", "{projectRoot}/{framework}.config.cjs", "{projectRoot}/{framework}.*.config.cjs", "{projectRoot}/{framework}.config.mjs", "{projectRoot}/{framework}.*.config.mjs", "{projectRoot}/{framework}.config.ts", "{projectRoot}/{framework}.*.config.ts", "{projectRoot}/{framework}.config.cts", "{projectRoot}/{framework}.*.config.cts", "{projectRoot}/{framework}.config.mts", "{projectRoot}/{framework}.*.config.mts"];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { CONFIG_INPUTS as t };
|
|
8
|
+
//# sourceMappingURL=constants-BvU9n9qR.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-BvU9n9qR.d.mts","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":[],"mappings":";;AAqBA;;cAAa"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/helpers/constants.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* A list of Nx input strings that describe the Powerlines configuration file
|
|
4
|
+
*/
|
|
5
|
+
declare const CONFIG_INPUTS: readonly ["{projectRoot}/{framework}.json", "{projectRoot}/{framework}.*.json", "{projectRoot}/{framework}.jsonc", "{projectRoot}/{framework}.*.jsonc", "{projectRoot}/{framework}.json5", "{projectRoot}/{framework}.*.json5", "{projectRoot}/{framework}.yaml", "{projectRoot}/{framework}.*.yaml", "{projectRoot}/{framework}.yml", "{projectRoot}/{framework}.*.yml", "{projectRoot}/{framework}.toml", "{projectRoot}/{framework}.*.toml", "{projectRoot}/{framework}.config.js", "{projectRoot}/{framework}.*.config.js", "{projectRoot}/{framework}.config.cjs", "{projectRoot}/{framework}.*.config.cjs", "{projectRoot}/{framework}.config.mjs", "{projectRoot}/{framework}.*.config.mjs", "{projectRoot}/{framework}.config.ts", "{projectRoot}/{framework}.*.config.ts", "{projectRoot}/{framework}.config.cts", "{projectRoot}/{framework}.*.config.cts", "{projectRoot}/{framework}.config.mts", "{projectRoot}/{framework}.*.config.mts"];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { CONFIG_INPUTS as t };
|
|
8
|
+
//# sourceMappingURL=constants-CPcygc7m.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-CPcygc7m.d.cts","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":[],"mappings":";;AAqBA;;cAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-DzvoYj5w.mjs","names":[],"sources":["../../src/helpers/constants.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\n/**\n * A list of Nx input strings that describe the Powerlines configuration file\n */\nexport const CONFIG_INPUTS = [\n \"{projectRoot}/{framework}.json\",\n \"{projectRoot}/{framework}.*.json\",\n \"{projectRoot}/{framework}.jsonc\",\n \"{projectRoot}/{framework}.*.jsonc\",\n \"{projectRoot}/{framework}.json5\",\n \"{projectRoot}/{framework}.*.json5\",\n \"{projectRoot}/{framework}.yaml\",\n \"{projectRoot}/{framework}.*.yaml\",\n \"{projectRoot}/{framework}.yml\",\n \"{projectRoot}/{framework}.*.yml\",\n \"{projectRoot}/{framework}.toml\",\n \"{projectRoot}/{framework}.*.toml\",\n \"{projectRoot}/{framework}.config.js\",\n \"{projectRoot}/{framework}.*.config.js\",\n \"{projectRoot}/{framework}.config.cjs\",\n \"{projectRoot}/{framework}.*.config.cjs\",\n \"{projectRoot}/{framework}.config.mjs\",\n \"{projectRoot}/{framework}.*.config.mjs\",\n \"{projectRoot}/{framework}.config.ts\",\n \"{projectRoot}/{framework}.*.config.ts\",\n \"{projectRoot}/{framework}.config.cts\",\n \"{projectRoot}/{framework}.*.config.cts\",\n \"{projectRoot}/{framework}.config.mts\",\n \"{projectRoot}/{framework}.*.config.mts\"\n] as const;\n"],"mappings":";;;;AAqBA,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
require('
|
|
3
|
-
const
|
|
2
|
+
const require_config = require('../../config-Dkb72RJI.cjs');
|
|
3
|
+
const require_base_executor = require('../../base-executor-D0PC7G0V.cjs');
|
|
4
|
+
let defu = require("defu");
|
|
5
|
+
defu = require_config.__toESM(defu);
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
//#region src/executors/build/executor.ts
|
|
8
|
+
async function executorFn(context, api) {
|
|
9
|
+
await api.build((0, defu.default)({
|
|
10
|
+
input: context.options.input,
|
|
11
|
+
skipCache: context.options.skipCache,
|
|
12
|
+
mode: context.options.mode
|
|
13
|
+
}, context.inlineConfig));
|
|
14
|
+
return { success: true };
|
|
15
|
+
}
|
|
16
|
+
const executor = require_base_executor.withExecutor("build", executorFn);
|
|
17
|
+
var executor_default = executor;
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.default = executor_default;
|
|
21
|
+
exports.executorFn = executorFn;
|