@storm-software/workspace-tools 1.295.65 → 1.295.66
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/package.json +10 -9
- package/CHANGELOG.md +0 -12793
- package/LICENSE +0 -201
- package/README.md +0 -996
- package/assets/cjs_shims.js +0 -11
- package/assets/esm_shims.js +0 -9
- package/config/base.json +0 -325
- package/config/recommended.json +0 -329
- package/dist/chunk-237PJK2V.js +0 -128
- package/dist/chunk-2AVWFUXP.js +0 -112
- package/dist/chunk-2JANPL5K.js +0 -49
- package/dist/chunk-2NAUEEZT.js +0 -31
- package/dist/chunk-2QMGYIOO.mjs +0 -81
- package/dist/chunk-32KQVUCF.js +0 -163
- package/dist/chunk-34LSWMWV.mjs +0 -20
- package/dist/chunk-3J2CP54B.mjs +0 -100
- package/dist/chunk-3QM6CFXC.mjs +0 -49
- package/dist/chunk-437WGH2M.mjs +0 -32
- package/dist/chunk-46GNS53C.mjs +0 -110
- package/dist/chunk-4AKDRRML.js +0 -339
- package/dist/chunk-4U7A2VWZ.mjs +0 -105
- package/dist/chunk-4ZQUYG5T.js +0 -37
- package/dist/chunk-52CEFR2O.js +0 -52
- package/dist/chunk-5GZC2PF6.mjs +0 -0
- package/dist/chunk-5JNL56OH.mjs +0 -364
- package/dist/chunk-6EMYX25V.js +0 -7
- package/dist/chunk-6YZ3OUJB.mjs +0 -0
- package/dist/chunk-77B77QNY.mjs +0 -148
- package/dist/chunk-7CJRMBX3.js +0 -20
- package/dist/chunk-7JRL2LE3.js +0 -21
- package/dist/chunk-7RI43PE4.js +0 -32
- package/dist/chunk-A7XSX2OE.js +0 -41
- package/dist/chunk-AGR3NCGA.js +0 -387
- package/dist/chunk-AH7KAAQJ.mjs +0 -17
- package/dist/chunk-AKIVYTFU.mjs +0 -10
- package/dist/chunk-AMGMD43G.mjs +0 -93
- package/dist/chunk-ANHKV7HZ.js +0 -22
- package/dist/chunk-AQ7B26V3.mjs +0 -126
- package/dist/chunk-AQTWWTF2.mjs +0 -388
- package/dist/chunk-AZMDS7CR.mjs +0 -82
- package/dist/chunk-BRMFLUTQ.js +0 -117
- package/dist/chunk-BZMYB75M.js +0 -321
- package/dist/chunk-C3TC7AUW.js +0 -1
- package/dist/chunk-CJVTWYOM.mjs +0 -50
- package/dist/chunk-CNL74KSJ.mjs +0 -52
- package/dist/chunk-CQDBLKPF.js +0 -172
- package/dist/chunk-CZPRVK6P.mjs +0 -31
- package/dist/chunk-DIUWF7BW.js +0 -17
- package/dist/chunk-DTBAID2E.mjs +0 -469
- package/dist/chunk-DZ3VLKI7.js +0 -102
- package/dist/chunk-EGI64HQ2.mjs +0 -22
- package/dist/chunk-FHHWAN4N.js +0 -50
- package/dist/chunk-FKPWMB63.mjs +0 -79
- package/dist/chunk-FVCRMDQ4.mjs +0 -319
- package/dist/chunk-GBT7YI3X.js +0 -548
- package/dist/chunk-GHQJKIMQ.mjs +0 -0
- package/dist/chunk-GKLFEOKK.mjs +0 -163
- package/dist/chunk-GSGT2T27.js +0 -150
- package/dist/chunk-HXQRGLII.js +0 -81
- package/dist/chunk-IIDZJGC3.js +0 -469
- package/dist/chunk-IK2SIG4W.mjs +0 -32
- package/dist/chunk-IVAYCDYI.js +0 -250
- package/dist/chunk-JCPIXJ3N.mjs +0 -37
- package/dist/chunk-JGP4YWZY.js +0 -1
- package/dist/chunk-K7B3YICS.mjs +0 -1510
- package/dist/chunk-KBIJQTKM.js +0 -105
- package/dist/chunk-KBJ7IEXI.js +0 -1
- package/dist/chunk-KR72GKIT.mjs +0 -7
- package/dist/chunk-LMYTVXGX.js +0 -100
- package/dist/chunk-LOIAWLLD.mjs +0 -128
- package/dist/chunk-LQHVZMFV.js +0 -79
- package/dist/chunk-LZ3H2OH5.mjs +0 -158
- package/dist/chunk-M3YWCYUX.mjs +0 -321
- package/dist/chunk-NFQJD3ZU.mjs +0 -253
- package/dist/chunk-OKSECMVK.js +0 -32
- package/dist/chunk-OV6RS5V7.mjs +0 -49
- package/dist/chunk-P5P43FOZ.mjs +0 -0
- package/dist/chunk-P6HSE7LH.js +0 -1
- package/dist/chunk-PHIKLLXQ.js +0 -32
- package/dist/chunk-PMPKOMMD.js +0 -158
- package/dist/chunk-QC5ON3X4.mjs +0 -40
- package/dist/chunk-QKYQP5DB.js +0 -93
- package/dist/chunk-QLV3LANL.js +0 -32
- package/dist/chunk-QQB6GFYM.mjs +0 -79
- package/dist/chunk-QVYCDING.js +0 -23
- package/dist/chunk-R4NPC2W7.mjs +0 -213
- package/dist/chunk-RGPA6TMT.js +0 -364
- package/dist/chunk-RN4I4XGR.mjs +0 -117
- package/dist/chunk-RSYBXBX2.js +0 -110
- package/dist/chunk-RU37AI75.mjs +0 -548
- package/dist/chunk-RW4Q2PQR.js +0 -213
- package/dist/chunk-SAIDGUHG.mjs +0 -0
- package/dist/chunk-SEZ726NO.mjs +0 -150
- package/dist/chunk-SW2E5MQJ.mjs +0 -112
- package/dist/chunk-SZWM7COV.js +0 -40
- package/dist/chunk-T55IDP24.mjs +0 -387
- package/dist/chunk-TBW5MCN6.mjs +0 -172
- package/dist/chunk-TM2CRDJW.js +0 -148
- package/dist/chunk-TX5O64JJ.js +0 -319
- package/dist/chunk-TXTNKYJN.js +0 -388
- package/dist/chunk-U35L6YML.mjs +0 -105
- package/dist/chunk-UBVTASOE.mjs +0 -62
- package/dist/chunk-UE6LE5R2.mjs +0 -32
- package/dist/chunk-UHTWNVEZ.js +0 -126
- package/dist/chunk-UKTILFKM.mjs +0 -32
- package/dist/chunk-UNUH7N7Y.mjs +0 -76
- package/dist/chunk-UTP3KI2H.js +0 -76
- package/dist/chunk-V5K2PDVY.mjs +0 -339
- package/dist/chunk-VBIWSFWM.js +0 -79
- package/dist/chunk-VHB2R4EV.mjs +0 -77
- package/dist/chunk-VTEU7W42.mjs +0 -41
- package/dist/chunk-VXHOSAQ7.js +0 -62
- package/dist/chunk-W2C5IGWW.mjs +0 -23
- package/dist/chunk-WPR4KZUZ.js +0 -74
- package/dist/chunk-WUKU43IZ.js +0 -49
- package/dist/chunk-XZ6L6OXJ.js +0 -79
- package/dist/chunk-YYLV7UA6.js +0 -1
- package/dist/chunk-ZCTECGQS.mjs +0 -21
- package/dist/chunk-ZJ75AYXE.js +0 -1510
- package/dist/executor-0ivVjqma.d.mts +0 -75
- package/dist/executor-0ivVjqma.d.ts +0 -75
- package/dist/executor-BAeunL4c.d.mts +0 -143
- package/dist/executor-BKdjKo-J.d.mts +0 -93
- package/dist/executor-BKdjKo-J.d.ts +0 -93
- package/dist/executor-BbIkDktz.d.mts +0 -103
- package/dist/executor-BbIkDktz.d.ts +0 -103
- package/dist/executor-BxzAij2P.d.ts +0 -57
- package/dist/executor-C4Ddk0eB.d.mts +0 -145
- package/dist/executor-CPBR709C.d.ts +0 -143
- package/dist/executor-CPh7sG83.d.mts +0 -57
- package/dist/executor-CVgzIGPj.d.mts +0 -95
- package/dist/executor-CVgzIGPj.d.ts +0 -95
- package/dist/executor-CWRRdIo2.d.mts +0 -95
- package/dist/executor-CWRRdIo2.d.ts +0 -95
- package/dist/executor-DA8yyqTK.d.mts +0 -33
- package/dist/executor-DJOXX8-N.d.mts +0 -267
- package/dist/executor-DcKEmf82.d.ts +0 -305
- package/dist/executor-DpEbHA1f.d.mts +0 -131
- package/dist/executor-DpEbHA1f.d.ts +0 -131
- package/dist/executor-DvfMQSTP.d.mts +0 -305
- package/dist/executor-HMyCQrhV.d.ts +0 -33
- package/dist/executor-YAjz4bej.d.ts +0 -267
- package/dist/executor-jYQ7uQ13.d.mts +0 -121
- package/dist/executor-jYQ7uQ13.d.ts +0 -121
- package/dist/executor-lCseKo3l.d.ts +0 -145
- package/dist/executors.d.mts +0 -18
- package/dist/executors.d.ts +0 -18
- package/dist/executors.js +0 -66
- package/dist/executors.mjs +0 -67
- package/dist/generator-0E5nSU3V.d.mts +0 -130
- package/dist/generator-B3NZ6Ud2.d.ts +0 -130
- package/dist/generator-BSMRuLJg.d.ts +0 -38
- package/dist/generator-C5Cl-DE-.d.ts +0 -108
- package/dist/generator-CNhbKDrd.d.mts +0 -38
- package/dist/generator-CRj1yNiR.d.ts +0 -130
- package/dist/generator-CV5_wiZn.d.mts +0 -108
- package/dist/generator-DMoo8xwP.d.mts +0 -130
- package/dist/generator-DPnGd9Bq.d.ts +0 -130
- package/dist/generator-PrphSHj3.d.mts +0 -130
- package/dist/generators.d.mts +0 -12
- package/dist/generators.d.ts +0 -12
- package/dist/generators.js +0 -36
- package/dist/generators.mjs +0 -37
- package/dist/index.d.mts +0 -60
- package/dist/index.d.ts +0 -60
- package/dist/index.js +0 -299
- package/dist/index.mjs +0 -300
- package/dist/init-6Nmtv8d5.d.mts +0 -19
- package/dist/init-6Nmtv8d5.d.ts +0 -19
- package/dist/schema.d-B9y7rRms.d.mts +0 -59
- package/dist/schema.d-B9y7rRms.d.ts +0 -59
- package/dist/src/base/base-executor.d.mts +0 -10
- package/dist/src/base/base-executor.d.ts +0 -10
- package/dist/src/base/base-executor.js +0 -11
- package/dist/src/base/base-executor.mjs +0 -12
- package/dist/src/base/base-executor.untyped.d.mts +0 -5
- package/dist/src/base/base-executor.untyped.d.ts +0 -5
- package/dist/src/base/base-executor.untyped.js +0 -6
- package/dist/src/base/base-executor.untyped.mjs +0 -7
- package/dist/src/base/base-generator.d.mts +0 -10
- package/dist/src/base/base-generator.d.ts +0 -10
- package/dist/src/base/base-generator.js +0 -11
- package/dist/src/base/base-generator.mjs +0 -12
- package/dist/src/base/base-generator.untyped.d.mts +0 -5
- package/dist/src/base/base-generator.untyped.d.ts +0 -5
- package/dist/src/base/base-generator.untyped.js +0 -6
- package/dist/src/base/base-generator.untyped.mjs +0 -7
- package/dist/src/base/cargo-base-executor.untyped.d.mts +0 -5
- package/dist/src/base/cargo-base-executor.untyped.d.ts +0 -5
- package/dist/src/base/cargo-base-executor.untyped.js +0 -7
- package/dist/src/base/cargo-base-executor.untyped.mjs +0 -8
- package/dist/src/base/index.d.mts +0 -154
- package/dist/src/base/index.d.ts +0 -154
- package/dist/src/base/index.js +0 -48
- package/dist/src/base/index.mjs +0 -49
- package/dist/src/base/typescript-build-executor.untyped.d.mts +0 -5
- package/dist/src/base/typescript-build-executor.untyped.d.ts +0 -5
- package/dist/src/base/typescript-build-executor.untyped.js +0 -7
- package/dist/src/base/typescript-build-executor.untyped.mjs +0 -8
- package/dist/src/base/typescript-library-generator.untyped.d.mts +0 -5
- package/dist/src/base/typescript-library-generator.untyped.d.ts +0 -5
- package/dist/src/base/typescript-library-generator.untyped.js +0 -7
- package/dist/src/base/typescript-library-generator.untyped.mjs +0 -8
- package/dist/src/executors/cargo-build/executor.d.mts +0 -2
- package/dist/src/executors/cargo-build/executor.d.ts +0 -2
- package/dist/src/executors/cargo-build/executor.js +0 -15
- package/dist/src/executors/cargo-build/executor.mjs +0 -16
- package/dist/src/executors/cargo-build/schema.d.ts +0 -86
- package/dist/src/executors/cargo-build/schema.json +0 -85
- package/dist/src/executors/cargo-build/untyped.d.mts +0 -5
- package/dist/src/executors/cargo-build/untyped.d.ts +0 -5
- package/dist/src/executors/cargo-build/untyped.js +0 -25
- package/dist/src/executors/cargo-build/untyped.mjs +0 -26
- package/dist/src/executors/cargo-check/executor.d.mts +0 -2
- package/dist/src/executors/cargo-check/executor.d.ts +0 -2
- package/dist/src/executors/cargo-check/executor.js +0 -15
- package/dist/src/executors/cargo-check/executor.mjs +0 -16
- package/dist/src/executors/cargo-check/schema.d.ts +0 -88
- package/dist/src/executors/cargo-check/schema.json +0 -86
- package/dist/src/executors/cargo-check/untyped.d.mts +0 -5
- package/dist/src/executors/cargo-check/untyped.d.ts +0 -5
- package/dist/src/executors/cargo-check/untyped.js +0 -18
- package/dist/src/executors/cargo-check/untyped.mjs +0 -19
- package/dist/src/executors/cargo-clippy/executor.d.mts +0 -2
- package/dist/src/executors/cargo-clippy/executor.d.ts +0 -2
- package/dist/src/executors/cargo-clippy/executor.js +0 -15
- package/dist/src/executors/cargo-clippy/executor.mjs +0 -16
- package/dist/src/executors/cargo-clippy/schema.d.ts +0 -96
- package/dist/src/executors/cargo-clippy/schema.json +0 -92
- package/dist/src/executors/cargo-clippy/untyped.d.mts +0 -5
- package/dist/src/executors/cargo-clippy/untyped.d.ts +0 -5
- package/dist/src/executors/cargo-clippy/untyped.js +0 -25
- package/dist/src/executors/cargo-clippy/untyped.mjs +0 -26
- package/dist/src/executors/cargo-doc/executor.d.mts +0 -2
- package/dist/src/executors/cargo-doc/executor.d.ts +0 -2
- package/dist/src/executors/cargo-doc/executor.js +0 -15
- package/dist/src/executors/cargo-doc/executor.mjs +0 -16
- package/dist/src/executors/cargo-doc/schema.d.ts +0 -124
- package/dist/src/executors/cargo-doc/schema.json +0 -162
- package/dist/src/executors/cargo-doc/untyped.d.mts +0 -5
- package/dist/src/executors/cargo-doc/untyped.d.ts +0 -5
- package/dist/src/executors/cargo-doc/untyped.js +0 -50
- package/dist/src/executors/cargo-doc/untyped.mjs +0 -51
- package/dist/src/executors/cargo-format/executor.d.mts +0 -2
- package/dist/src/executors/cargo-format/executor.d.ts +0 -2
- package/dist/src/executors/cargo-format/executor.js +0 -15
- package/dist/src/executors/cargo-format/executor.mjs +0 -16
- package/dist/src/executors/cargo-format/schema.d.ts +0 -88
- package/dist/src/executors/cargo-format/schema.json +0 -86
- package/dist/src/executors/cargo-format/untyped.d.mts +0 -5
- package/dist/src/executors/cargo-format/untyped.d.ts +0 -5
- package/dist/src/executors/cargo-format/untyped.js +0 -18
- package/dist/src/executors/cargo-format/untyped.mjs +0 -19
- package/dist/src/executors/cargo-publish/executor.d.mts +0 -2
- package/dist/src/executors/cargo-publish/executor.d.ts +0 -2
- package/dist/src/executors/cargo-publish/executor.js +0 -10
- package/dist/src/executors/cargo-publish/executor.mjs +0 -11
- package/dist/src/executors/cargo-publish/schema.d.ts +0 -114
- package/dist/src/executors/cargo-publish/schema.json +0 -105
- package/dist/src/executors/cargo-publish/untyped.d.mts +0 -5
- package/dist/src/executors/cargo-publish/untyped.d.ts +0 -5
- package/dist/src/executors/cargo-publish/untyped.js +0 -40
- package/dist/src/executors/cargo-publish/untyped.mjs +0 -41
- package/dist/src/executors/clean-package/executor.d.mts +0 -13
- package/dist/src/executors/clean-package/executor.d.ts +0 -13
- package/dist/src/executors/clean-package/executor.js +0 -325
- package/dist/src/executors/clean-package/executor.mjs +0 -326
- package/dist/src/executors/clean-package/schema.d.ts +0 -59
- package/dist/src/executors/clean-package/schema.json +0 -55
- package/dist/src/executors/clean-package/untyped.d.mts +0 -5
- package/dist/src/executors/clean-package/untyped.d.ts +0 -5
- package/dist/src/executors/clean-package/untyped.js +0 -64
- package/dist/src/executors/clean-package/untyped.mjs +0 -65
- package/dist/src/executors/esbuild/executor.d.mts +0 -5
- package/dist/src/executors/esbuild/executor.d.ts +0 -5
- package/dist/src/executors/esbuild/executor.js +0 -15
- package/dist/src/executors/esbuild/executor.mjs +0 -16
- package/dist/src/executors/esbuild/schema.d.ts +0 -136
- package/dist/src/executors/esbuild/schema.json +0 -163
- package/dist/src/executors/esbuild/untyped.d.mts +0 -5
- package/dist/src/executors/esbuild/untyped.d.ts +0 -5
- package/dist/src/executors/esbuild/untyped.js +0 -27
- package/dist/src/executors/esbuild/untyped.mjs +0 -28
- package/dist/src/executors/napi/executor.d.mts +0 -5
- package/dist/src/executors/napi/executor.d.ts +0 -5
- package/dist/src/executors/napi/executor.js +0 -15
- package/dist/src/executors/napi/executor.mjs +0 -16
- package/dist/src/executors/napi/schema.d.ts +0 -282
- package/dist/src/executors/napi/schema.json +0 -235
- package/dist/src/executors/napi/untyped.d.mts +0 -5
- package/dist/src/executors/napi/untyped.d.ts +0 -5
- package/dist/src/executors/napi/untyped.js +0 -241
- package/dist/src/executors/napi/untyped.mjs +0 -242
- package/dist/src/executors/npm-publish/executor.d.mts +0 -2
- package/dist/src/executors/npm-publish/executor.d.ts +0 -2
- package/dist/src/executors/npm-publish/executor.js +0 -15
- package/dist/src/executors/npm-publish/executor.mjs +0 -16
- package/dist/src/executors/npm-publish/schema.d.ts +0 -68
- package/dist/src/executors/npm-publish/schema.json +0 -61
- package/dist/src/executors/npm-publish/untyped.d.mts +0 -5
- package/dist/src/executors/npm-publish/untyped.d.ts +0 -5
- package/dist/src/executors/npm-publish/untyped.js +0 -66
- package/dist/src/executors/npm-publish/untyped.mjs +0 -68
- package/dist/src/executors/size-limit/executor.d.mts +0 -5
- package/dist/src/executors/size-limit/executor.d.ts +0 -5
- package/dist/src/executors/size-limit/executor.js +0 -14
- package/dist/src/executors/size-limit/executor.mjs +0 -15
- package/dist/src/executors/size-limit/schema.d.ts +0 -24
- package/dist/src/executors/size-limit/schema.json +0 -26
- package/dist/src/executors/size-limit/untyped.d.mts +0 -5
- package/dist/src/executors/size-limit/untyped.d.ts +0 -5
- package/dist/src/executors/size-limit/untyped.js +0 -28
- package/dist/src/executors/size-limit/untyped.mjs +0 -29
- package/dist/src/executors/tsdown/executor.d.mts +0 -5
- package/dist/src/executors/tsdown/executor.d.ts +0 -5
- package/dist/src/executors/tsdown/executor.js +0 -15
- package/dist/src/executors/tsdown/executor.mjs +0 -16
- package/dist/src/executors/tsdown/schema.d.ts +0 -134
- package/dist/src/executors/tsdown/schema.json +0 -172
- package/dist/src/executors/tsdown/untyped.d.mts +0 -5
- package/dist/src/executors/tsdown/untyped.d.ts +0 -5
- package/dist/src/executors/tsdown/untyped.js +0 -18
- package/dist/src/executors/tsdown/untyped.mjs +0 -19
- package/dist/src/executors/typia/executor.d.mts +0 -5
- package/dist/src/executors/typia/executor.d.ts +0 -5
- package/dist/src/executors/typia/executor.js +0 -14
- package/dist/src/executors/typia/executor.mjs +0 -15
- package/dist/src/executors/typia/schema.d.ts +0 -48
- package/dist/src/executors/typia/schema.json +0 -57
- package/dist/src/executors/typia/untyped.d.mts +0 -5
- package/dist/src/executors/typia/untyped.d.ts +0 -5
- package/dist/src/executors/typia/untyped.js +0 -54
- package/dist/src/executors/typia/untyped.mjs +0 -55
- package/dist/src/executors/unbuild/executor.d.mts +0 -5
- package/dist/src/executors/unbuild/executor.d.ts +0 -5
- package/dist/src/executors/unbuild/executor.js +0 -14
- package/dist/src/executors/unbuild/executor.mjs +0 -15
- package/dist/src/executors/unbuild/schema.d.ts +0 -258
- package/dist/src/executors/unbuild/schema.json +0 -301
- package/dist/src/executors/unbuild/untyped.d.mts +0 -5
- package/dist/src/executors/unbuild/untyped.d.ts +0 -5
- package/dist/src/executors/unbuild/untyped.js +0 -158
- package/dist/src/executors/unbuild/untyped.mjs +0 -159
- package/dist/src/generators/browser-library/files/README.md +0 -58
- package/dist/src/generators/browser-library/files/jest.config.ts +0 -3
- package/dist/src/generators/browser-library/files/src/index.ts.template +0 -10
- package/dist/src/generators/browser-library/files/tsconfig.spec.json +0 -13
- package/dist/src/generators/browser-library/generator.d.mts +0 -7
- package/dist/src/generators/browser-library/generator.d.ts +0 -7
- package/dist/src/generators/browser-library/generator.js +0 -17
- package/dist/src/generators/browser-library/generator.mjs +0 -18
- package/dist/src/generators/browser-library/schema.d.ts +0 -122
- package/dist/src/generators/browser-library/schema.json +0 -117
- package/dist/src/generators/browser-library/untyped.d.mts +0 -5
- package/dist/src/generators/browser-library/untyped.d.ts +0 -5
- package/dist/src/generators/browser-library/untyped.js +0 -36
- package/dist/src/generators/browser-library/untyped.mjs +0 -37
- package/dist/src/generators/config-schema/generator.d.mts +0 -7
- package/dist/src/generators/config-schema/generator.d.ts +0 -7
- package/dist/src/generators/config-schema/generator.js +0 -14
- package/dist/src/generators/config-schema/generator.mjs +0 -15
- package/dist/src/generators/config-schema/schema.d.ts +0 -23
- package/dist/src/generators/config-schema/schema.json +0 -24
- package/dist/src/generators/config-schema/untyped.d.mts +0 -5
- package/dist/src/generators/config-schema/untyped.d.ts +0 -5
- package/dist/src/generators/config-schema/untyped.js +0 -25
- package/dist/src/generators/config-schema/untyped.mjs +0 -26
- package/dist/src/generators/init/init.d.mts +0 -2
- package/dist/src/generators/init/init.d.ts +0 -2
- package/dist/src/generators/init/init.js +0 -8
- package/dist/src/generators/init/init.mjs +0 -9
- package/dist/src/generators/init/schema.d.ts +0 -14
- package/dist/src/generators/init/schema.json +0 -15
- package/dist/src/generators/init/untyped.d.mts +0 -5
- package/dist/src/generators/init/untyped.d.ts +0 -5
- package/dist/src/generators/init/untyped.js +0 -19
- package/dist/src/generators/init/untyped.mjs +0 -21
- package/dist/src/generators/neutral-library/files/README.md +0 -58
- package/dist/src/generators/neutral-library/files/jest.config.ts +0 -3
- package/dist/src/generators/neutral-library/files/src/index.ts.template +0 -10
- package/dist/src/generators/neutral-library/files/tsconfig.spec.json +0 -13
- package/dist/src/generators/neutral-library/generator.d.mts +0 -7
- package/dist/src/generators/neutral-library/generator.d.ts +0 -7
- package/dist/src/generators/neutral-library/generator.js +0 -17
- package/dist/src/generators/neutral-library/generator.mjs +0 -18
- package/dist/src/generators/neutral-library/schema.d.ts +0 -122
- package/dist/src/generators/neutral-library/schema.json +0 -116
- package/dist/src/generators/neutral-library/untyped.d.mts +0 -5
- package/dist/src/generators/neutral-library/untyped.d.ts +0 -5
- package/dist/src/generators/neutral-library/untyped.js +0 -36
- package/dist/src/generators/neutral-library/untyped.mjs +0 -37
- package/dist/src/generators/node-library/files/README.md +0 -63
- package/dist/src/generators/node-library/files/jest.config.ts +0 -3
- package/dist/src/generators/node-library/files/src/index.ts.template +0 -10
- package/dist/src/generators/node-library/files/tsconfig.spec.json +0 -13
- package/dist/src/generators/node-library/generator.d.mts +0 -7
- package/dist/src/generators/node-library/generator.d.ts +0 -7
- package/dist/src/generators/node-library/generator.js +0 -17
- package/dist/src/generators/node-library/generator.mjs +0 -18
- package/dist/src/generators/node-library/schema.d.ts +0 -122
- package/dist/src/generators/node-library/schema.json +0 -117
- package/dist/src/generators/node-library/untyped.d.mts +0 -5
- package/dist/src/generators/node-library/untyped.d.ts +0 -5
- package/dist/src/generators/node-library/untyped.js +0 -36
- package/dist/src/generators/node-library/untyped.mjs +0 -37
- package/dist/src/generators/preset/files/LICENSE +0 -201
- package/dist/src/generators/preset/files/README.md.template +0 -282
- package/dist/src/generators/preset/files/docs/readme-templates/README.footer.md.template +0 -123
- package/dist/src/generators/preset/files/docs/readme-templates/README.header.md.template +0 -22
- package/dist/src/generators/preset/files/eslint.config.js.template +0 -7
- package/dist/src/generators/preset/files/knip.json +0 -20
- package/dist/src/generators/preset/files/lefthook.json +0 -106
- package/dist/src/generators/preset/files/nx.json +0 -7
- package/dist/src/generators/preset/files/pnpm-workspace.yaml +0 -6
- package/dist/src/generators/preset/files/socket.yaml +0 -20
- package/dist/src/generators/preset/files/storm.json.template +0 -12
- package/dist/src/generators/preset/files/tsconfig.base.json.template +0 -11
- package/dist/src/generators/preset/generator.d.mts +0 -7
- package/dist/src/generators/preset/generator.d.ts +0 -7
- package/dist/src/generators/preset/generator.js +0 -15
- package/dist/src/generators/preset/generator.mjs +0 -16
- package/dist/src/generators/preset/schema.d.ts +0 -101
- package/dist/src/generators/preset/schema.json +0 -96
- package/dist/src/generators/preset/untyped.d.mts +0 -5
- package/dist/src/generators/preset/untyped.d.ts +0 -5
- package/dist/src/generators/preset/untyped.js +0 -94
- package/dist/src/generators/preset/untyped.mjs +0 -95
- package/dist/src/plugins/rust/cargo-toml.d.mts +0 -47
- package/dist/src/plugins/rust/cargo-toml.d.ts +0 -47
- package/dist/src/plugins/rust/cargo-toml.js +0 -17
- package/dist/src/plugins/rust/cargo-toml.mjs +0 -18
- package/dist/src/plugins/rust/index.d.mts +0 -2
- package/dist/src/plugins/rust/index.d.ts +0 -2
- package/dist/src/plugins/rust/index.js +0 -17
- package/dist/src/plugins/rust/index.mjs +0 -18
- package/dist/src/plugins/typescript/index.d.mts +0 -64
- package/dist/src/plugins/typescript/index.d.ts +0 -64
- package/dist/src/plugins/typescript/index.js +0 -452
- package/dist/src/plugins/typescript/index.mjs +0 -453
- package/dist/src/plugins/typescript/tsdown.d.mts +0 -12
- package/dist/src/plugins/typescript/tsdown.d.ts +0 -12
- package/dist/src/plugins/typescript/tsdown.js +0 -178
- package/dist/src/plugins/typescript/tsdown.mjs +0 -179
- package/dist/src/plugins/typescript/tsup.d.mts +0 -12
- package/dist/src/plugins/typescript/tsup.d.ts +0 -12
- package/dist/src/plugins/typescript/tsup.js +0 -178
- package/dist/src/plugins/typescript/tsup.mjs +0 -179
- package/dist/src/plugins/typescript/untyped-schema.d.mts +0 -7
- package/dist/src/plugins/typescript/untyped-schema.d.ts +0 -7
- package/dist/src/plugins/typescript/untyped-schema.js +0 -151
- package/dist/src/plugins/typescript/untyped-schema.mjs +0 -152
- package/dist/src/release/index.d.mts +0 -11
- package/dist/src/release/index.d.ts +0 -11
- package/dist/src/release/index.js +0 -17
- package/dist/src/release/index.mjs +0 -18
- package/dist/src/release/js-version-actions.d.mts +0 -44
- package/dist/src/release/js-version-actions.d.ts +0 -44
- package/dist/src/release/js-version-actions.js +0 -10
- package/dist/src/release/js-version-actions.mjs +0 -11
- package/dist/src/release/rust-version-actions.d.mts +0 -56
- package/dist/src/release/rust-version-actions.d.ts +0 -56
- package/dist/src/release/rust-version-actions.js +0 -12
- package/dist/src/release/rust-version-actions.mjs +0 -13
- package/dist/src/types.d.mts +0 -5
- package/dist/src/types.d.ts +0 -5
- package/dist/src/types.js +0 -18
- package/dist/src/types.mjs +0 -19
- package/dist/src/utils/apply-workspace-tokens.d.mts +0 -11
- package/dist/src/utils/apply-workspace-tokens.d.ts +0 -11
- package/dist/src/utils/apply-workspace-tokens.js +0 -8
- package/dist/src/utils/apply-workspace-tokens.mjs +0 -9
- package/dist/src/utils/cargo.d.mts +0 -118
- package/dist/src/utils/cargo.d.ts +0 -118
- package/dist/src/utils/cargo.js +0 -22
- package/dist/src/utils/cargo.mjs +0 -23
- package/dist/src/utils/create-cli-options.d.mts +0 -3
- package/dist/src/utils/create-cli-options.d.ts +0 -3
- package/dist/src/utils/create-cli-options.js +0 -6
- package/dist/src/utils/create-cli-options.mjs +0 -7
- package/dist/src/utils/get-project-configurations.d.mts +0 -16
- package/dist/src/utils/get-project-configurations.d.ts +0 -16
- package/dist/src/utils/get-project-configurations.js +0 -10
- package/dist/src/utils/get-project-configurations.mjs +0 -11
- package/dist/src/utils/index.d.mts +0 -23
- package/dist/src/utils/index.d.ts +0 -23
- package/dist/src/utils/index.js +0 -153
- package/dist/src/utils/index.mjs +0 -154
- package/dist/src/utils/lock-file.d.mts +0 -29
- package/dist/src/utils/lock-file.d.ts +0 -29
- package/dist/src/utils/lock-file.js +0 -26
- package/dist/src/utils/lock-file.mjs +0 -27
- package/dist/src/utils/nx-json.d.mts +0 -33
- package/dist/src/utils/nx-json.d.ts +0 -33
- package/dist/src/utils/nx-json.js +0 -10
- package/dist/src/utils/nx-json.mjs +0 -11
- package/dist/src/utils/package-helpers.d.mts +0 -24
- package/dist/src/utils/package-helpers.d.ts +0 -24
- package/dist/src/utils/package-helpers.js +0 -14
- package/dist/src/utils/package-helpers.mjs +0 -15
- package/dist/src/utils/plugin-helpers.d.mts +0 -20
- package/dist/src/utils/plugin-helpers.d.ts +0 -20
- package/dist/src/utils/plugin-helpers.js +0 -15
- package/dist/src/utils/plugin-helpers.mjs +0 -16
- package/dist/src/utils/project-tags.d.mts +0 -68
- package/dist/src/utils/project-tags.d.ts +0 -68
- package/dist/src/utils/project-tags.js +0 -20
- package/dist/src/utils/project-tags.mjs +0 -21
- package/dist/src/utils/registry-helpers.d.mts +0 -11
- package/dist/src/utils/registry-helpers.d.ts +0 -11
- package/dist/src/utils/registry-helpers.js +0 -6
- package/dist/src/utils/registry-helpers.mjs +0 -7
- package/dist/src/utils/typia-transform.d.mts +0 -5
- package/dist/src/utils/typia-transform.d.ts +0 -5
- package/dist/src/utils/typia-transform.js +0 -6
- package/dist/src/utils/typia-transform.mjs +0 -7
- package/dist/src/utils/versions.d.mts +0 -20
- package/dist/src/utils/versions.d.ts +0 -20
- package/dist/src/utils/versions.js +0 -40
- package/dist/src/utils/versions.mjs +0 -41
- package/dist/types-CV8HM8Xo.d.mts +0 -115
- package/dist/types-D_RlE9_c.d.ts +0 -115
- package/dist/types-Dug-2iKz.d.mts +0 -243
- package/dist/types-Dug-2iKz.d.ts +0 -243
- package/docs/api/base/base-executor.schema.md +0 -15
- package/docs/api/base/base-generator.schema.md +0 -15
- package/docs/api/base/cargo-base-executor.schema.md +0 -89
- package/docs/api/base/typescript-build-executor.schema.md +0 -125
- package/docs/api/base/typescript-library-generator.schema.md +0 -129
- package/docs/api/executors/cargo-build/schema.md +0 -89
- package/docs/api/executors/cargo-check/schema.md +0 -89
- package/docs/api/executors/cargo-clippy/schema.md +0 -98
- package/docs/api/executors/cargo-doc/schema.md +0 -129
- package/docs/api/executors/cargo-format/schema.md +0 -89
- package/docs/api/executors/cargo-publish/schema.md +0 -116
- package/docs/api/executors/clean-package/schema.md +0 -64
- package/docs/api/executors/esbuild/schema.md +0 -125
- package/docs/api/executors/napi/schema.md +0 -300
- package/docs/api/executors/npm-publish/schema.md +0 -73
- package/docs/api/executors/size-limit/schema.md +0 -24
- package/docs/api/executors/tsdown/schema.md +0 -125
- package/docs/api/executors/typia/schema.md +0 -46
- package/docs/api/executors/unbuild/schema.md +0 -222
- package/docs/api/generators/browser-library/files/README.md +0 -58
- package/docs/api/generators/browser-library/schema.md +0 -129
- package/docs/api/generators/config-schema/schema.md +0 -25
- package/docs/api/generators/init/schema.md +0 -15
- package/docs/api/generators/neutral-library/files/README.md +0 -58
- package/docs/api/generators/neutral-library/schema.md +0 -129
- package/docs/api/generators/node-library/files/README.md +0 -63
- package/docs/api/generators/node-library/schema.md +0 -129
- package/docs/api/generators/preset/schema.md +0 -110
- package/executors.json +0 -69
- package/generators.json +0 -51
package/dist/chunk-AGR3NCGA.js
DELETED
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/logger/console.ts
|
|
2
|
-
var _formatDistanceToNow = require('date-fns/formatDistanceToNow');
|
|
3
|
-
|
|
4
|
-
// ../config-tools/src/types.ts
|
|
5
|
-
var LogLevel = {
|
|
6
|
-
SILENT: 0,
|
|
7
|
-
FATAL: 10,
|
|
8
|
-
ERROR: 20,
|
|
9
|
-
WARN: 30,
|
|
10
|
-
SUCCESS: 35,
|
|
11
|
-
INFO: 40,
|
|
12
|
-
PERFORMANCE: 50,
|
|
13
|
-
DEBUG: 60,
|
|
14
|
-
TRACE: 70,
|
|
15
|
-
ALL: 100
|
|
16
|
-
};
|
|
17
|
-
var LogLevelLabel = {
|
|
18
|
-
SILENT: "silent",
|
|
19
|
-
FATAL: "fatal",
|
|
20
|
-
ERROR: "error",
|
|
21
|
-
WARN: "warn",
|
|
22
|
-
SUCCESS: "success",
|
|
23
|
-
INFO: "info",
|
|
24
|
-
PERFORMANCE: "performance",
|
|
25
|
-
DEBUG: "debug",
|
|
26
|
-
TRACE: "trace",
|
|
27
|
-
ALL: "all"
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
// ../config-tools/src/utilities/colors.ts
|
|
31
|
-
var DEFAULT_COLOR_CONFIG = {
|
|
32
|
-
light: {
|
|
33
|
-
background: "#fafafa",
|
|
34
|
-
foreground: "#1d1e22",
|
|
35
|
-
brand: "#1fb2a6",
|
|
36
|
-
alternate: "#db2777",
|
|
37
|
-
help: "#5C4EE5",
|
|
38
|
-
success: "#087f5b",
|
|
39
|
-
info: "#0550ae",
|
|
40
|
-
debug: "#8afafc",
|
|
41
|
-
warning: "#e3b341",
|
|
42
|
-
danger: "#D8314A",
|
|
43
|
-
fatal: "#51070f",
|
|
44
|
-
performance: "#13c302",
|
|
45
|
-
link: "#3fa6ff",
|
|
46
|
-
positive: "#22c55e",
|
|
47
|
-
negative: "#dc2626",
|
|
48
|
-
gradient: ["#1fb2a6", "#db2777", "#5C4EE5"]
|
|
49
|
-
},
|
|
50
|
-
dark: {
|
|
51
|
-
background: "#1d1e22",
|
|
52
|
-
foreground: "#cbd5e1",
|
|
53
|
-
brand: "#2dd4bf",
|
|
54
|
-
alternate: "#db2777",
|
|
55
|
-
help: "#818cf8",
|
|
56
|
-
success: "#10b981",
|
|
57
|
-
info: "#58a6ff",
|
|
58
|
-
debug: "#8afafc",
|
|
59
|
-
warning: "#f3d371",
|
|
60
|
-
danger: "#D8314A",
|
|
61
|
-
fatal: "#a40e26",
|
|
62
|
-
performance: "#80fd74",
|
|
63
|
-
link: "#3fa6ff",
|
|
64
|
-
positive: "#22c55e",
|
|
65
|
-
negative: "#dc2626",
|
|
66
|
-
gradient: ["#1fb2a6", "#db2777", "#818cf8"]
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
function getColors(config) {
|
|
70
|
-
if (!_optionalChain([config, 'optionalAccess', _2 => _2.colors]) || typeof config.colors !== "object" || !config.colors["dark"] && (!config.colors["base"] || typeof config.colors !== "object" || !_optionalChain([config, 'access', _3 => _3.colors, 'access', _4 => _4["base"], 'optionalAccess', _5 => _5["dark"]]))) {
|
|
71
|
-
return DEFAULT_COLOR_CONFIG;
|
|
72
|
-
}
|
|
73
|
-
if (config.colors["base"]) {
|
|
74
|
-
if (typeof config.colors["base"]["dark"] === "object") {
|
|
75
|
-
return config.colors["base"]["dark"];
|
|
76
|
-
} else if (config.colors["base"]["dark"] === "string") {
|
|
77
|
-
return config.colors["base"];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (typeof config.colors["dark"] === "object") {
|
|
81
|
-
return config.colors["dark"];
|
|
82
|
-
}
|
|
83
|
-
return _nullishCoalesce(config.colors, () => ( DEFAULT_COLOR_CONFIG));
|
|
84
|
-
}
|
|
85
|
-
function getColor(key, config) {
|
|
86
|
-
const colors = getColors(config);
|
|
87
|
-
const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
|
|
88
|
-
if (result) {
|
|
89
|
-
return result;
|
|
90
|
-
}
|
|
91
|
-
if (key === "link" || key === "debug") {
|
|
92
|
-
return getColor("info", config);
|
|
93
|
-
} else if (key === "fatal") {
|
|
94
|
-
return getColor("danger", config);
|
|
95
|
-
}
|
|
96
|
-
return getColor("brand", config);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// ../config-tools/src/logger/chalk.ts
|
|
100
|
-
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
101
|
-
var chalkDefault = {
|
|
102
|
-
hex: (_) => (message) => message,
|
|
103
|
-
bgHex: (_) => ({
|
|
104
|
-
whiteBright: (message) => message,
|
|
105
|
-
white: (message) => message
|
|
106
|
-
}),
|
|
107
|
-
white: (message) => message,
|
|
108
|
-
whiteBright: (message) => message,
|
|
109
|
-
gray: (message) => message,
|
|
110
|
-
bold: {
|
|
111
|
-
hex: (_) => (message) => message,
|
|
112
|
-
bgHex: (_) => ({
|
|
113
|
-
whiteBright: (message) => message,
|
|
114
|
-
white: (message) => message
|
|
115
|
-
}),
|
|
116
|
-
whiteBright: (message) => message,
|
|
117
|
-
white: (message) => message
|
|
118
|
-
},
|
|
119
|
-
dim: {
|
|
120
|
-
hex: (_) => (message) => message,
|
|
121
|
-
gray: (message) => message
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
var getChalk = () => {
|
|
125
|
-
let _chalk = _chalk3.default;
|
|
126
|
-
if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _11 => _11.white])) {
|
|
127
|
-
_chalk = chalkDefault;
|
|
128
|
-
}
|
|
129
|
-
return _chalk;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
133
|
-
function isUnicodeSupported() {
|
|
134
|
-
if (process.platform !== "win32") {
|
|
135
|
-
return process.env.TERM !== "linux";
|
|
136
|
-
}
|
|
137
|
-
return Boolean(process.env.WT_SESSION) || // Windows Terminal
|
|
138
|
-
Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
139
|
-
process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
140
|
-
process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// ../config-tools/src/logger/console-icons.ts
|
|
144
|
-
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
145
|
-
var CONSOLE_ICONS = {
|
|
146
|
-
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
147
|
-
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
148
|
-
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
149
|
-
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
150
|
-
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
151
|
-
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
152
|
-
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
153
|
-
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
154
|
-
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
// ../config-tools/src/logger/format-timestamp.ts
|
|
158
|
-
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
159
|
-
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
// ../config-tools/src/logger/get-log-level.ts
|
|
163
|
-
var getLogLevel = (label) => {
|
|
164
|
-
switch (label) {
|
|
165
|
-
case "all":
|
|
166
|
-
return LogLevel.ALL;
|
|
167
|
-
case "trace":
|
|
168
|
-
return LogLevel.TRACE;
|
|
169
|
-
case "debug":
|
|
170
|
-
return LogLevel.DEBUG;
|
|
171
|
-
case "performance":
|
|
172
|
-
return LogLevel.PERFORMANCE;
|
|
173
|
-
case "info":
|
|
174
|
-
return LogLevel.INFO;
|
|
175
|
-
case "warn":
|
|
176
|
-
return LogLevel.WARN;
|
|
177
|
-
case "error":
|
|
178
|
-
return LogLevel.ERROR;
|
|
179
|
-
case "fatal":
|
|
180
|
-
return LogLevel.FATAL;
|
|
181
|
-
case "silent":
|
|
182
|
-
return LogLevel.SILENT;
|
|
183
|
-
default:
|
|
184
|
-
return LogLevel.INFO;
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
188
|
-
if (logLevel >= LogLevel.ALL) {
|
|
189
|
-
return LogLevelLabel.ALL;
|
|
190
|
-
}
|
|
191
|
-
if (logLevel >= LogLevel.TRACE) {
|
|
192
|
-
return LogLevelLabel.TRACE;
|
|
193
|
-
}
|
|
194
|
-
if (logLevel >= LogLevel.DEBUG) {
|
|
195
|
-
return LogLevelLabel.DEBUG;
|
|
196
|
-
}
|
|
197
|
-
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
198
|
-
return LogLevelLabel.PERFORMANCE;
|
|
199
|
-
}
|
|
200
|
-
if (logLevel >= LogLevel.INFO) {
|
|
201
|
-
return LogLevelLabel.INFO;
|
|
202
|
-
}
|
|
203
|
-
if (logLevel >= LogLevel.WARN) {
|
|
204
|
-
return LogLevelLabel.WARN;
|
|
205
|
-
}
|
|
206
|
-
if (logLevel >= LogLevel.ERROR) {
|
|
207
|
-
return LogLevelLabel.ERROR;
|
|
208
|
-
}
|
|
209
|
-
if (logLevel >= LogLevel.FATAL) {
|
|
210
|
-
return LogLevelLabel.FATAL;
|
|
211
|
-
}
|
|
212
|
-
if (logLevel <= LogLevel.SILENT) {
|
|
213
|
-
return LogLevelLabel.SILENT;
|
|
214
|
-
}
|
|
215
|
-
return LogLevelLabel.INFO;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
// ../config-tools/src/logger/console.ts
|
|
219
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
220
|
-
const {
|
|
221
|
-
chalk: _chalk = getChalk(),
|
|
222
|
-
fullDateTime = false,
|
|
223
|
-
hideDateTime = false
|
|
224
|
-
} = options;
|
|
225
|
-
const colors = !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13.dark]) && !_optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) && !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"], 'optionalAccess', _23 => _23.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _24 => _24.colors, 'optionalAccess', _25 => _25["base"]]) ? _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
226
|
-
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
227
|
-
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
228
|
-
return (_) => {
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
232
|
-
return (message) => {
|
|
233
|
-
console.error(
|
|
234
|
-
`
|
|
235
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal)))(
|
|
236
|
-
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
237
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
238
|
-
`
|
|
239
|
-
);
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
243
|
-
return (message) => {
|
|
244
|
-
console.error(
|
|
245
|
-
`
|
|
246
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger)))(
|
|
247
|
-
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
248
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
249
|
-
`
|
|
250
|
-
);
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
254
|
-
return (message) => {
|
|
255
|
-
console.warn(
|
|
256
|
-
`
|
|
257
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning)))(
|
|
258
|
-
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
259
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
260
|
-
`
|
|
261
|
-
);
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
265
|
-
return (message) => {
|
|
266
|
-
console.info(
|
|
267
|
-
`
|
|
268
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success)))(
|
|
269
|
-
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
270
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
271
|
-
`
|
|
272
|
-
);
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
276
|
-
return (message) => {
|
|
277
|
-
console.info(
|
|
278
|
-
`
|
|
279
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(
|
|
280
|
-
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
281
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
282
|
-
`
|
|
283
|
-
);
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
287
|
-
return (message) => {
|
|
288
|
-
console.debug(
|
|
289
|
-
`
|
|
290
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance)))(
|
|
291
|
-
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
292
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
293
|
-
`
|
|
294
|
-
);
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
298
|
-
return (message) => {
|
|
299
|
-
console.debug(
|
|
300
|
-
`
|
|
301
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug)))(
|
|
302
|
-
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
303
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
304
|
-
`
|
|
305
|
-
);
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
309
|
-
return (message) => {
|
|
310
|
-
console.debug(
|
|
311
|
-
`
|
|
312
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
313
|
-
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
314
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
315
|
-
`
|
|
316
|
-
);
|
|
317
|
-
};
|
|
318
|
-
}
|
|
319
|
-
return (message) => {
|
|
320
|
-
console.log(
|
|
321
|
-
`
|
|
322
|
-
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand)))(
|
|
323
|
-
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
324
|
-
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
325
|
-
`
|
|
326
|
-
);
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
|
|
330
|
-
var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
331
|
-
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
332
|
-
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
333
|
-
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
334
|
-
var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
|
|
335
|
-
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
336
|
-
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
337
|
-
var getStopwatch = (name) => {
|
|
338
|
-
const start = /* @__PURE__ */ new Date();
|
|
339
|
-
return () => {
|
|
340
|
-
writePerformance(
|
|
341
|
-
`The${name ? ` ${name}` : ""} process took ${_formatDistanceToNow.formatDistanceToNow.call(void 0, start, {
|
|
342
|
-
includeSeconds: true
|
|
343
|
-
})} to complete`
|
|
344
|
-
);
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
var MAX_DEPTH = 6;
|
|
348
|
-
var formatLogMessage = (message, options = {}, depth = 0) => {
|
|
349
|
-
if (depth > MAX_DEPTH) {
|
|
350
|
-
return "<max depth>";
|
|
351
|
-
}
|
|
352
|
-
const prefix = _nullishCoalesce(options.prefix, () => ( "-"));
|
|
353
|
-
const skip = _nullishCoalesce(options.skip, () => ( []));
|
|
354
|
-
return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
|
|
355
|
-
${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
|
|
356
|
-
${Object.keys(message).filter((key) => !skip.includes(key)).map(
|
|
357
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
|
|
358
|
-
message[key],
|
|
359
|
-
{ prefix: `${prefix}-`, skip },
|
|
360
|
-
depth + 1
|
|
361
|
-
) : message[key]}`
|
|
362
|
-
).join("\n")}` : message;
|
|
363
|
-
};
|
|
364
|
-
var _isFunction = (value) => {
|
|
365
|
-
try {
|
|
366
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _28 => _28.constructor]) && _optionalChain([value, 'optionalAccess', _29 => _29.call]) && _optionalChain([value, 'optionalAccess', _30 => _30.apply]));
|
|
367
|
-
} catch (e) {
|
|
368
|
-
return false;
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
exports.LogLevel = LogLevel; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage; exports.brandIcon = brandIcon;
|
package/dist/chunk-AH7KAAQJ.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-3J2CP54B.mjs";
|
|
4
|
-
|
|
5
|
-
// src/utils/get-project-configurations.ts
|
|
6
|
-
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
7
|
-
var getProjectConfigurations = async () => {
|
|
8
|
-
return retrieveProjectConfigurationsWithoutPluginInference(
|
|
9
|
-
findWorkspaceRoot()
|
|
10
|
-
);
|
|
11
|
-
};
|
|
12
|
-
var getProjectConfiguration = (projectName) => getProjectConfigurations()?.[projectName];
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
getProjectConfigurations,
|
|
16
|
-
getProjectConfiguration
|
|
17
|
-
};
|
package/dist/chunk-AKIVYTFU.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__ae061b4a7185c2ae441cbe7523ce12b4/node_modules/tsup/assets/esm_shims.js
|
|
2
|
-
import { fileURLToPath } from "url";
|
|
3
|
-
import path from "path";
|
|
4
|
-
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
|
-
var getDirname = () => path.dirname(getFilename());
|
|
6
|
-
var __dirname = /* @__PURE__ */ getDirname();
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
__dirname
|
|
10
|
-
};
|
package/dist/chunk-AMGMD43G.mjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseCargoToml
|
|
3
|
-
} from "./chunk-JCPIXJ3N.mjs";
|
|
4
|
-
import {
|
|
5
|
-
ProjectTagConstants,
|
|
6
|
-
isEqualProjectTag
|
|
7
|
-
} from "./chunk-AQ7B26V3.mjs";
|
|
8
|
-
import {
|
|
9
|
-
joinPaths
|
|
10
|
-
} from "./chunk-TBW5MCN6.mjs";
|
|
11
|
-
|
|
12
|
-
// src/utils/package-helpers.ts
|
|
13
|
-
import {
|
|
14
|
-
joinPathFragments,
|
|
15
|
-
readJsonFile
|
|
16
|
-
} from "@nx/devkit";
|
|
17
|
-
import { execFileSync } from "child_process";
|
|
18
|
-
import { existsSync } from "node:fs";
|
|
19
|
-
import { readFile, writeFile } from "node:fs/promises";
|
|
20
|
-
import { dirname, resolve } from "path";
|
|
21
|
-
import { format } from "prettier";
|
|
22
|
-
var PackageManagerTypes = {
|
|
23
|
-
PackageJson: "package.json",
|
|
24
|
-
CargoToml: "Cargo.toml"
|
|
25
|
-
};
|
|
26
|
-
var getPackageInfo = (project) => {
|
|
27
|
-
if (isEqualProjectTag(
|
|
28
|
-
project,
|
|
29
|
-
ProjectTagConstants.Language.TAG_ID,
|
|
30
|
-
ProjectTagConstants.Language.RUST
|
|
31
|
-
) && existsSync(joinPathFragments(project.root, "Cargo.toml"))) {
|
|
32
|
-
return {
|
|
33
|
-
type: "Cargo.toml",
|
|
34
|
-
content: parseCargoToml(joinPathFragments(project.root, "Cargo.toml"))
|
|
35
|
-
};
|
|
36
|
-
} else if (isEqualProjectTag(
|
|
37
|
-
project,
|
|
38
|
-
ProjectTagConstants.Language.TAG_ID,
|
|
39
|
-
ProjectTagConstants.Language.TYPESCRIPT
|
|
40
|
-
) && existsSync(joinPathFragments(project.root, "package.json"))) {
|
|
41
|
-
return {
|
|
42
|
-
type: "package.json",
|
|
43
|
-
content: readJsonFile(
|
|
44
|
-
joinPathFragments(project.root, "package.json")
|
|
45
|
-
)
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
return null;
|
|
49
|
-
};
|
|
50
|
-
async function addPackageJsonGitHead(packageRoot) {
|
|
51
|
-
const packageJsonPath = joinPaths(packageRoot, "package.json");
|
|
52
|
-
if (!packageJsonPath) {
|
|
53
|
-
throw new Error(
|
|
54
|
-
"No file path provided. Please provide a valid path to the package.json file."
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
const packageJsonValue = JSON.parse(await readFile(packageJsonPath, "utf8"));
|
|
58
|
-
if (!packageJsonValue || typeof packageJsonValue !== "object") {
|
|
59
|
-
throw new Error(
|
|
60
|
-
`Invalid package.json file at ${packageJsonPath}. Please ensure it is a valid JSON file.`
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
const gitHead = execFileSync("git", ["rev-parse", "HEAD"], {
|
|
64
|
-
cwd: dirname(resolve(packageJsonPath)),
|
|
65
|
-
encoding: "utf8"
|
|
66
|
-
}).trim();
|
|
67
|
-
packageJsonValue.gitHead = gitHead;
|
|
68
|
-
return writeFile(
|
|
69
|
-
packageJsonPath,
|
|
70
|
-
await format(JSON.stringify(packageJsonValue), {
|
|
71
|
-
parser: "json",
|
|
72
|
-
proseWrap: "preserve",
|
|
73
|
-
trailingComma: "none",
|
|
74
|
-
tabWidth: 2,
|
|
75
|
-
semi: true,
|
|
76
|
-
singleQuote: false,
|
|
77
|
-
quoteProps: "as-needed",
|
|
78
|
-
insertPragma: false,
|
|
79
|
-
bracketSameLine: true,
|
|
80
|
-
printWidth: 80,
|
|
81
|
-
bracketSpacing: true,
|
|
82
|
-
arrowParens: "avoid",
|
|
83
|
-
endOfLine: "lf",
|
|
84
|
-
plugins: ["prettier-plugin-packagejson"]
|
|
85
|
-
})
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export {
|
|
90
|
-
PackageManagerTypes,
|
|
91
|
-
getPackageInfo,
|
|
92
|
-
addPackageJsonGitHead
|
|
93
|
-
};
|
package/dist/chunk-ANHKV7HZ.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/utils/registry-helpers.ts
|
|
2
|
-
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
3
|
-
var getCrateRegistryVersion = (name, tag = "latest", registry = "https://crates.io") => {
|
|
4
|
-
return new Promise(
|
|
5
|
-
(resolve) => _https2.default.get(
|
|
6
|
-
`${registry}/api/v1/crates/${encodeURIComponent(name)}/${encodeURIComponent(
|
|
7
|
-
tag
|
|
8
|
-
)}`,
|
|
9
|
-
(res) => {
|
|
10
|
-
res.on("data", (d) => {
|
|
11
|
-
resolve(d);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
).on("error", (e) => {
|
|
15
|
-
throw e;
|
|
16
|
-
})
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
exports.getCrateRegistryVersion = getCrateRegistryVersion;
|
package/dist/chunk-AQ7B26V3.mjs
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
// src/utils/project-tags.ts
|
|
2
|
-
var ProjectTagConstants = {
|
|
3
|
-
Language: {
|
|
4
|
-
TAG_ID: "language",
|
|
5
|
-
TYPESCRIPT: "typescript",
|
|
6
|
-
RUST: "rust"
|
|
7
|
-
},
|
|
8
|
-
ProjectType: {
|
|
9
|
-
TAG_ID: "type",
|
|
10
|
-
LIBRARY: "library",
|
|
11
|
-
APPLICATION: "application"
|
|
12
|
-
},
|
|
13
|
-
ProjectLinking: {
|
|
14
|
-
TAG_ID: "project-linking",
|
|
15
|
-
REFERENCE: "reference",
|
|
16
|
-
ALIAS: "alias"
|
|
17
|
-
},
|
|
18
|
-
DistStyle: {
|
|
19
|
-
TAG_ID: "dist-style",
|
|
20
|
-
NORMAL: "normal",
|
|
21
|
-
CLEAN: "clean"
|
|
22
|
-
},
|
|
23
|
-
Provider: {
|
|
24
|
-
TAG_ID: "provider"
|
|
25
|
-
},
|
|
26
|
-
Platform: {
|
|
27
|
-
TAG_ID: "platform",
|
|
28
|
-
NODE: "node",
|
|
29
|
-
BROWSER: "browser",
|
|
30
|
-
NEUTRAL: "neutral",
|
|
31
|
-
WORKER: "worker"
|
|
32
|
-
},
|
|
33
|
-
Registry: {
|
|
34
|
-
TAG_ID: "registry",
|
|
35
|
-
CARGO: "cargo",
|
|
36
|
-
NPM: "npm",
|
|
37
|
-
CONTAINER: "container",
|
|
38
|
-
CYCLONE: "cyclone"
|
|
39
|
-
},
|
|
40
|
-
Plugin: {
|
|
41
|
-
TAG_ID: "plugin"
|
|
42
|
-
},
|
|
43
|
-
Builder: {
|
|
44
|
-
TAG_ID: "builder",
|
|
45
|
-
TSC: "tsc",
|
|
46
|
-
TSUP: "tsup",
|
|
47
|
-
TSDOWN: "tsdown",
|
|
48
|
-
VITE: "vite",
|
|
49
|
-
ROLLDOWN: "rolldown"
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
var formatProjectTag = (variant, value) => {
|
|
53
|
-
return `${variant}:${value}`;
|
|
54
|
-
};
|
|
55
|
-
var hasProjectTag = (project, variant) => {
|
|
56
|
-
project.tags = project.tags ?? [];
|
|
57
|
-
const prefix = formatProjectTag(variant, "");
|
|
58
|
-
return project.tags.some(
|
|
59
|
-
(tag) => tag.startsWith(prefix) && tag.length > prefix.length
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
var getProjectTag = (project, variant) => {
|
|
63
|
-
if (!hasProjectTag(project, variant)) {
|
|
64
|
-
return void 0;
|
|
65
|
-
}
|
|
66
|
-
project.tags = project.tags ?? [];
|
|
67
|
-
const prefix = formatProjectTag(variant, "");
|
|
68
|
-
const tag = project.tags.find((tag2) => tag2.startsWith(prefix));
|
|
69
|
-
return tag?.replace(prefix, "");
|
|
70
|
-
};
|
|
71
|
-
var isEqualProjectTag = (project, variant, value) => {
|
|
72
|
-
const tag = getProjectTag(project, variant);
|
|
73
|
-
return !!(tag && tag?.toUpperCase() === value.toUpperCase());
|
|
74
|
-
};
|
|
75
|
-
var addProjectTag = (project, variant, value, options = {
|
|
76
|
-
overwrite: false
|
|
77
|
-
}) => {
|
|
78
|
-
project.tags = project.tags ?? [];
|
|
79
|
-
if (options.overwrite || !hasProjectTag(project, variant)) {
|
|
80
|
-
project.tags = project.tags.filter(
|
|
81
|
-
(tag) => !tag.startsWith(formatProjectTag(variant, ""))
|
|
82
|
-
);
|
|
83
|
-
project.tags.push(formatProjectTag(variant, value));
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
var addPluginProjectTag = (project, plugin) => {
|
|
87
|
-
project.tags = project.tags ?? [];
|
|
88
|
-
project.tags.push(
|
|
89
|
-
formatProjectTag(ProjectTagConstants.Plugin.TAG_ID, plugin)
|
|
90
|
-
);
|
|
91
|
-
};
|
|
92
|
-
var setDefaultProjectTags = (project, plugin) => {
|
|
93
|
-
project.tags = project.tags ?? [];
|
|
94
|
-
addProjectTag(
|
|
95
|
-
project,
|
|
96
|
-
ProjectTagConstants.ProjectType.TAG_ID,
|
|
97
|
-
project.projectType === "application" ? ProjectTagConstants.ProjectType.APPLICATION : ProjectTagConstants.ProjectType.LIBRARY,
|
|
98
|
-
{ overwrite: true }
|
|
99
|
-
);
|
|
100
|
-
addProjectTag(
|
|
101
|
-
project,
|
|
102
|
-
ProjectTagConstants.DistStyle.TAG_ID,
|
|
103
|
-
project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL,
|
|
104
|
-
{ overwrite: true }
|
|
105
|
-
);
|
|
106
|
-
addProjectTag(
|
|
107
|
-
project,
|
|
108
|
-
ProjectTagConstants.Platform.TAG_ID,
|
|
109
|
-
project.targets?.build?.options?.platform === "node" ? ProjectTagConstants.Platform.NODE : project.targets?.build?.options?.platform === "worker" ? ProjectTagConstants.Platform.WORKER : project.targets?.build?.options?.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL,
|
|
110
|
-
{ overwrite: false }
|
|
111
|
-
);
|
|
112
|
-
if (plugin) {
|
|
113
|
-
addPluginProjectTag(project, plugin);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export {
|
|
118
|
-
ProjectTagConstants,
|
|
119
|
-
formatProjectTag,
|
|
120
|
-
hasProjectTag,
|
|
121
|
-
getProjectTag,
|
|
122
|
-
isEqualProjectTag,
|
|
123
|
-
addProjectTag,
|
|
124
|
-
addPluginProjectTag,
|
|
125
|
-
setDefaultProjectTags
|
|
126
|
-
};
|