@storm-software/workspace-tools 1.273.7 → 1.273.10
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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/config/base.json +1 -0
- package/dist/{chunk-Y7JE33K2.js → chunk-222WOWGJ.js} +2 -2
- package/dist/{chunk-ON5324R7.js → chunk-2443J2PM.js} +2 -2
- package/dist/{chunk-A6H2SCIM.mjs → chunk-2PZQYXN7.mjs} +25 -22
- package/dist/{chunk-3G3HNZ22.js → chunk-2XAKOAWZ.js} +2 -2
- package/dist/{chunk-ZASRR3NW.mjs → chunk-33SPJY5N.mjs} +1 -1
- package/dist/{chunk-UQJ4W5YX.mjs → chunk-4F35W2XF.mjs} +2 -2
- package/dist/{chunk-QWRE2UFS.js → chunk-4PBELSTL.js} +16 -16
- package/dist/{chunk-AAQQSGPY.mjs → chunk-5E6PGJFN.mjs} +1 -1
- package/dist/{chunk-TSP73RLP.js → chunk-6X3ZLBG2.js} +2 -2
- package/dist/{chunk-MLF7ZQBW.mjs → chunk-7VBGCQH3.mjs} +2 -2
- package/dist/{chunk-FCRAGTW6.mjs → chunk-7XEPEVIZ.mjs} +2 -2
- package/dist/{chunk-VUSG5IWM.js → chunk-A2XTQR6N.js} +21 -21
- package/dist/{chunk-DYDIVZRW.js → chunk-AALD7ZEV.js} +5 -5
- package/dist/{chunk-75RE5W2I.mjs → chunk-AYJTBMXU.mjs} +1 -1
- package/dist/{chunk-5XYM22SB.mjs → chunk-BAZRQFS5.mjs} +3 -3
- package/dist/{chunk-SMRFUKN7.js → chunk-BVE3BYKP.js} +2 -2
- package/dist/{chunk-N63KWRTH.mjs → chunk-C4XOCICR.mjs} +12 -5
- package/dist/{chunk-BNERGX6I.js → chunk-CSYOP22P.js} +55 -18
- package/dist/{chunk-C22PXFKF.js → chunk-CTWNTX3J.js} +5 -5
- package/dist/{chunk-EGPDUUWX.mjs → chunk-D6P2STPQ.mjs} +2 -2
- package/dist/{chunk-AW3I76E2.mjs → chunk-EEHAAR36.mjs} +1 -1
- package/dist/{chunk-5MOK3MSQ.mjs → chunk-EO5BEDAY.mjs} +1 -1
- package/dist/{chunk-2F5TLK3C.js → chunk-F6TLFN34.js} +20 -20
- package/dist/{chunk-MSCI7LQ2.js → chunk-FG3RQ2OV.js} +4 -4
- package/dist/{chunk-S2JDNKK6.js → chunk-FOCRXFSZ.js} +9 -9
- package/dist/{chunk-2PZOGRBP.mjs → chunk-HSBG3ZLM.mjs} +4 -4
- package/dist/{chunk-CUMWQELT.js → chunk-J43B54ZW.js} +32 -29
- package/dist/{chunk-KF6AKLGE.js → chunk-JMRTB4ST.js} +2 -2
- package/dist/{chunk-3QD2U6SS.js → chunk-JQE6CQLQ.js} +29 -29
- package/dist/{chunk-EDMNYJEB.js → chunk-JYCGVSCY.js} +2 -2
- package/dist/{chunk-DMJKKHEC.mjs → chunk-K3NTMKCM.mjs} +2 -2
- package/dist/{chunk-6L7JKV7E.mjs → chunk-M2NVA6UP.mjs} +2 -2
- package/dist/{chunk-EQ3664ZD.mjs → chunk-MAJJATNY.mjs} +2 -2
- package/dist/{chunk-7Q2NOIDR.js → chunk-MBEN52II.js} +2 -2
- package/dist/{chunk-DJYOYWNY.mjs → chunk-NDUYSOQT.mjs} +2 -2
- package/dist/{chunk-5XTW4576.mjs → chunk-NTDTTTFS.mjs} +1 -1
- package/dist/{chunk-M75P2EGZ.js → chunk-QBVFFRGM.js} +2 -2
- package/dist/{chunk-Y5UH66KY.mjs → chunk-R4DNKY7G.mjs} +2 -2
- package/dist/{chunk-M6IYTP2T.mjs → chunk-TITVB67A.mjs} +1 -1
- package/dist/{chunk-2CZBN33P.js → chunk-TP4TN5V3.js} +26 -19
- package/dist/{chunk-TVH6TDED.js → chunk-VF5EUZOL.js} +2 -2
- package/dist/{chunk-WLB7XVWW.mjs → chunk-VWLAZOKW.mjs} +52 -15
- package/dist/{chunk-MNQIKYEB.js → chunk-WJDCZZ4L.js} +2 -2
- package/dist/{chunk-6QQQU5ES.mjs → chunk-XMLAOOM7.mjs} +2 -2
- package/dist/{chunk-W2RLHQ24.mjs → chunk-YRKPABVG.mjs} +1 -1
- package/dist/{chunk-BNV64O5L.js → chunk-ZCP6KEZ3.js} +2 -2
- package/dist/{chunk-R2WP5YDO.mjs → chunk-ZI3GFOY5.mjs} +1 -1
- package/dist/{executor-BB2ETtRv.d.mts → executor--mlxAMR_.d.mts} +1 -1
- package/dist/{executor-B64kh1oi.d.mts → executor-BAnuLY62.d.mts} +1 -1
- package/dist/{executor-iAEPRwdw.d.mts → executor-BGlIYFTt.d.mts} +1 -1
- package/dist/{executor-BoDeD560.d.ts → executor-BS6HK_i-.d.ts} +1 -1
- package/dist/{executor-DweIL90b.d.ts → executor-CmMXt0ZL.d.ts} +1 -1
- package/dist/{executor-DQYta-Bm.d.mts → executor-D-oX5X59.d.mts} +1 -1
- package/dist/{executor-DGI7S1K6.d.ts → executor-VvboSWN6.d.ts} +1 -1
- package/dist/{executor-DJnjBsHi.d.ts → executor-YXD16-Jl.d.ts} +1 -1
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +16 -16
- package/dist/executors.mjs +16 -16
- package/dist/{generator-DkZ7aOcA.d.ts → generator-B0Jsp2ju.d.ts} +2 -2
- package/dist/{generator-Dgh8EO8f.d.mts → generator-B0UkDTyO.d.mts} +2 -2
- package/dist/{generator-Di06Xw7z.d.mts → generator-B4_Po-mX.d.mts} +1 -1
- package/dist/{generator-Bjo526Ot.d.ts → generator-BkkCO0DX.d.ts} +1 -1
- package/dist/{generator-DK9vOp3f.d.mts → generator-CjXWOnnK.d.mts} +2 -2
- package/dist/{generator-BHwTuGoc.d.ts → generator-CsmV6snI.d.ts} +2 -2
- package/dist/{generator-PTy4kTc1.d.ts → generator-CuNtuEDC.d.ts} +2 -2
- package/dist/{generator-BqKMXZ9U.d.mts → generator-DP4Yjbo_.d.mts} +2 -2
- package/dist/{generator-qr528Z40.d.ts → generator-DVfwgNrx.d.ts} +2 -2
- package/dist/{generator-DMoR2v0k.d.mts → generator-DvREvLTF.d.mts} +2 -2
- package/dist/{generator-iNjBgmgt.d.mts → generator-UHjIhmN1.d.mts} +1 -1
- package/dist/{generator-DRa-qwNt.d.ts → generator-lfLl3DXf.d.ts} +1 -1
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +12 -12
- package/dist/generators.mjs +13 -13
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +25 -25
- package/dist/index.mjs +26 -26
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.ts +2 -2
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +4 -4
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.d.mts +2 -2
- package/dist/src/base/base-generator.d.ts +2 -2
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +4 -4
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +5 -5
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +5 -5
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +5 -5
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +5 -5
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +5 -5
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.d.mts +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +4 -4
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.d.mts +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.js +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +2 -2
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +5 -5
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +5 -5
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.d.mts +2 -2
- package/dist/src/executors/unbuild/executor.d.ts +2 -2
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +5 -5
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.d.mts +3 -3
- package/dist/src/generators/browser-library/generator.d.ts +3 -3
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +5 -5
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.d.mts +3 -3
- package/dist/src/generators/config-schema/generator.d.ts +3 -3
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +5 -5
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.d.mts +3 -3
- package/dist/src/generators/neutral-library/generator.d.ts +3 -3
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +5 -5
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.d.mts +3 -3
- package/dist/src/generators/node-library/generator.d.ts +3 -3
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +5 -5
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.d.mts +3 -3
- package/dist/src/generators/preset/generator.d.ts +3 -3
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +5 -5
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/generators/release-version/generator.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/generators/release-version/generator.js +5 -5
- package/dist/src/generators/release-version/generator.mjs +5 -5
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/project-config.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +4 -4
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/pnpm-deps-update.mjs +1 -1
- package/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/dist/{types-TCjBSz49.d.mts → types-C3bmMIQz.d.mts} +11 -8
- package/dist/{types-TCjBSz49.d.ts → types-C3bmMIQz.d.ts} +11 -8
- package/dist/{types-DrIOVAV9.d.ts → types-U3fABbAy.d.ts} +1 -1
- package/dist/{types-J0DsoZaH.d.mts → types-jbWdA7g_.d.mts} +1 -1
- package/package.json +4 -4
|
@@ -9,10 +9,10 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
|
9
9
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
10
10
|
|
|
11
11
|
// ../config/src/constants.ts
|
|
12
|
-
var STORM_DEFAULT_DOCS = "https://
|
|
12
|
+
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
13
13
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
14
14
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
15
|
-
var STORM_DEFAULT_LICENSING = "https://
|
|
15
|
+
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
16
16
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
17
17
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
18
18
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -185,10 +185,13 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
185
185
|
organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
186
186
|
repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
187
187
|
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
188
|
-
homepage: _zod2.default.string().trim().url().
|
|
189
|
-
docs: _zod2.default.string().trim().url().
|
|
190
|
-
licensing: _zod2.default.string().trim().url().
|
|
191
|
-
contact: _zod2.default.string().trim().url().
|
|
188
|
+
homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
189
|
+
docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
190
|
+
licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
191
|
+
contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
192
|
+
support: _zod2.default.string().trim().url().optional().describe(
|
|
193
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
194
|
+
),
|
|
192
195
|
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
193
196
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
194
197
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -311,9 +314,10 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
311
314
|
negative: "#dc2626"
|
|
312
315
|
}
|
|
313
316
|
};
|
|
314
|
-
|
|
317
|
+
async function getPackageJsonConfig(root) {
|
|
315
318
|
let license = STORM_DEFAULT_LICENSE;
|
|
316
|
-
let homepage =
|
|
319
|
+
let homepage = void 0;
|
|
320
|
+
let support = void 0;
|
|
317
321
|
let name = void 0;
|
|
318
322
|
let namespace = void 0;
|
|
319
323
|
let repository = void 0;
|
|
@@ -344,6 +348,13 @@ var getDefaultConfig = async (root) => {
|
|
|
344
348
|
if (packageJson.homepage) {
|
|
345
349
|
homepage = packageJson.homepage;
|
|
346
350
|
}
|
|
351
|
+
if (packageJson.bugs) {
|
|
352
|
+
if (typeof packageJson.bugs === "string") {
|
|
353
|
+
support = packageJson.bugs;
|
|
354
|
+
} else if (packageJson.bugs.url) {
|
|
355
|
+
support = packageJson.bugs.url;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
347
358
|
}
|
|
348
359
|
}
|
|
349
360
|
return {
|
|
@@ -353,13 +364,38 @@ var getDefaultConfig = async (root) => {
|
|
|
353
364
|
repository,
|
|
354
365
|
license,
|
|
355
366
|
homepage,
|
|
356
|
-
|
|
357
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
358
|
-
error: {
|
|
359
|
-
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
360
|
-
}
|
|
367
|
+
support
|
|
361
368
|
};
|
|
362
|
-
}
|
|
369
|
+
}
|
|
370
|
+
function applyDefaultConfig(config) {
|
|
371
|
+
if (!config.support && config.contact) {
|
|
372
|
+
config.support = config.contact;
|
|
373
|
+
}
|
|
374
|
+
if (!config.contact && config.support) {
|
|
375
|
+
config.contact = config.support;
|
|
376
|
+
}
|
|
377
|
+
if (config.homepage) {
|
|
378
|
+
if (!config.docs) {
|
|
379
|
+
config.docs = `${config.homepage}/docs`;
|
|
380
|
+
}
|
|
381
|
+
if (!config.license) {
|
|
382
|
+
config.license = `${config.homepage}/license`;
|
|
383
|
+
}
|
|
384
|
+
if (!config.support) {
|
|
385
|
+
config.support = `${config.homepage}/support`;
|
|
386
|
+
}
|
|
387
|
+
if (!config.contact) {
|
|
388
|
+
config.contact = `${config.homepage}/contact`;
|
|
389
|
+
}
|
|
390
|
+
if (!_optionalChain([config, 'access', _2 => _2.error, 'optionalAccess', _3 => _3.codesFile]) || !_optionalChain([config, 'optionalAccess', _4 => _4.error, 'optionalAccess', _5 => _5.url])) {
|
|
391
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
392
|
+
if (config.homepage) {
|
|
393
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
return config;
|
|
398
|
+
}
|
|
363
399
|
|
|
364
400
|
// ../config-tools/src/logger/chalk.ts
|
|
365
401
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
@@ -384,7 +420,7 @@ var chalkDefault = {
|
|
|
384
420
|
};
|
|
385
421
|
var getChalk = () => {
|
|
386
422
|
let _chalk = _chalk3.default;
|
|
387
|
-
if (!_optionalChain([_chalk, 'optionalAccess',
|
|
423
|
+
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])) {
|
|
388
424
|
_chalk = chalkDefault;
|
|
389
425
|
}
|
|
390
426
|
return _chalk;
|
|
@@ -472,7 +508,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
472
508
|
|
|
473
509
|
// ../config-tools/src/logger/console.ts
|
|
474
510
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
475
|
-
const colors = !_optionalChain([config, 'access',
|
|
511
|
+
const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
476
512
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
477
513
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
478
514
|
return (_) => {
|
|
@@ -588,7 +624,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
|
|
|
588
624
|
};
|
|
589
625
|
var _isFunction = (value) => {
|
|
590
626
|
try {
|
|
591
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
627
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _27 => _27.constructor]) && _optionalChain([value, 'optionalAccess', _28 => _28.call]) && _optionalChain([value, 'optionalAccess', _29 => _29.apply]));
|
|
592
628
|
} catch (e) {
|
|
593
629
|
return false;
|
|
594
630
|
}
|
|
@@ -613,4 +649,5 @@ var _isFunction = (value) => {
|
|
|
613
649
|
|
|
614
650
|
|
|
615
651
|
|
|
616
|
-
|
|
652
|
+
|
|
653
|
+
exports.LogLevel = LogLevel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.stormWorkspaceConfigSchema = stormWorkspaceConfigSchema; exports.COLOR_KEYS = COLOR_KEYS; exports.getPackageJsonConfig = getPackageJsonConfig; exports.applyDefaultConfig = applyDefaultConfig; 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;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkA2XTQR6Njs = require('./chunk-A2XTQR6N.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
var _devkit = require('@nx/devkit');
|
|
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
17
17
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
_chunkCSYOP22Pjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
21
21
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
22
22
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
23
23
|
_nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
|
|
24
24
|
"src"
|
|
25
25
|
)))
|
|
26
26
|
}).then((result) => {
|
|
27
|
-
|
|
27
|
+
_chunkCSYOP22Pjs.writeInfo.call(void 0,
|
|
28
28
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
29
29
|
config
|
|
30
30
|
);
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkA2XTQR6Njs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-EK75QNMS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
withRunGenerator
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7VBGCQH3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
joinPaths
|
|
13
13
|
} from "./chunk-U7JFVMCK.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__dirname
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AYJTBMXU.mjs";
|
|
17
17
|
|
|
18
18
|
// src/generators/node-library/generator.ts
|
|
19
19
|
import {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJYCGVSCYjs = require('./chunk-JYCGVSCY.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkTP4TN5V3js = require('./chunk-TP4TN5V3.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ var _chunk2CZBN33Pjs = require('./chunk-2CZBN33P.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -255,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
|
255
255
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
256
256
|
var _semver3 = require('semver');
|
|
257
257
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
258
|
-
|
|
258
|
+
_chunkCSYOP22Pjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
259
259
|
|
|
260
260
|
`, config);
|
|
261
|
-
const stopwatch =
|
|
261
|
+
const stopwatch = _chunkCSYOP22Pjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
262
262
|
try {
|
|
263
263
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
264
|
-
|
|
264
|
+
_chunkCSYOP22Pjs.writeDebug.call(void 0,
|
|
265
265
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
266
266
|
- workspaceRoot: ${workspaceRoot}`,
|
|
267
267
|
config
|
|
268
268
|
);
|
|
269
|
-
config = await
|
|
270
|
-
|
|
269
|
+
config = await _chunkTP4TN5V3js.getConfig.call(void 0, workspaceRoot);
|
|
270
|
+
_chunkCSYOP22Pjs.writeTrace.call(void 0,
|
|
271
271
|
`Generator schema options \u2699\uFE0F
|
|
272
272
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
|
|
273
273
|
(key) => ![
|
|
@@ -348,9 +348,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
348
348
|
tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
|
|
349
349
|
);
|
|
350
350
|
const log = (msg) => {
|
|
351
|
-
|
|
351
|
+
_chunkCSYOP22Pjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
_chunkCSYOP22Pjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
354
354
|
let packageName;
|
|
355
355
|
let currentVersionFromDisk;
|
|
356
356
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -361,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
361
361
|
packageName = projectPackageJson.name;
|
|
362
362
|
currentVersionFromDisk = projectPackageJson.version;
|
|
363
363
|
} else if (tree.exists(cargoTomlPath)) {
|
|
364
|
-
const cargoToml =
|
|
364
|
+
const cargoToml = _chunkJYCGVSCYjs.parseCargoToml.call(void 0,
|
|
365
365
|
_optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
|
|
366
366
|
);
|
|
367
367
|
log(
|
|
@@ -632,12 +632,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
632
632
|
version: newVersion
|
|
633
633
|
});
|
|
634
634
|
} else if (tree.exists(cargoTomlPath)) {
|
|
635
|
-
const cargoToml =
|
|
635
|
+
const cargoToml = _chunkJYCGVSCYjs.parseCargoToml.call(void 0,
|
|
636
636
|
_optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
|
|
637
637
|
);
|
|
638
638
|
cargoToml.package ??= {};
|
|
639
639
|
cargoToml.package.version = newVersion;
|
|
640
|
-
tree.write(cargoTomlPath,
|
|
640
|
+
tree.write(cargoTomlPath, _chunkJYCGVSCYjs.stringifyCargoToml.call(void 0, cargoToml));
|
|
641
641
|
}
|
|
642
642
|
log(
|
|
643
643
|
`\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
|
|
@@ -685,7 +685,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
685
685
|
return json;
|
|
686
686
|
});
|
|
687
687
|
} else if (tree.exists(dependentCargoTomlPath)) {
|
|
688
|
-
const dependentPkg =
|
|
688
|
+
const dependentPkg = _chunkJYCGVSCYjs.parseCargoTomlWithTree.call(void 0,
|
|
689
689
|
tree,
|
|
690
690
|
dependentPackageRoot,
|
|
691
691
|
dependentProject.source
|
|
@@ -727,18 +727,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
727
727
|
dependentPackageRoot,
|
|
728
728
|
"Cargo.toml"
|
|
729
729
|
);
|
|
730
|
-
|
|
730
|
+
_chunkJYCGVSCYjs.modifyCargoTable.call(void 0,
|
|
731
731
|
dependentPkg,
|
|
732
732
|
dependentProject.dependencyCollection,
|
|
733
733
|
dependentProject.target,
|
|
734
734
|
updatedDependencyData
|
|
735
735
|
);
|
|
736
|
-
tree.write(cargoTomlToUpdate,
|
|
736
|
+
tree.write(cargoTomlToUpdate, _chunkJYCGVSCYjs.stringifyCargoToml.call(void 0, dependentPkg));
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
await _devkit.formatFiles.call(void 0, tree);
|
|
741
|
-
|
|
741
|
+
_chunkCSYOP22Pjs.writeSuccess.call(void 0,
|
|
742
742
|
`Completed running the Storm Release Version generator!
|
|
743
743
|
`,
|
|
744
744
|
config
|
|
@@ -777,11 +777,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
} catch (error) {
|
|
780
|
-
|
|
780
|
+
_chunkCSYOP22Pjs.writeFatal.call(void 0,
|
|
781
781
|
"A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
|
|
782
782
|
config
|
|
783
783
|
);
|
|
784
|
-
|
|
784
|
+
_chunkCSYOP22Pjs.writeError.call(void 0,
|
|
785
785
|
`An exception was thrown in the Storm Release Version generator's process
|
|
786
786
|
- Details: ${error.message}
|
|
787
787
|
- Stacktrace: ${error.stack}`,
|
|
@@ -880,7 +880,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
|
|
|
880
880
|
`The project "${dep.target}" does not have a packageRoot available.`
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
const cargoToml =
|
|
883
|
+
const cargoToml = _chunkJYCGVSCYjs.parseCargoTomlWithTree.call(void 0,
|
|
884
884
|
tree,
|
|
885
885
|
resolvePackageRoot(projectNode),
|
|
886
886
|
projectNode.name
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkA2XTQR6Njs = require('./chunk-A2XTQR6N.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -12,7 +12,7 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunkCSYOP22Pjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
16
16
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
17
17
|
throw new Error(
|
|
18
18
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
var executor_default =
|
|
83
|
+
var executor_default = _chunkA2XTQR6Njs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4PBELSTLjs = require('./chunk-4PBELSTL.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkCSYOP22Pjs = require('./chunk-CSYOP22P.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -15,29 +15,29 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
15
15
|
var _devkit = require('@nx/devkit');
|
|
16
16
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
17
17
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
18
|
-
|
|
18
|
+
_chunkCSYOP22Pjs.writeInfo.call(void 0,
|
|
19
19
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
20
20
|
config
|
|
21
21
|
);
|
|
22
|
-
|
|
22
|
+
_chunkCSYOP22Pjs.writeTrace.call(void 0,
|
|
23
23
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
24
24
|
config
|
|
25
25
|
);
|
|
26
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
26
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkCSYOP22Pjs.stormWorkspaceConfigSchema, {
|
|
27
27
|
name: "StormWorkspaceConfiguration"
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
_chunkCSYOP22Pjs.writeTrace.call(void 0, jsonSchema, config);
|
|
30
30
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
31
31
|
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, ))),
|
|
32
32
|
_optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./"
|
|
33
33
|
);
|
|
34
|
-
|
|
34
|
+
_chunkCSYOP22Pjs.writeTrace.call(void 0,
|
|
35
35
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
36
36
|
config
|
|
37
37
|
);
|
|
38
38
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
39
39
|
await _devkit.formatFiles.call(void 0, tree);
|
|
40
|
-
|
|
40
|
+
_chunkCSYOP22Pjs.writeSuccess.call(void 0,
|
|
41
41
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
42
42
|
config
|
|
43
43
|
);
|
|
@@ -45,7 +45,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
45
45
|
success: true
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
var generator_default =
|
|
48
|
+
var generator_default = _chunk4PBELSTLjs.withRunGenerator.call(void 0,
|
|
49
49
|
"Configuration Schema Creator",
|
|
50
50
|
configSchemaGeneratorFn,
|
|
51
51
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7XEPEVIZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getWorkspaceConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C4XOCICR.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getStopwatch,
|
|
9
9
|
writeDebug,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace,
|
|
15
15
|
writeWarning
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VWLAZOKW.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-U7JFVMCK.mjs";
|
|
23
23
|
import {
|
|
24
24
|
__require
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AYJTBMXU.mjs";
|
|
26
26
|
|
|
27
27
|
// ../esbuild/src/build.ts
|
|
28
28
|
import * as esbuild from "esbuild";
|
|
@@ -25,8 +25,9 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
25
25
|
context.root,
|
|
26
26
|
options.packageRoot || _chunk53DNHF7Bjs.joinPaths.call(void 0, "dist", projectConfig.root)
|
|
27
27
|
);
|
|
28
|
-
const projectRoot = context.projectsConfigurations.projects[context.projectName].root ? _chunk53DNHF7Bjs.joinPaths.call(void 0,
|
|
28
|
+
const projectRoot = _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.root]) ? _chunk53DNHF7Bjs.joinPaths.call(void 0,
|
|
29
29
|
context.root,
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
30
31
|
context.projectsConfigurations.projects[context.projectName].root
|
|
31
32
|
) : packageRoot;
|
|
32
33
|
const packageJsonPath = _chunk53DNHF7Bjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
@@ -45,28 +46,30 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
45
46
|
const projectPackageJson = JSON.parse(projectPackageJsonFile);
|
|
46
47
|
if (packageJson.version !== projectPackageJson.version) {
|
|
47
48
|
console.warn(
|
|
48
|
-
`The version in the package.json file at ${packageJsonPath} does not match the version in the package.json file at ${projectPackageJsonPath}. This file will be updated to match the version in the project package.json file.`
|
|
49
|
-
);
|
|
50
|
-
packageJson.version = projectPackageJson.version;
|
|
51
|
-
await _promises.writeFile.call(void 0,
|
|
52
|
-
packageJsonPath,
|
|
53
|
-
await _prettier.format.call(void 0, JSON.stringify(packageJson), {
|
|
54
|
-
parser: "json",
|
|
55
|
-
proseWrap: "always",
|
|
56
|
-
trailingComma: "none",
|
|
57
|
-
tabWidth: 2,
|
|
58
|
-
semi: true,
|
|
59
|
-
singleQuote: false,
|
|
60
|
-
quoteProps: "as-needed",
|
|
61
|
-
insertPragma: false,
|
|
62
|
-
bracketSameLine: true,
|
|
63
|
-
printWidth: 80,
|
|
64
|
-
bracketSpacing: true,
|
|
65
|
-
arrowParens: "avoid",
|
|
66
|
-
endOfLine: "lf",
|
|
67
|
-
plugins: ["prettier-plugin-pkg"]
|
|
68
|
-
})
|
|
49
|
+
`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.`
|
|
69
50
|
);
|
|
51
|
+
if (projectPackageJson.version) {
|
|
52
|
+
packageJson.version = projectPackageJson.version;
|
|
53
|
+
await _promises.writeFile.call(void 0,
|
|
54
|
+
packageJsonPath,
|
|
55
|
+
await _prettier.format.call(void 0, JSON.stringify(packageJson), {
|
|
56
|
+
parser: "json",
|
|
57
|
+
proseWrap: "always",
|
|
58
|
+
trailingComma: "none",
|
|
59
|
+
tabWidth: 2,
|
|
60
|
+
semi: true,
|
|
61
|
+
singleQuote: false,
|
|
62
|
+
quoteProps: "as-needed",
|
|
63
|
+
insertPragma: false,
|
|
64
|
+
bracketSameLine: true,
|
|
65
|
+
printWidth: 80,
|
|
66
|
+
bracketSpacing: true,
|
|
67
|
+
arrowParens: "avoid",
|
|
68
|
+
endOfLine: "lf",
|
|
69
|
+
plugins: ["prettier-plugin-pkg"]
|
|
70
|
+
})
|
|
71
|
+
);
|
|
72
|
+
}
|
|
70
73
|
}
|
|
71
74
|
const packageName = packageJson.name;
|
|
72
75
|
console.info(
|
|
@@ -195,16 +198,16 @@ Note: If this is the first time this package has been published to NPM, this can
|
|
|
195
198
|
`
|
|
196
199
|
);
|
|
197
200
|
console.info("");
|
|
198
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access',
|
|
199
|
-
if (_optionalChain([stdoutData, 'optionalAccess',
|
|
201
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _8 => _8.stdout, 'optionalAccess', _9 => _9.toString, 'call', _10 => _10()]) || "{}");
|
|
202
|
+
if (_optionalChain([stdoutData, 'optionalAccess', _11 => _11.error]) && !(_optionalChain([stdoutData, 'access', _12 => _12.error, 'optionalAccess', _13 => _13.code, 'optionalAccess', _14 => _14.includes, 'call', _15 => _15("E404")]) && _optionalChain([stdoutData, 'access', _16 => _16.error, 'optionalAccess', _17 => _17.summary, 'optionalAccess', _18 => _18.includes, 'call', _19 => _19("no such package available")])) && !(_optionalChain([err, 'access', _20 => _20.stderr, 'optionalAccess', _21 => _21.toString, 'call', _22 => _22(), 'access', _23 => _23.includes, 'call', _24 => _24("E404")]) && _optionalChain([err, 'access', _25 => _25.stderr, 'optionalAccess', _26 => _26.toString, 'call', _27 => _27(), 'access', _28 => _28.includes, 'call', _29 => _29("no such package available")]))) {
|
|
200
203
|
console.error(
|
|
201
204
|
"npm dist-tag add error please see below for more information:"
|
|
202
205
|
);
|
|
203
206
|
if (stdoutData.error.summary) {
|
|
204
|
-
console.error(_optionalChain([stdoutData, 'access',
|
|
207
|
+
console.error(_optionalChain([stdoutData, 'access', _30 => _30.error, 'optionalAccess', _31 => _31.summary]));
|
|
205
208
|
}
|
|
206
209
|
if (stdoutData.error.detail) {
|
|
207
|
-
console.error(_optionalChain([stdoutData, 'access',
|
|
210
|
+
console.error(_optionalChain([stdoutData, 'access', _32 => _32.error, 'optionalAccess', _33 => _33.detail]));
|
|
208
211
|
}
|
|
209
212
|
if (context.isVerbose) {
|
|
210
213
|
console.error(
|
|
@@ -233,8 +236,8 @@ ${JSON.stringify(err2)}`
|
|
|
233
236
|
);
|
|
234
237
|
console.error(error);
|
|
235
238
|
console.info("");
|
|
236
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access',
|
|
237
|
-
if (!(_optionalChain([stdoutData, 'access',
|
|
239
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _34 => _34.stdout, 'optionalAccess', _35 => _35.toString, 'call', _36 => _36()]) || "{}");
|
|
240
|
+
if (!(_optionalChain([stdoutData, 'access', _37 => _37.error, 'optionalAccess', _38 => _38.code, 'optionalAccess', _39 => _39.includes, 'call', _40 => _40("E404")]) && _optionalChain([stdoutData, 'access', _41 => _41.error, 'optionalAccess', _42 => _42.summary, 'optionalAccess', _43 => _43.toLowerCase, 'call', _44 => _44(), 'access', _45 => _45.includes, 'call', _46 => _46("not found")])) && !(_optionalChain([err, 'access', _47 => _47.stderr, 'optionalAccess', _48 => _48.toString, 'call', _49 => _49(), 'access', _50 => _50.includes, 'call', _51 => _51("E404")]) && _optionalChain([err, 'access', _52 => _52.stderr, 'optionalAccess', _53 => _53.toString, 'call', _54 => _54(), 'access', _55 => _55.toLowerCase, 'call', _56 => _56(), 'access', _57 => _57.includes, 'call', _58 => _58("not found")]))) {
|
|
238
241
|
console.error(
|
|
239
242
|
`Something unexpected went wrong when checking for existing dist-tags.
|
|
240
243
|
|
|
@@ -281,7 +284,7 @@ Execution response: ${result.toString()}` : ""}
|
|
|
281
284
|
console.error("An error occured running npm publish.");
|
|
282
285
|
console.error("Please see below for more information:");
|
|
283
286
|
console.info("");
|
|
284
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access',
|
|
287
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _59 => _59.stdout, 'optionalAccess', _60 => _60.toString, 'call', _61 => _61()]) || "{}");
|
|
285
288
|
if (stdoutData.error.summary) {
|
|
286
289
|
console.error(stdoutData.error.summary);
|
|
287
290
|
console.error(stdoutData.error.summary);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkA2XTQR6Njs = require('./chunk-A2XTQR6N.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-doc/executor.ts
|
|
10
10
|
async function cargoDocExecutor(options, context) {
|
|
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
14
14
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
15
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
|
-
var executor_default =
|
|
17
|
+
var executor_default = _chunkA2XTQR6Njs.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|