@storm-software/workspace-tools 1.295.84 → 1.295.86
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 +16 -16
- package/CHANGELOG.md +0 -13094
- 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 -324
- package/config/recommended.json +0 -328
- package/dist/chunk-2AVWFUXP.js +0 -112
- package/dist/chunk-2CXXVFU4.js +0 -213
- package/dist/chunk-2GQSCZ3J.mjs +0 -128
- package/dist/chunk-2L7ICILU.js +0 -364
- package/dist/chunk-2QMGYIOO.mjs +0 -81
- package/dist/chunk-32KQVUCF.js +0 -163
- package/dist/chunk-34LSWMWV.mjs +0 -20
- package/dist/chunk-35ERFW7I.mjs +0 -150
- package/dist/chunk-35G4LHK2.mjs +0 -1510
- package/dist/chunk-3J2CP54B.mjs +0 -100
- package/dist/chunk-437WGH2M.mjs +0 -32
- package/dist/chunk-4AKDRRML.js +0 -339
- package/dist/chunk-4AR5RJMF.mjs +0 -402
- package/dist/chunk-4VWDSVQJ.mjs +0 -321
- package/dist/chunk-57OGFZNB.js +0 -321
- package/dist/chunk-5GZC2PF6.mjs +0 -0
- package/dist/chunk-5JYAH2VL.mjs +0 -388
- package/dist/chunk-5OS7GV5T.mjs +0 -51
- package/dist/chunk-6EMYX25V.js +0 -7
- package/dist/chunk-6HJ4EEBB.js +0 -102
- package/dist/chunk-6IXJEWJR.js +0 -93
- 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-7MM5MBEP.mjs +0 -32
- package/dist/chunk-AH7KAAQJ.mjs +0 -17
- package/dist/chunk-ALL63TSY.mjs +0 -110
- package/dist/chunk-ANHKV7HZ.js +0 -22
- package/dist/chunk-AY3HOPOX.js +0 -41
- package/dist/chunk-BAPFD3TO.js +0 -79
- package/dist/chunk-BAYA5SVP.mjs +0 -319
- package/dist/chunk-BT7OBRJT.mjs +0 -76
- package/dist/chunk-C3TC7AUW.js +0 -1
- package/dist/chunk-CBVZ57E6.js +0 -150
- package/dist/chunk-CQDBLKPF.js +0 -172
- package/dist/chunk-CQIILJEF.js +0 -1510
- package/dist/chunk-DEP6TIXL.js +0 -50
- package/dist/chunk-DIUWF7BW.js +0 -17
- package/dist/chunk-DJZX3XBE.mjs +0 -105
- package/dist/chunk-EGI64HQ2.mjs +0 -22
- package/dist/chunk-EMX7LTEI.mjs +0 -50
- package/dist/chunk-EQMVQ3I7.mjs +0 -213
- package/dist/chunk-ETSIRKO5.js +0 -79
- package/dist/chunk-EYO6EPEG.mjs +0 -93
- package/dist/chunk-FFEJNAFP.js +0 -250
- package/dist/chunk-FPNWNZUL.mjs +0 -253
- package/dist/chunk-FQX7ZBQS.mjs +0 -32
- package/dist/chunk-GCDDSEDG.mjs +0 -540
- package/dist/chunk-GED6QYLK.mjs +0 -117
- package/dist/chunk-GHQJKIMQ.mjs +0 -0
- package/dist/chunk-GKLFEOKK.mjs +0 -163
- package/dist/chunk-GTBTSMUH.mjs +0 -10
- package/dist/chunk-GZA2CV3C.js +0 -402
- package/dist/chunk-HECOVC7R.mjs +0 -82
- package/dist/chunk-HXQRGLII.js +0 -81
- package/dist/chunk-IETUQQJT.mjs +0 -52
- package/dist/chunk-IIFXLZEH.js +0 -319
- package/dist/chunk-JDDKEYTF.js +0 -469
- package/dist/chunk-JGP4YWZY.js +0 -1
- package/dist/chunk-JPOHRWVM.mjs +0 -31
- package/dist/chunk-K4QMCCQB.mjs +0 -79
- package/dist/chunk-KBJ7IEXI.js +0 -1
- package/dist/chunk-KR72GKIT.mjs +0 -7
- package/dist/chunk-LMYTVXGX.js +0 -100
- package/dist/chunk-LQHVZMFV.js +0 -79
- package/dist/chunk-LULOWPU2.js +0 -110
- package/dist/chunk-LZ3H2OH5.mjs +0 -158
- package/dist/chunk-MNA3AU4B.mjs +0 -49
- package/dist/chunk-NUGNYGBF.js +0 -105
- package/dist/chunk-O7Z2YGFU.js +0 -52
- package/dist/chunk-OBATTMGC.mjs +0 -105
- package/dist/chunk-OKSECMVK.js +0 -32
- package/dist/chunk-P56QF3XG.js +0 -74
- package/dist/chunk-P5P43FOZ.mjs +0 -0
- package/dist/chunk-P6HSE7LH.js +0 -1
- package/dist/chunk-PB5565L7.js +0 -37
- package/dist/chunk-PICVMVJQ.mjs +0 -364
- package/dist/chunk-PMPKOMMD.js +0 -158
- package/dist/chunk-PRW5IUAC.js +0 -31
- package/dist/chunk-QC5ON3X4.mjs +0 -40
- package/dist/chunk-QQB6GFYM.mjs +0 -79
- package/dist/chunk-QSNWB7A5.mjs +0 -41
- package/dist/chunk-QVYCDING.js +0 -23
- package/dist/chunk-RCSUK5YZ.mjs +0 -77
- package/dist/chunk-S2KOD2HL.mjs +0 -128
- package/dist/chunk-SAIDGUHG.mjs +0 -0
- package/dist/chunk-SGI4JCLV.js +0 -540
- package/dist/chunk-SW2E5MQJ.mjs +0 -112
- package/dist/chunk-SZWM7COV.js +0 -40
- package/dist/chunk-TAP26ZJQ.js +0 -128
- package/dist/chunk-TBW5MCN6.mjs +0 -172
- package/dist/chunk-THA4SGMV.js +0 -32
- package/dist/chunk-TM2CRDJW.js +0 -148
- package/dist/chunk-U5JPGO47.js +0 -117
- package/dist/chunk-UBVTASOE.mjs +0 -62
- package/dist/chunk-UV6QIFS3.js +0 -388
- package/dist/chunk-V5K2PDVY.mjs +0 -339
- package/dist/chunk-VC4FGY7P.js +0 -49
- package/dist/chunk-VXHOSAQ7.js +0 -62
- package/dist/chunk-W2C5IGWW.mjs +0 -23
- package/dist/chunk-WJ5AG2IU.js +0 -76
- package/dist/chunk-WQUWUZZ4.mjs +0 -32
- package/dist/chunk-WTWQAZUM.js +0 -128
- package/dist/chunk-X2UWPTFU.mjs +0 -37
- package/dist/chunk-X3HC3R2I.js +0 -51
- package/dist/chunk-XNHWWPSK.js +0 -32
- package/dist/chunk-YRGMZRC3.mjs +0 -469
- package/dist/chunk-YYLV7UA6.js +0 -1
- package/dist/chunk-ZCTECGQS.mjs +0 -21
- package/dist/chunk-ZYI527ZS.js +0 -32
- 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-B9nl4zZh.d.mts +0 -38
- package/dist/generator-BKKfRfw5.d.mts +0 -108
- package/dist/generator-CKzlyVl8.d.ts +0 -38
- package/dist/generator-CPAEsIX9.d.ts +0 -108
- package/dist/generator-Ce5Jjv19.d.mts +0 -130
- package/dist/generator-DMnwA7AM.d.ts +0 -130
- package/dist/generator-DN9Th4ZG.d.ts +0 -130
- package/dist/generator-DVJjzR9Q.d.mts +0 -130
- package/dist/generator-DX2foast.d.ts +0 -130
- package/dist/generator-rIlu4Sq2.d.mts +0 -130
- package/dist/generators.d.mts +0 -13
- package/dist/generators.d.ts +0 -13
- package/dist/generators.js +0 -36
- package/dist/generators.mjs +0 -37
- package/dist/index.d.mts +0 -61
- package/dist/index.d.ts +0 -61
- 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 -11
- package/dist/src/base/base-executor.d.ts +0 -11
- 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 -11
- package/dist/src/base/base-generator.d.ts +0 -11
- 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 -155
- package/dist/src/base/index.d.ts +0 -155
- 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.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.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.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.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.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.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/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/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/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/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/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/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/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/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 -8
- package/dist/src/generators/browser-library/generator.d.ts +0 -8
- 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/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 -8
- package/dist/src/generators/config-schema/generator.d.ts +0 -8
- 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/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/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 -8
- package/dist/src/generators/neutral-library/generator.d.ts +0 -8
- 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/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 -8
- package/dist/src/generators/node-library/generator.d.ts +0 -8
- 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/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 -8
- package/dist/src/generators/preset/generator.d.ts +0 -8
- package/dist/src/generators/preset/generator.js +0 -15
- package/dist/src/generators/preset/generator.mjs +0 -16
- 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 -65
- package/dist/src/plugins/typescript/index.d.ts +0 -65
- 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 -13
- package/dist/src/plugins/typescript/tsdown.d.ts +0 -13
- 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 -13
- package/dist/src/plugins/typescript/tsup.d.ts +0 -13
- 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 -6
- package/dist/src/types.d.ts +0 -6
- 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 -19
- package/dist/src/utils/index.d.ts +0 -19
- 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 -65
- package/dist/src/utils/project-tags.d.ts +0 -65
- 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-Bvfw-xMk.d.ts +0 -77
- package/dist/types-D2zxYEAh.d.mts +0 -41
- package/dist/types-D2zxYEAh.d.ts +0 -41
- package/dist/types-DLXcfy35.d.mts +0 -77
- 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-GCDDSEDG.mjs
DELETED
|
@@ -1,540 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
addPackageJsonGitHead
|
|
3
|
-
} from "./chunk-EYO6EPEG.mjs";
|
|
4
|
-
import {
|
|
5
|
-
getConfig
|
|
6
|
-
} from "./chunk-35G4LHK2.mjs";
|
|
7
|
-
import {
|
|
8
|
-
findWorkspaceRoot
|
|
9
|
-
} from "./chunk-3J2CP54B.mjs";
|
|
10
|
-
import {
|
|
11
|
-
joinPaths
|
|
12
|
-
} from "./chunk-TBW5MCN6.mjs";
|
|
13
|
-
|
|
14
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
15
|
-
import { exec } from "node:child_process";
|
|
16
|
-
|
|
17
|
-
// ../npm-tools/src/constants.ts
|
|
18
|
-
var DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
19
|
-
|
|
20
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
21
|
-
async function getRegistry(executable = "npm") {
|
|
22
|
-
return new Promise((resolve, reject) => {
|
|
23
|
-
exec(`${executable} config get registry`, (error, stdout, stderr) => {
|
|
24
|
-
if (error && !error.message.toLowerCase().trim().startsWith("npm warn")) {
|
|
25
|
-
return reject(error);
|
|
26
|
-
}
|
|
27
|
-
if (stderr && !stderr.toLowerCase().trim().startsWith("npm warn")) {
|
|
28
|
-
return reject(stderr);
|
|
29
|
-
}
|
|
30
|
-
return resolve(stdout.trim());
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
async function getNpmRegistry() {
|
|
35
|
-
if (process.env.STORM_REGISTRY_NPM) {
|
|
36
|
-
return process.env.STORM_REGISTRY_NPM;
|
|
37
|
-
}
|
|
38
|
-
const workspaceConfig = await getConfig();
|
|
39
|
-
if (workspaceConfig?.registry?.npm) {
|
|
40
|
-
return workspaceConfig?.registry?.npm;
|
|
41
|
-
}
|
|
42
|
-
return DEFAULT_NPM_REGISTRY;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
46
|
-
import {
|
|
47
|
-
createProjectGraphAsync,
|
|
48
|
-
readCachedProjectGraph
|
|
49
|
-
} from "@nx/devkit";
|
|
50
|
-
import { existsSync as existsSync2 } from "node:fs";
|
|
51
|
-
import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
52
|
-
import { format } from "prettier";
|
|
53
|
-
|
|
54
|
-
// ../npm-tools/src/helpers/get-version.ts
|
|
55
|
-
import { exec as exec2 } from "node:child_process";
|
|
56
|
-
|
|
57
|
-
// ../pnpm-tools/src/helpers/catalog.ts
|
|
58
|
-
import { coerce, gt, valid } from "semver";
|
|
59
|
-
|
|
60
|
-
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
61
|
-
import { existsSync } from "node:fs";
|
|
62
|
-
import { readFile, writeFile } from "node:fs/promises";
|
|
63
|
-
import { parse, stringify } from "yaml";
|
|
64
|
-
function getPnpmWorkspaceFilePath(workspaceRoot = findWorkspaceRoot(process.cwd())) {
|
|
65
|
-
const pnpmWorkspacePath = joinPaths(workspaceRoot, "pnpm-workspace.yaml");
|
|
66
|
-
if (!existsSync(pnpmWorkspacePath)) {
|
|
67
|
-
throw new Error(
|
|
68
|
-
`No \`pnpm-workspace.yaml\` file found in workspace root (searched in: ${pnpmWorkspacePath}).`
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
return pnpmWorkspacePath;
|
|
72
|
-
}
|
|
73
|
-
async function readPnpmWorkspaceFile(workspaceRoot = findWorkspaceRoot(process.cwd())) {
|
|
74
|
-
const result = await readFile(
|
|
75
|
-
getPnpmWorkspaceFilePath(workspaceRoot),
|
|
76
|
-
"utf8"
|
|
77
|
-
);
|
|
78
|
-
if (!result) {
|
|
79
|
-
return void 0;
|
|
80
|
-
}
|
|
81
|
-
return parse(result);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// ../pnpm-tools/src/helpers/catalog.ts
|
|
85
|
-
async function getCatalogSafe(workspaceRoot = findWorkspaceRoot(process.cwd())) {
|
|
86
|
-
const pnpmWorkspaceFile = await readPnpmWorkspaceFile(workspaceRoot);
|
|
87
|
-
if (!pnpmWorkspaceFile) {
|
|
88
|
-
throw new Error("No pnpm-workspace.yaml file found");
|
|
89
|
-
}
|
|
90
|
-
if (pnpmWorkspaceFile?.catalog) {
|
|
91
|
-
return Object.fromEntries(
|
|
92
|
-
Object.entries(pnpmWorkspaceFile.catalog).map(([key, value]) => {
|
|
93
|
-
return [key, value.replaceAll('"', "").replaceAll("'", "")];
|
|
94
|
-
})
|
|
95
|
-
);
|
|
96
|
-
} else {
|
|
97
|
-
console.warn(
|
|
98
|
-
`No catalog found in pnpm-workspace.yaml file located in workspace root: ${workspaceRoot}
|
|
99
|
-
File content: ${JSON.stringify(
|
|
100
|
-
pnpmWorkspaceFile,
|
|
101
|
-
null,
|
|
102
|
-
2
|
|
103
|
-
)}`
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
return void 0;
|
|
107
|
-
}
|
|
108
|
-
async function getCatalog(workspaceRoot = findWorkspaceRoot(process.cwd())) {
|
|
109
|
-
const catalog = await getCatalogSafe(workspaceRoot);
|
|
110
|
-
if (!catalog) {
|
|
111
|
-
throw new Error("No catalog entries found in pnpm-workspace.yaml file");
|
|
112
|
-
}
|
|
113
|
-
return catalog;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
117
|
-
async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = findWorkspaceRoot(packageRoot)) {
|
|
118
|
-
const packageJsonPath = joinPaths(packageRoot, "package.json");
|
|
119
|
-
const packageJsonFile = await readFile2(packageJsonPath, "utf8");
|
|
120
|
-
if (!packageJsonFile) {
|
|
121
|
-
throw new Error(
|
|
122
|
-
"No package.json file found in package root: " + packageRoot
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
const catalog = await getCatalog(workspaceRoot);
|
|
126
|
-
const packageJson = JSON.parse(packageJsonFile);
|
|
127
|
-
const pnpmWorkspacePath = joinPaths(workspaceRoot, "pnpm-workspace.yaml");
|
|
128
|
-
if (!existsSync2(pnpmWorkspacePath)) {
|
|
129
|
-
console.warn(
|
|
130
|
-
`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${pnpmWorkspacePath}). Skipping pnpm catalog read for now.`
|
|
131
|
-
);
|
|
132
|
-
return packageJson;
|
|
133
|
-
}
|
|
134
|
-
if (!catalog) {
|
|
135
|
-
console.warn(
|
|
136
|
-
`No pnpm catalog found. Skipping dependencies replacement for now.`
|
|
137
|
-
);
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
for (const dependencyType of [
|
|
141
|
-
"dependencies",
|
|
142
|
-
"devDependencies",
|
|
143
|
-
"peerDependencies"
|
|
144
|
-
]) {
|
|
145
|
-
const dependencies = packageJson[dependencyType];
|
|
146
|
-
if (!dependencies) {
|
|
147
|
-
continue;
|
|
148
|
-
}
|
|
149
|
-
for (const dependencyName of Object.keys(dependencies)) {
|
|
150
|
-
if (dependencies[dependencyName] === "catalog:") {
|
|
151
|
-
if (!catalog) {
|
|
152
|
-
throw new Error(
|
|
153
|
-
`Dependency ${dependencyName} is marked as \`catalog:\`, but no catalog exists in the workspace root's \`pnpm-workspace.yaml\` file.`
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
const catalogVersion = catalog[dependencyName];
|
|
157
|
-
if (!catalogVersion) {
|
|
158
|
-
throw new Error("Missing pnpm catalog version for " + dependencyName);
|
|
159
|
-
}
|
|
160
|
-
dependencies[dependencyName] = catalogVersion;
|
|
161
|
-
} else if (dependencies[dependencyName].startsWith("catalog:")) {
|
|
162
|
-
throw new Error("multiple named catalogs not supported");
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
let projectGraph;
|
|
167
|
-
try {
|
|
168
|
-
projectGraph = readCachedProjectGraph();
|
|
169
|
-
} catch {
|
|
170
|
-
await createProjectGraphAsync();
|
|
171
|
-
projectGraph = readCachedProjectGraph();
|
|
172
|
-
}
|
|
173
|
-
const workspacePackages = {};
|
|
174
|
-
if (projectGraph) {
|
|
175
|
-
await Promise.all(
|
|
176
|
-
Object.keys(projectGraph.nodes).map(async (node) => {
|
|
177
|
-
const projectNode = projectGraph.nodes[node];
|
|
178
|
-
if (projectNode?.data.root) {
|
|
179
|
-
const projectPackageJsonPath = joinPaths(
|
|
180
|
-
workspaceRoot,
|
|
181
|
-
projectNode.data.root,
|
|
182
|
-
"package.json"
|
|
183
|
-
);
|
|
184
|
-
if (existsSync2(projectPackageJsonPath)) {
|
|
185
|
-
const projectPackageJsonContent = await readFile2(
|
|
186
|
-
projectPackageJsonPath,
|
|
187
|
-
"utf8"
|
|
188
|
-
);
|
|
189
|
-
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
190
|
-
if (projectPackageJson.private !== true) {
|
|
191
|
-
workspacePackages[projectPackageJson.name] = projectPackageJson.version;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
})
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
for (const dependencyType of [
|
|
199
|
-
"dependencies",
|
|
200
|
-
"devDependencies",
|
|
201
|
-
"peerDependencies"
|
|
202
|
-
]) {
|
|
203
|
-
const dependencies = packageJson[dependencyType];
|
|
204
|
-
if (!dependencies) {
|
|
205
|
-
continue;
|
|
206
|
-
}
|
|
207
|
-
for (const dependencyName of Object.keys(dependencies)) {
|
|
208
|
-
if (dependencies[dependencyName].startsWith("workspace:")) {
|
|
209
|
-
if (workspacePackages[dependencyName]) {
|
|
210
|
-
dependencies[dependencyName] = `^${workspacePackages[dependencyName]}`;
|
|
211
|
-
} else {
|
|
212
|
-
throw new Error(
|
|
213
|
-
`Workspace dependency ${dependencyName} not found in workspace packages.`
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return writeFile2(
|
|
220
|
-
packageJsonPath,
|
|
221
|
-
await format(JSON.stringify(packageJson), {
|
|
222
|
-
parser: "json",
|
|
223
|
-
proseWrap: "preserve",
|
|
224
|
-
trailingComma: "none",
|
|
225
|
-
tabWidth: 2,
|
|
226
|
-
semi: true,
|
|
227
|
-
singleQuote: false,
|
|
228
|
-
quoteProps: "as-needed",
|
|
229
|
-
insertPragma: false,
|
|
230
|
-
bracketSameLine: true,
|
|
231
|
-
printWidth: 80,
|
|
232
|
-
bracketSpacing: true,
|
|
233
|
-
arrowParens: "avoid",
|
|
234
|
-
endOfLine: "lf",
|
|
235
|
-
plugins: ["prettier-plugin-packagejson"]
|
|
236
|
-
})
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// src/executors/npm-publish/executor.ts
|
|
241
|
-
import { execSync } from "node:child_process";
|
|
242
|
-
import { readFile as readFile3, writeFile as writeFile3 } from "node:fs/promises";
|
|
243
|
-
import { format as format2 } from "prettier";
|
|
244
|
-
var LARGE_BUFFER = 1024 * 1e6;
|
|
245
|
-
async function npmPublishExecutorFn(options, context) {
|
|
246
|
-
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
247
|
-
if (!context.projectName) {
|
|
248
|
-
throw new Error("The `npm-publish` executor requires a `projectName`.");
|
|
249
|
-
}
|
|
250
|
-
const projectConfig = context.projectsConfigurations?.projects?.[context.projectName];
|
|
251
|
-
if (!projectConfig) {
|
|
252
|
-
throw new Error(
|
|
253
|
-
`Could not find project configuration for \`${context.projectName}\``
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
const packageRoot = joinPaths(
|
|
257
|
-
context.root,
|
|
258
|
-
options.packageRoot || joinPaths("dist", projectConfig.root)
|
|
259
|
-
);
|
|
260
|
-
const projectRoot = context.projectsConfigurations.projects[context.projectName]?.root ? joinPaths(
|
|
261
|
-
context.root,
|
|
262
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
263
|
-
context.projectsConfigurations.projects[context.projectName].root
|
|
264
|
-
) : packageRoot;
|
|
265
|
-
const packageJsonPath = joinPaths(packageRoot, "package.json");
|
|
266
|
-
const packageJsonFile = await readFile3(packageJsonPath, "utf8");
|
|
267
|
-
if (!packageJsonFile) {
|
|
268
|
-
throw new Error(`Could not find \`package.json\` at ${packageJsonPath}`);
|
|
269
|
-
}
|
|
270
|
-
const packageJson = JSON.parse(packageJsonFile);
|
|
271
|
-
const projectPackageJsonPath = joinPaths(projectRoot, "package.json");
|
|
272
|
-
const projectPackageJsonFile = await readFile3(projectPackageJsonPath, "utf8");
|
|
273
|
-
if (!projectPackageJsonFile) {
|
|
274
|
-
throw new Error(
|
|
275
|
-
`Could not find \`package.json\` at ${projectPackageJsonPath}`
|
|
276
|
-
);
|
|
277
|
-
}
|
|
278
|
-
const projectPackageJson = JSON.parse(projectPackageJsonFile);
|
|
279
|
-
if (packageJson.version !== projectPackageJson.version) {
|
|
280
|
-
console.warn(
|
|
281
|
-
`The version in the package.json file at ${packageJsonPath} (current: ${packageJson.version}) does not match the version in the package.json file at ${projectPackageJsonPath} (current: ${projectPackageJson.version}). This file will be updated to match the version in the project package.json file.`
|
|
282
|
-
);
|
|
283
|
-
if (projectPackageJson.version) {
|
|
284
|
-
packageJson.version = projectPackageJson.version;
|
|
285
|
-
await writeFile3(
|
|
286
|
-
packageJsonPath,
|
|
287
|
-
await format2(JSON.stringify(packageJson), {
|
|
288
|
-
parser: "json",
|
|
289
|
-
proseWrap: "preserve",
|
|
290
|
-
trailingComma: "none",
|
|
291
|
-
tabWidth: 2,
|
|
292
|
-
semi: true,
|
|
293
|
-
singleQuote: false,
|
|
294
|
-
quoteProps: "as-needed",
|
|
295
|
-
insertPragma: false,
|
|
296
|
-
bracketSameLine: true,
|
|
297
|
-
printWidth: 80,
|
|
298
|
-
bracketSpacing: true,
|
|
299
|
-
arrowParens: "avoid",
|
|
300
|
-
endOfLine: "lf",
|
|
301
|
-
plugins: ["prettier-plugin-packagejson"]
|
|
302
|
-
})
|
|
303
|
-
);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
const packageName = packageJson.name;
|
|
307
|
-
console.info(
|
|
308
|
-
`\u{1F680} Running Storm NPM Publish executor on the ${packageName} package`
|
|
309
|
-
);
|
|
310
|
-
const packageTxt = packageName === context.projectName ? `package "${packageName}"` : `package "${packageName}" from project "${context.projectName}"`;
|
|
311
|
-
if (packageJson.private === true) {
|
|
312
|
-
console.warn(
|
|
313
|
-
`Skipped ${packageTxt}, because it has \`"private": true\` in ${packageJsonPath}`
|
|
314
|
-
);
|
|
315
|
-
return { success: true };
|
|
316
|
-
}
|
|
317
|
-
await replaceDepsAliases(packageRoot, context.root);
|
|
318
|
-
await addPackageJsonGitHead(packageRoot);
|
|
319
|
-
const npmPublishCommandSegments = [`npm publish --json`];
|
|
320
|
-
const npmViewCommandSegments = [
|
|
321
|
-
`npm view ${packageName} versions dist-tags --json`
|
|
322
|
-
];
|
|
323
|
-
const registry = options.registry ?? (await getRegistry() || getNpmRegistry());
|
|
324
|
-
if (registry) {
|
|
325
|
-
npmPublishCommandSegments.push(`--registry="${registry}" `);
|
|
326
|
-
npmViewCommandSegments.push(`--registry="${registry}" `);
|
|
327
|
-
}
|
|
328
|
-
if (options.otp) {
|
|
329
|
-
npmPublishCommandSegments.push(`--otp="${options.otp}" `);
|
|
330
|
-
}
|
|
331
|
-
if (isDryRun) {
|
|
332
|
-
npmPublishCommandSegments.push("--dry-run");
|
|
333
|
-
}
|
|
334
|
-
npmPublishCommandSegments.push("--provenance --access=public ");
|
|
335
|
-
const tag = options.tag || execSync("npm config get tag", {
|
|
336
|
-
cwd: packageRoot,
|
|
337
|
-
env: {
|
|
338
|
-
...process.env,
|
|
339
|
-
FORCE_COLOR: "true"
|
|
340
|
-
},
|
|
341
|
-
maxBuffer: LARGE_BUFFER,
|
|
342
|
-
killSignal: "SIGTERM"
|
|
343
|
-
}).toString().trim();
|
|
344
|
-
if (tag) {
|
|
345
|
-
npmPublishCommandSegments.push(`--tag="${tag}" `);
|
|
346
|
-
}
|
|
347
|
-
if (!isDryRun) {
|
|
348
|
-
const currentVersion = options.version || packageJson.version;
|
|
349
|
-
try {
|
|
350
|
-
try {
|
|
351
|
-
const result = execSync(npmViewCommandSegments.join(" "), {
|
|
352
|
-
cwd: packageRoot,
|
|
353
|
-
env: {
|
|
354
|
-
...process.env,
|
|
355
|
-
FORCE_COLOR: "true"
|
|
356
|
-
},
|
|
357
|
-
maxBuffer: LARGE_BUFFER,
|
|
358
|
-
killSignal: "SIGTERM"
|
|
359
|
-
});
|
|
360
|
-
const resultJson = JSON.parse(result.toString());
|
|
361
|
-
const distTags = resultJson["dist-tags"] || {};
|
|
362
|
-
if (distTags[tag] === currentVersion) {
|
|
363
|
-
console.warn(
|
|
364
|
-
`Skipped ${packageTxt} because v${currentVersion} already exists in ${registry} with tag "${tag}"`
|
|
365
|
-
);
|
|
366
|
-
return { success: true };
|
|
367
|
-
}
|
|
368
|
-
} catch (err) {
|
|
369
|
-
console.warn("\n ********************** \n");
|
|
370
|
-
console.warn(
|
|
371
|
-
`An error occurred while checking for existing dist-tags
|
|
372
|
-
${JSON.stringify(err)}
|
|
373
|
-
|
|
374
|
-
Note: If this is the first time this package has been published to NPM, this can be ignored.`
|
|
375
|
-
);
|
|
376
|
-
console.info("");
|
|
377
|
-
}
|
|
378
|
-
try {
|
|
379
|
-
if (!isDryRun) {
|
|
380
|
-
const command = `npm dist-tag add ${packageName}@${currentVersion} ${tag} --registry="${registry}" `;
|
|
381
|
-
console.info(
|
|
382
|
-
`Adding the dist-tag ${tag} - preparing to run the following:
|
|
383
|
-
${command}`
|
|
384
|
-
);
|
|
385
|
-
const result = execSync(command, {
|
|
386
|
-
cwd: packageRoot,
|
|
387
|
-
env: {
|
|
388
|
-
...process.env,
|
|
389
|
-
FORCE_COLOR: "true"
|
|
390
|
-
},
|
|
391
|
-
maxBuffer: LARGE_BUFFER,
|
|
392
|
-
killSignal: "SIGTERM"
|
|
393
|
-
});
|
|
394
|
-
console.info(
|
|
395
|
-
`Added the dist-tag ${tag} to v${currentVersion} for registry "${registry}"
|
|
396
|
-
|
|
397
|
-
Execution response: ${result.toString()}`
|
|
398
|
-
);
|
|
399
|
-
} else {
|
|
400
|
-
console.info(
|
|
401
|
-
`Would add the dist-tag ${tag} to v${currentVersion} for registry "${registry}", but [dry-run] was set.
|
|
402
|
-
`
|
|
403
|
-
);
|
|
404
|
-
}
|
|
405
|
-
return { success: true };
|
|
406
|
-
} catch (err) {
|
|
407
|
-
try {
|
|
408
|
-
console.warn("\n ********************** \n");
|
|
409
|
-
let error = err;
|
|
410
|
-
if (Buffer.isBuffer(error)) {
|
|
411
|
-
error = error.toString();
|
|
412
|
-
}
|
|
413
|
-
console.warn(
|
|
414
|
-
`An error occurred while adding dist-tags:
|
|
415
|
-
${error}
|
|
416
|
-
|
|
417
|
-
Note: If this is the first time this package has been published to NPM, this can be ignored.`
|
|
418
|
-
);
|
|
419
|
-
console.info("");
|
|
420
|
-
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
421
|
-
if (stdoutData?.error && !(stdoutData.error?.code?.includes("E404") && stdoutData.error?.summary?.includes("no such package available")) && !(err.stderr?.toString().includes("E404") && err.stderr?.toString().includes("no such package available"))) {
|
|
422
|
-
console.error(
|
|
423
|
-
"npm dist-tag add error please see below for more information:"
|
|
424
|
-
);
|
|
425
|
-
if (stdoutData.error.summary) {
|
|
426
|
-
console.error(stdoutData.error?.summary);
|
|
427
|
-
}
|
|
428
|
-
if (stdoutData.error.detail) {
|
|
429
|
-
console.error(stdoutData.error?.detail);
|
|
430
|
-
}
|
|
431
|
-
if (context.isVerbose) {
|
|
432
|
-
console.error(
|
|
433
|
-
`npm dist-tag add stdout: ${JSON.stringify(stdoutData, null, 2)}`
|
|
434
|
-
);
|
|
435
|
-
}
|
|
436
|
-
return { success: false };
|
|
437
|
-
}
|
|
438
|
-
} catch (err2) {
|
|
439
|
-
console.error(
|
|
440
|
-
`Something unexpected went wrong when processing the npm dist-tag add output
|
|
441
|
-
${JSON.stringify(err2)}`
|
|
442
|
-
);
|
|
443
|
-
return { success: false };
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
} catch (err) {
|
|
447
|
-
let error = err;
|
|
448
|
-
if (Buffer.isBuffer(error)) {
|
|
449
|
-
error = error.toString();
|
|
450
|
-
}
|
|
451
|
-
console.error("\n ********************** \n");
|
|
452
|
-
console.info("");
|
|
453
|
-
console.error(
|
|
454
|
-
"An error occured trying to run the npm dist-tag add command."
|
|
455
|
-
);
|
|
456
|
-
console.error(error);
|
|
457
|
-
console.info("");
|
|
458
|
-
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
459
|
-
if (!(stdoutData.error?.code?.includes("E404") && stdoutData.error?.summary?.toLowerCase().includes("not found")) && !(err.stderr?.toString().includes("E404") && err.stderr?.toString().toLowerCase().includes("not found"))) {
|
|
460
|
-
console.error(
|
|
461
|
-
`Something unexpected went wrong when checking for existing dist-tags.
|
|
462
|
-
|
|
463
|
-
Error: ${JSON.stringify(err, null, 2)}`
|
|
464
|
-
);
|
|
465
|
-
return { success: false };
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
try {
|
|
470
|
-
const cwd = packageRoot;
|
|
471
|
-
const command = npmPublishCommandSegments.join(" ");
|
|
472
|
-
console.info(
|
|
473
|
-
`Running publish command "${command}" in current working directory: "${cwd}" `
|
|
474
|
-
);
|
|
475
|
-
const result = execSync(command, {
|
|
476
|
-
cwd,
|
|
477
|
-
env: {
|
|
478
|
-
...process.env,
|
|
479
|
-
FORCE_COLOR: "true"
|
|
480
|
-
},
|
|
481
|
-
maxBuffer: LARGE_BUFFER,
|
|
482
|
-
killSignal: "SIGTERM"
|
|
483
|
-
});
|
|
484
|
-
if (isDryRun) {
|
|
485
|
-
console.info(
|
|
486
|
-
`Would publish to ${registry} with tag "${tag}", but [dry-run] was set ${result ? `
|
|
487
|
-
|
|
488
|
-
Execution response: ${result.toString()}` : ""}`
|
|
489
|
-
);
|
|
490
|
-
} else {
|
|
491
|
-
console.info(
|
|
492
|
-
`Published to ${registry} with tag "${tag}" ${result ? `
|
|
493
|
-
|
|
494
|
-
Execution response: ${result.toString()}` : ""}`
|
|
495
|
-
);
|
|
496
|
-
}
|
|
497
|
-
return { success: true };
|
|
498
|
-
} catch (err) {
|
|
499
|
-
try {
|
|
500
|
-
console.error("\n ********************** \n");
|
|
501
|
-
console.info("");
|
|
502
|
-
console.error("An error occured running npm publish.");
|
|
503
|
-
console.error("Please see below for more information:");
|
|
504
|
-
console.info("");
|
|
505
|
-
const stdoutData = JSON.parse(err.stdout?.toString() || "{}");
|
|
506
|
-
if (stdoutData.error.summary) {
|
|
507
|
-
console.error(stdoutData.error.summary);
|
|
508
|
-
console.error(stdoutData.error.summary);
|
|
509
|
-
}
|
|
510
|
-
if (stdoutData.error.detail) {
|
|
511
|
-
console.error(stdoutData.error.detail);
|
|
512
|
-
}
|
|
513
|
-
if (context.isVerbose) {
|
|
514
|
-
console.error(
|
|
515
|
-
`npm publish stdout:
|
|
516
|
-
${JSON.stringify(stdoutData, null, 2)}`
|
|
517
|
-
);
|
|
518
|
-
}
|
|
519
|
-
console.error("\n ********************** \n");
|
|
520
|
-
return { success: false };
|
|
521
|
-
} catch (err2) {
|
|
522
|
-
let error = err2;
|
|
523
|
-
if (Buffer.isBuffer(error)) {
|
|
524
|
-
error = error.toString();
|
|
525
|
-
}
|
|
526
|
-
console.error(
|
|
527
|
-
`Something unexpected went wrong when processing the npm publish output
|
|
528
|
-
|
|
529
|
-
Error: ${JSON.stringify(error, null, 2)}`
|
|
530
|
-
);
|
|
531
|
-
console.error("\n ********************** \n");
|
|
532
|
-
return { success: false };
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
export {
|
|
538
|
-
LARGE_BUFFER,
|
|
539
|
-
npmPublishExecutorFn
|
|
540
|
-
};
|
package/dist/chunk-GED6QYLK.mjs
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseCargoToml
|
|
3
|
-
} from "./chunk-X2UWPTFU.mjs";
|
|
4
|
-
|
|
5
|
-
// src/executors/cargo-publish/executor.ts
|
|
6
|
-
import { joinPathFragments } from "@nx/devkit";
|
|
7
|
-
import { execSync } from "node:child_process";
|
|
8
|
-
import { readFileSync } from "node:fs";
|
|
9
|
-
import https from "node:https";
|
|
10
|
-
var LARGE_BUFFER = 1024 * 1e6;
|
|
11
|
-
async function runExecutor(options, context) {
|
|
12
|
-
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
13
|
-
if (!context.projectName) {
|
|
14
|
-
throw new Error("The executor requires a projectName.");
|
|
15
|
-
}
|
|
16
|
-
console.info(
|
|
17
|
-
`\u{1F680} Running Storm Cargo Publish executor on the ${context.projectName} crate`
|
|
18
|
-
);
|
|
19
|
-
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
|
|
20
|
-
throw new Error("The executor requires projectsConfigurations.");
|
|
21
|
-
}
|
|
22
|
-
const registry = options.registry ? options.registry : process.env.STORM_REGISTRY_CARGO ? process.env.STORM_REGISTRY_CARGO : "https://crates.io";
|
|
23
|
-
const root = context.projectsConfigurations.projects[context.projectName]?.root;
|
|
24
|
-
const packageRoot = joinPathFragments(
|
|
25
|
-
context.root,
|
|
26
|
-
options.packageRoot ? options.packageRoot : root
|
|
27
|
-
);
|
|
28
|
-
const cargoToml = parseCargoToml(
|
|
29
|
-
readFileSync(joinPathFragments(packageRoot, "Cargo.toml"), "utf-8")
|
|
30
|
-
);
|
|
31
|
-
try {
|
|
32
|
-
const result = await getRegistryVersion(
|
|
33
|
-
cargoToml.package.name,
|
|
34
|
-
cargoToml.package.version,
|
|
35
|
-
registry
|
|
36
|
-
);
|
|
37
|
-
if (result) {
|
|
38
|
-
console.warn(
|
|
39
|
-
`Skipped publishing crate ${cargoToml.package.name} v${cargoToml.package.version} - ${result}`
|
|
40
|
-
);
|
|
41
|
-
return {
|
|
42
|
-
success: true
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
} catch {
|
|
46
|
-
}
|
|
47
|
-
const cargoPublishCommandSegments = [
|
|
48
|
-
`cargo publish --allow-dirty -p ${cargoToml.package.name}`
|
|
49
|
-
];
|
|
50
|
-
if (isDryRun) {
|
|
51
|
-
cargoPublishCommandSegments.push("--dry-run");
|
|
52
|
-
}
|
|
53
|
-
try {
|
|
54
|
-
const cargoPublishCommand = cargoPublishCommandSegments.join(" ");
|
|
55
|
-
console.log("");
|
|
56
|
-
console.log(`Running "${cargoPublishCommand}"...`);
|
|
57
|
-
console.log("");
|
|
58
|
-
execSync(cargoPublishCommand, {
|
|
59
|
-
maxBuffer: LARGE_BUFFER,
|
|
60
|
-
env: {
|
|
61
|
-
...process.env,
|
|
62
|
-
FORCE_COLOR: "true"
|
|
63
|
-
},
|
|
64
|
-
cwd: packageRoot,
|
|
65
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
66
|
-
});
|
|
67
|
-
console.log("");
|
|
68
|
-
if (isDryRun) {
|
|
69
|
-
console.log(`Would publish to ${registry}, but [dry-run] was set`);
|
|
70
|
-
} else {
|
|
71
|
-
console.log(`Published to ${registry}`);
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
success: true
|
|
75
|
-
};
|
|
76
|
-
} catch (error) {
|
|
77
|
-
console.error(`Failed to publish to ${registry}`);
|
|
78
|
-
console.error(error);
|
|
79
|
-
console.log("");
|
|
80
|
-
return {
|
|
81
|
-
success: false
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
var getRegistryVersion = (name, version, registry) => {
|
|
86
|
-
const url = `${registry}/api/v1/crates/${encodeURIComponent(name)}/${encodeURIComponent(
|
|
87
|
-
version
|
|
88
|
-
)}`;
|
|
89
|
-
console.log(`Checking for existing version at: ${url}`);
|
|
90
|
-
return new Promise(
|
|
91
|
-
(resolve) => https.get(url, (res) => {
|
|
92
|
-
res.on("data", (d) => {
|
|
93
|
-
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
|
|
94
|
-
const response = JSON.parse(d.toString());
|
|
95
|
-
const updatedAt = response.version?.updated_at;
|
|
96
|
-
const publishedBy = response.version?.published_by?.name;
|
|
97
|
-
resolve(
|
|
98
|
-
`The ${name} v${version} crate was previously published${publishedBy ? ` by ${publishedBy}` : ""}${updatedAt ? ` on ${new Date(updatedAt).toLocaleDateString("en-US", {
|
|
99
|
-
year: "numeric",
|
|
100
|
-
month: "long",
|
|
101
|
-
day: "numeric",
|
|
102
|
-
weekday: "long"
|
|
103
|
-
})}` : ""}.`
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
resolve(null);
|
|
107
|
-
});
|
|
108
|
-
}).on("error", () => {
|
|
109
|
-
resolve(null);
|
|
110
|
-
})
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export {
|
|
115
|
-
runExecutor,
|
|
116
|
-
getRegistryVersion
|
|
117
|
-
};
|
package/dist/chunk-GHQJKIMQ.mjs
DELETED
|
File without changes
|