@storm-software/build-tools 0.150.7 → 0.150.8
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/README.md +1 -1
- package/dist/{chunk-JJQN3HTQ.mjs → chunk-2QRSJ2XB.mjs} +52 -15
- package/dist/{chunk-D7ZBIHS7.mjs → chunk-3Q4PJ2CH.mjs} +1 -1
- package/dist/{chunk-TABRPMJB.js → chunk-7HCW6J5M.js} +9 -9
- package/dist/{chunk-DLSOQQ2X.mjs → chunk-FRWMSPKW.mjs} +1 -1
- package/dist/{chunk-XXESPGZP.js → chunk-GTGBVWZP.js} +55 -18
- package/dist/{chunk-BKMDH7XQ.mjs → chunk-I4GQIOV7.mjs} +1 -1
- package/dist/{chunk-2IACGL5A.mjs → chunk-JIOQYV3B.mjs} +1 -1
- package/dist/{chunk-673CAI2G.js → chunk-NQ3XUSZB.js} +2 -2
- package/dist/{chunk-ECGZDTG2.js → chunk-PETLJROI.js} +10 -10
- package/dist/{chunk-UNY7ZVZF.js → chunk-R6WRMQAA.js} +8 -8
- package/dist/{chunk-EGKFW7BM.js → chunk-S7FCLPMK.js} +50 -43
- package/dist/{chunk-TSUTFOQG.js → chunk-U2TNM7T7.js} +8 -8
- package/dist/{chunk-VWJLKDCB.mjs → chunk-U7PSAXCT.mjs} +12 -5
- package/dist/{chunk-7NL4YIH3.mjs → chunk-WBAOQRPY.mjs} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/plugins/analyze.js +3 -3
- package/dist/plugins/analyze.mjs +2 -2
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/index.mjs +3 -3
- package/dist/plugins/ts-resolve.js +3 -3
- package/dist/plugins/ts-resolve.mjs +2 -2
- package/dist/{types-BkDQW7K9.d.ts → types-DK2Ei7Dy.d.mts} +11 -8
- package/dist/{types-BkDQW7K9.d.mts → types-DK2Ei7Dy.d.ts} +11 -8
- package/dist/{types-Dsy6SjaO.d.mts → types-bock3dMj.d.mts} +11 -8
- package/dist/{types-Dsy6SjaO.d.ts → types-bock3dMj.d.ts} +11 -8
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utilities/copy-assets.d.mts +1 -1
- package/dist/utilities/copy-assets.d.ts +1 -1
- package/dist/utilities/copy-assets.js +3 -3
- package/dist/utilities/copy-assets.mjs +2 -2
- package/dist/utilities/generate-package-json.d.mts +1 -1
- package/dist/utilities/generate-package-json.d.ts +1 -1
- package/dist/utilities/generate-package-json.js +3 -3
- package/dist/utilities/generate-package-json.mjs +2 -2
- package/dist/utilities/get-entry-points.d.mts +1 -1
- package/dist/utilities/get-entry-points.d.ts +1 -1
- package/dist/utilities/get-entry-points.js +3 -3
- package/dist/utilities/get-entry-points.mjs +2 -2
- package/dist/utilities/get-env.d.mts +1 -1
- package/dist/utilities/get-env.d.ts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +6 -6
- package/dist/utilities/index.mjs +5 -5
- package/dist/utilities/read-nx-config.js +3 -3
- package/dist/utilities/read-nx-config.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -243,10 +243,10 @@ var LogLevelLabel = {
|
|
|
243
243
|
};
|
|
244
244
|
|
|
245
245
|
// ../config/src/constants.ts
|
|
246
|
-
var STORM_DEFAULT_DOCS = "https://
|
|
246
|
+
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
247
247
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
248
248
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
249
|
-
var STORM_DEFAULT_LICENSING = "https://
|
|
249
|
+
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
250
250
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
251
251
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
252
252
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -420,10 +420,13 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
420
420
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
421
421
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
422
422
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
423
|
-
homepage: z.string().trim().url().
|
|
424
|
-
docs: z.string().trim().url().
|
|
425
|
-
licensing: z.string().trim().url().
|
|
426
|
-
contact: z.string().trim().url().
|
|
423
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
424
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
425
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
426
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
427
|
+
support: z.string().trim().url().optional().describe(
|
|
428
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
429
|
+
),
|
|
427
430
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
428
431
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
429
432
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -522,9 +525,10 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
522
525
|
negative: "#dc2626"
|
|
523
526
|
}
|
|
524
527
|
};
|
|
525
|
-
|
|
528
|
+
async function getPackageJsonConfig(root) {
|
|
526
529
|
let license = STORM_DEFAULT_LICENSE;
|
|
527
|
-
let homepage =
|
|
530
|
+
let homepage = void 0;
|
|
531
|
+
let support = void 0;
|
|
528
532
|
let name = void 0;
|
|
529
533
|
let namespace = void 0;
|
|
530
534
|
let repository = void 0;
|
|
@@ -555,6 +559,13 @@ var getDefaultConfig = async (root) => {
|
|
|
555
559
|
if (packageJson.homepage) {
|
|
556
560
|
homepage = packageJson.homepage;
|
|
557
561
|
}
|
|
562
|
+
if (packageJson.bugs) {
|
|
563
|
+
if (typeof packageJson.bugs === "string") {
|
|
564
|
+
support = packageJson.bugs;
|
|
565
|
+
} else if (packageJson.bugs.url) {
|
|
566
|
+
support = packageJson.bugs.url;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
558
569
|
}
|
|
559
570
|
}
|
|
560
571
|
return {
|
|
@@ -564,13 +575,38 @@ var getDefaultConfig = async (root) => {
|
|
|
564
575
|
repository,
|
|
565
576
|
license,
|
|
566
577
|
homepage,
|
|
567
|
-
|
|
568
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
569
|
-
error: {
|
|
570
|
-
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
571
|
-
}
|
|
578
|
+
support
|
|
572
579
|
};
|
|
573
|
-
}
|
|
580
|
+
}
|
|
581
|
+
function applyDefaultConfig(config) {
|
|
582
|
+
if (!config.support && config.contact) {
|
|
583
|
+
config.support = config.contact;
|
|
584
|
+
}
|
|
585
|
+
if (!config.contact && config.support) {
|
|
586
|
+
config.contact = config.support;
|
|
587
|
+
}
|
|
588
|
+
if (config.homepage) {
|
|
589
|
+
if (!config.docs) {
|
|
590
|
+
config.docs = `${config.homepage}/docs`;
|
|
591
|
+
}
|
|
592
|
+
if (!config.license) {
|
|
593
|
+
config.license = `${config.homepage}/license`;
|
|
594
|
+
}
|
|
595
|
+
if (!config.support) {
|
|
596
|
+
config.support = `${config.homepage}/support`;
|
|
597
|
+
}
|
|
598
|
+
if (!config.contact) {
|
|
599
|
+
config.contact = `${config.homepage}/contact`;
|
|
600
|
+
}
|
|
601
|
+
if (!config.error?.codesFile || !config?.error?.url) {
|
|
602
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
603
|
+
if (config.homepage) {
|
|
604
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
return config;
|
|
609
|
+
}
|
|
574
610
|
|
|
575
611
|
// ../config-tools/src/logger/chalk.ts
|
|
576
612
|
import chalk from "chalk";
|
|
@@ -799,7 +835,8 @@ export {
|
|
|
799
835
|
correctPaths,
|
|
800
836
|
joinPaths,
|
|
801
837
|
findWorkspaceRoot,
|
|
802
|
-
|
|
838
|
+
getPackageJsonConfig,
|
|
839
|
+
applyDefaultConfig,
|
|
803
840
|
getLogLevel,
|
|
804
841
|
getLogLevelLabel,
|
|
805
842
|
writeWarning,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGTGBVWZPjs = require('./chunk-GTGBVWZP.js');
|
|
6
6
|
|
|
7
7
|
// src/utilities/copy-assets.ts
|
|
8
8
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
@@ -34,9 +34,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
34
34
|
output: "src/"
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkGTGBVWZPjs.writeTrace.call(void 0,
|
|
38
38
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
39
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
39
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkGTGBVWZPjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
40
40
|
config
|
|
41
41
|
);
|
|
42
42
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -47,18 +47,18 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
47
47
|
});
|
|
48
48
|
await assetHandler.processAllAssetsOnce();
|
|
49
49
|
if (includeSrc === true) {
|
|
50
|
-
|
|
51
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
50
|
+
_chunkGTGBVWZPjs.writeDebug.call(void 0,
|
|
51
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkGTGBVWZPjs.joinPaths.call(void 0,
|
|
52
52
|
outputPath,
|
|
53
53
|
"src"
|
|
54
54
|
)}`,
|
|
55
55
|
config
|
|
56
56
|
);
|
|
57
57
|
const files = await _glob.glob.call(void 0, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
_chunkGTGBVWZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
59
|
+
_chunkGTGBVWZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
60
|
+
_chunkGTGBVWZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
61
|
+
_chunkGTGBVWZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
62
62
|
]);
|
|
63
63
|
await Promise.allSettled(
|
|
64
64
|
files.map(
|
|
@@ -243,10 +243,10 @@ var LogLevelLabel = {
|
|
|
243
243
|
};
|
|
244
244
|
|
|
245
245
|
// ../config/src/constants.ts
|
|
246
|
-
var STORM_DEFAULT_DOCS = "https://
|
|
246
|
+
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
247
247
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
248
248
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
249
|
-
var STORM_DEFAULT_LICENSING = "https://
|
|
249
|
+
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
250
250
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
251
251
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
252
252
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -420,10 +420,13 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
420
420
|
organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
421
421
|
repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
422
422
|
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
423
|
-
homepage: _zod2.default.string().trim().url().
|
|
424
|
-
docs: _zod2.default.string().trim().url().
|
|
425
|
-
licensing: _zod2.default.string().trim().url().
|
|
426
|
-
contact: _zod2.default.string().trim().url().
|
|
423
|
+
homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
424
|
+
docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
425
|
+
licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
426
|
+
contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
427
|
+
support: _zod2.default.string().trim().url().optional().describe(
|
|
428
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
429
|
+
),
|
|
427
430
|
branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
|
|
428
431
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
429
432
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -522,9 +525,10 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
522
525
|
negative: "#dc2626"
|
|
523
526
|
}
|
|
524
527
|
};
|
|
525
|
-
|
|
528
|
+
async function getPackageJsonConfig(root) {
|
|
526
529
|
let license = STORM_DEFAULT_LICENSE;
|
|
527
|
-
let homepage =
|
|
530
|
+
let homepage = void 0;
|
|
531
|
+
let support = void 0;
|
|
528
532
|
let name = void 0;
|
|
529
533
|
let namespace = void 0;
|
|
530
534
|
let repository = void 0;
|
|
@@ -555,6 +559,13 @@ var getDefaultConfig = async (root) => {
|
|
|
555
559
|
if (packageJson.homepage) {
|
|
556
560
|
homepage = packageJson.homepage;
|
|
557
561
|
}
|
|
562
|
+
if (packageJson.bugs) {
|
|
563
|
+
if (typeof packageJson.bugs === "string") {
|
|
564
|
+
support = packageJson.bugs;
|
|
565
|
+
} else if (packageJson.bugs.url) {
|
|
566
|
+
support = packageJson.bugs.url;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
558
569
|
}
|
|
559
570
|
}
|
|
560
571
|
return {
|
|
@@ -564,13 +575,38 @@ var getDefaultConfig = async (root) => {
|
|
|
564
575
|
repository,
|
|
565
576
|
license,
|
|
566
577
|
homepage,
|
|
567
|
-
|
|
568
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
569
|
-
error: {
|
|
570
|
-
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
571
|
-
}
|
|
578
|
+
support
|
|
572
579
|
};
|
|
573
|
-
}
|
|
580
|
+
}
|
|
581
|
+
function applyDefaultConfig(config) {
|
|
582
|
+
if (!config.support && config.contact) {
|
|
583
|
+
config.support = config.contact;
|
|
584
|
+
}
|
|
585
|
+
if (!config.contact && config.support) {
|
|
586
|
+
config.contact = config.support;
|
|
587
|
+
}
|
|
588
|
+
if (config.homepage) {
|
|
589
|
+
if (!config.docs) {
|
|
590
|
+
config.docs = `${config.homepage}/docs`;
|
|
591
|
+
}
|
|
592
|
+
if (!config.license) {
|
|
593
|
+
config.license = `${config.homepage}/license`;
|
|
594
|
+
}
|
|
595
|
+
if (!config.support) {
|
|
596
|
+
config.support = `${config.homepage}/support`;
|
|
597
|
+
}
|
|
598
|
+
if (!config.contact) {
|
|
599
|
+
config.contact = `${config.homepage}/contact`;
|
|
600
|
+
}
|
|
601
|
+
if (!_optionalChain([config, 'access', _2 => _2.error, 'optionalAccess', _3 => _3.codesFile]) || !_optionalChain([config, 'optionalAccess', _4 => _4.error, 'optionalAccess', _5 => _5.url])) {
|
|
602
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
603
|
+
if (config.homepage) {
|
|
604
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
return config;
|
|
609
|
+
}
|
|
574
610
|
|
|
575
611
|
// ../config-tools/src/logger/chalk.ts
|
|
576
612
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
@@ -595,7 +631,7 @@ var chalkDefault = {
|
|
|
595
631
|
};
|
|
596
632
|
var getChalk = () => {
|
|
597
633
|
let _chalk = _chalk3.default;
|
|
598
|
-
if (!_optionalChain([_chalk, 'optionalAccess',
|
|
634
|
+
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])) {
|
|
599
635
|
_chalk = chalkDefault;
|
|
600
636
|
}
|
|
601
637
|
return _chalk;
|
|
@@ -683,7 +719,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
683
719
|
|
|
684
720
|
// ../config-tools/src/logger/console.ts
|
|
685
721
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
686
|
-
const colors = !_optionalChain([config, 'access',
|
|
722
|
+
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;
|
|
687
723
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
688
724
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
689
725
|
return (_) => {
|
|
@@ -783,7 +819,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
|
|
|
783
819
|
};
|
|
784
820
|
var _isFunction = (value) => {
|
|
785
821
|
try {
|
|
786
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
822
|
+
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]));
|
|
787
823
|
} catch (e) {
|
|
788
824
|
return false;
|
|
789
825
|
}
|
|
@@ -807,4 +843,5 @@ var _isFunction = (value) => {
|
|
|
807
843
|
|
|
808
844
|
|
|
809
845
|
|
|
810
|
-
|
|
846
|
+
|
|
847
|
+
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.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getPackageJsonConfig = getPackageJsonConfig; exports.applyDefaultConfig = applyDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.formatLogMessage = formatLogMessage;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGTGBVWZPjs = require('./chunk-GTGBVWZP.js');
|
|
4
4
|
|
|
5
5
|
// src/plugins/analyze.ts
|
|
6
6
|
var formatBytes = (bytes) => {
|
|
@@ -22,7 +22,7 @@ function analyze() {
|
|
|
22
22
|
renderChunk(source, chunk) {
|
|
23
23
|
const sourceBytes = formatBytes(source.length);
|
|
24
24
|
const fileName = chunk.fileName;
|
|
25
|
-
|
|
25
|
+
_chunkGTGBVWZPjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGTGBVWZPjs = require('./chunk-GTGBVWZP.js');
|
|
6
6
|
|
|
7
7
|
// src/utilities/generate-package-json.ts
|
|
8
8
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
@@ -42,7 +42,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
42
42
|
)) {
|
|
43
43
|
const projectNode = project.node;
|
|
44
44
|
if (projectNode.data.root) {
|
|
45
|
-
const projectPackageJsonPath =
|
|
45
|
+
const projectPackageJsonPath = _chunkGTGBVWZPjs.joinPaths.call(void 0,
|
|
46
46
|
workspaceRoot,
|
|
47
47
|
projectNode.data.root,
|
|
48
48
|
"package.json"
|
|
@@ -60,11 +60,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
if (localPackages.length > 0) {
|
|
63
|
-
|
|
63
|
+
_chunkGTGBVWZPjs.writeTrace.call(void 0,
|
|
64
64
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
65
65
|
);
|
|
66
66
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
67
|
-
|
|
67
|
+
_chunkGTGBVWZPjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
68
68
|
"utf8"
|
|
69
69
|
);
|
|
70
70
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -77,7 +77,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
77
77
|
}
|
|
78
78
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
|
|
79
79
|
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
80
|
-
const depPackageJsonPath =
|
|
80
|
+
const depPackageJsonPath = _chunkGTGBVWZPjs.joinPaths.call(void 0,
|
|
81
81
|
workspaceRoot,
|
|
82
82
|
projectConfigurations.projects[dep].root,
|
|
83
83
|
"package.json"
|
|
@@ -108,14 +108,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
108
108
|
return ret;
|
|
109
109
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
110
110
|
} else {
|
|
111
|
-
|
|
111
|
+
_chunkGTGBVWZPjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
112
112
|
}
|
|
113
113
|
return packageJson;
|
|
114
114
|
};
|
|
115
115
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
116
|
-
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
116
|
+
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkGTGBVWZPjs.findWorkspaceRoot.call(void 0, );
|
|
117
117
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
118
|
-
|
|
118
|
+
_chunkGTGBVWZPjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
119
119
|
"utf8"
|
|
120
120
|
);
|
|
121
121
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -126,7 +126,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
126
126
|
if (distSrc.startsWith("/")) {
|
|
127
127
|
distSrc = distSrc.substring(1);
|
|
128
128
|
}
|
|
129
|
-
packageJson.source ??= `${
|
|
129
|
+
packageJson.source ??= `${_chunkGTGBVWZPjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
130
130
|
}
|
|
131
131
|
packageJson.files ??= ["dist/**/*"];
|
|
132
132
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -151,7 +151,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
151
151
|
packageJson.contributors = [packageJson.author];
|
|
152
152
|
}
|
|
153
153
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
154
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
154
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkGTGBVWZPjs.joinPaths.call(void 0, "packages", projectName);
|
|
155
155
|
return packageJson;
|
|
156
156
|
};
|
|
157
157
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGTGBVWZPjs = require('./chunk-GTGBVWZP.js');
|
|
7
7
|
|
|
8
8
|
// src/utilities/get-entry-points.ts
|
|
9
9
|
var _glob = require('glob');
|
|
10
10
|
var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
11
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
11
|
+
const workspaceRoot = config.workspaceRoot || _chunkGTGBVWZPjs.findWorkspaceRoot.call(void 0, );
|
|
12
12
|
const entryPoints = [];
|
|
13
13
|
if (entry) {
|
|
14
14
|
if (typeof entry === "string") {
|
|
@@ -21,7 +21,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
21
21
|
}
|
|
22
22
|
if (emitOnAll) {
|
|
23
23
|
entryPoints.push(
|
|
24
|
-
|
|
24
|
+
_chunkGTGBVWZPjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
const results = await Promise.all(
|
|
@@ -34,12 +34,12 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
34
34
|
});
|
|
35
35
|
paths.push(
|
|
36
36
|
...files.reduce((ret, filePath) => {
|
|
37
|
-
const result =
|
|
38
|
-
|
|
37
|
+
const result = _chunkGTGBVWZPjs.correctPaths.call(void 0,
|
|
38
|
+
_chunkGTGBVWZPjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkGTGBVWZPjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkGTGBVWZPjs.correctPaths.call(void 0, projectRoot), "")
|
|
39
39
|
);
|
|
40
40
|
if (result) {
|
|
41
|
-
|
|
42
|
-
`Trying to add entry point ${result} at "${
|
|
41
|
+
_chunkGTGBVWZPjs.writeDebug.call(void 0,
|
|
42
|
+
`Trying to add entry point ${result} at "${_chunkGTGBVWZPjs.joinPaths.call(void 0,
|
|
43
43
|
filePath.path,
|
|
44
44
|
filePath.name
|
|
45
45
|
)}"`,
|
|
@@ -53,7 +53,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
53
53
|
}, [])
|
|
54
54
|
);
|
|
55
55
|
} else {
|
|
56
|
-
|
|
56
|
+
_chunkGTGBVWZPjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
57
57
|
if (!paths.includes(entryPoint)) {
|
|
58
58
|
paths.push(entryPoint);
|
|
59
59
|
}
|