@storm-software/build-tools 0.138.11 → 0.138.13
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-F6IJ6ZDH.js → chunk-2I6SILVY.js} +8 -8
- package/dist/{chunk-MGLY7SRH.js → chunk-65WOWE7N.js} +5 -5
- package/dist/{chunk-MEOUZRHF.js → chunk-AV34MDHF.js} +2 -2
- package/dist/{chunk-YZFCFBMW.mjs → chunk-HTNRPYG6.mjs} +1 -1
- package/dist/{chunk-DB7ZNRK7.mjs → chunk-HVD7LUL2.mjs} +1 -1
- package/dist/{chunk-7WOTDB5Q.mjs → chunk-N6OKTW5N.mjs} +8 -8
- package/dist/{chunk-FW5U7EWZ.mjs → chunk-PZHFVV5U.mjs} +1 -1
- package/dist/{chunk-XI3IAFGC.js → chunk-RNCX2PPR.js} +42 -42
- package/dist/{chunk-EGSEQ3GU.js → chunk-UWC7F6V3.js} +8 -8
- package/dist/{chunk-H2S5I64G.mjs → chunk-W62DFLBL.mjs} +1 -1
- package/dist/{chunk-IXLEVTYJ.mjs → chunk-WTXB7XUE.mjs} +1 -1
- package/dist/{chunk-O32NMIXL.mjs → chunk-XZFQYU3F.mjs} +1 -1
- package/dist/{chunk-36QSPP6E.js → chunk-YAS35AW3.js} +10 -10
- package/dist/{chunk-MWCW3ZXD.js → chunk-YX7767XY.js} +8 -8
- 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-ByCDTa24.d.ts → types-ChXrBJOT.d.mts} +358 -358
- package/dist/{types-ByCDTa24.d.mts → types-ChXrBJOT.d.ts} +358 -358
- 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 -->
|
|
@@ -607,55 +607,55 @@ var getLogFn = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (logLevel =
|
|
|
607
607
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
608
608
|
return (message) => {
|
|
609
609
|
console.error(`
|
|
610
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)}
|
|
610
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
611
611
|
`);
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
614
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
615
615
|
return (message) => {
|
|
616
616
|
console.error(`
|
|
617
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)}
|
|
617
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
618
618
|
`);
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
622
622
|
return (message) => {
|
|
623
623
|
console.warn(`
|
|
624
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)}
|
|
624
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
625
625
|
`);
|
|
626
626
|
};
|
|
627
627
|
}
|
|
628
628
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
629
629
|
return (message) => {
|
|
630
630
|
console.info(`
|
|
631
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)}
|
|
631
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
632
632
|
`);
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
635
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
636
636
|
return (message) => {
|
|
637
637
|
console.info(`
|
|
638
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)}
|
|
638
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
639
639
|
`);
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
642
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
643
643
|
return (message) => {
|
|
644
644
|
console.debug(`
|
|
645
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)}
|
|
645
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
646
646
|
`);
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
649
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
650
650
|
return (message) => {
|
|
651
651
|
console.debug(`
|
|
652
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)}
|
|
652
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
653
653
|
`);
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
656
|
return (message) => {
|
|
657
657
|
console.log(`
|
|
658
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)}
|
|
658
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
659
659
|
`);
|
|
660
660
|
};
|
|
661
661
|
}, "getLogFn");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2I6SILVYjs = require('./chunk-2I6SILVY.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -11,7 +11,7 @@ var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
|
11
11
|
// src/utilities/get-entry-points.ts
|
|
12
12
|
var _glob = require('glob');
|
|
13
13
|
var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
14
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
14
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk2I6SILVYjs.findWorkspaceRoot.call(void 0, );
|
|
15
15
|
const entryPoints = [];
|
|
16
16
|
if (entry) {
|
|
17
17
|
if (Array.isArray(entry)) {
|
|
@@ -23,7 +23,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
if (emitOnAll) {
|
|
26
|
-
entryPoints.push(
|
|
26
|
+
entryPoints.push(_chunk2I6SILVYjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
27
27
|
}
|
|
28
28
|
const results = [];
|
|
29
29
|
for (const entryPoint in entryPoints) {
|
|
@@ -32,9 +32,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
|
|
|
32
32
|
withFileTypes: true
|
|
33
33
|
});
|
|
34
34
|
results.push(...files.reduce((ret, filePath) => {
|
|
35
|
-
const result =
|
|
35
|
+
const result = _chunk2I6SILVYjs.correctPaths.call(void 0, _chunk2I6SILVYjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk2I6SILVYjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunk2I6SILVYjs.correctPaths.call(void 0, projectRoot), ""));
|
|
36
36
|
if (result) {
|
|
37
|
-
|
|
37
|
+
_chunk2I6SILVYjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunk2I6SILVYjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
38
38
|
if (!results.includes(result)) {
|
|
39
39
|
results.push(result);
|
|
40
40
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2I6SILVYjs = require('./chunk-2I6SILVY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -30,7 +30,7 @@ function analyze() {
|
|
|
30
30
|
renderChunk(source, chunk) {
|
|
31
31
|
const sourceBytes = formatBytes(source.length);
|
|
32
32
|
const fileName = chunk.fileName;
|
|
33
|
-
|
|
33
|
+
_chunk2I6SILVYjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -607,55 +607,55 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _c
|
|
|
607
607
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
608
608
|
return (message) => {
|
|
609
609
|
console.error(`
|
|
610
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)}
|
|
610
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
611
611
|
`);
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
614
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
615
615
|
return (message) => {
|
|
616
616
|
console.error(`
|
|
617
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)}
|
|
617
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
618
618
|
`);
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
622
622
|
return (message) => {
|
|
623
623
|
console.warn(`
|
|
624
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)}
|
|
624
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
625
625
|
`);
|
|
626
626
|
};
|
|
627
627
|
}
|
|
628
628
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
629
629
|
return (message) => {
|
|
630
630
|
console.info(`
|
|
631
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)}
|
|
631
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
632
632
|
`);
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
635
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
636
636
|
return (message) => {
|
|
637
637
|
console.info(`
|
|
638
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)}
|
|
638
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
639
639
|
`);
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
642
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
643
643
|
return (message) => {
|
|
644
644
|
console.debug(`
|
|
645
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)}
|
|
645
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
646
646
|
`);
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
649
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
650
650
|
return (message) => {
|
|
651
651
|
console.debug(`
|
|
652
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)}
|
|
652
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
653
653
|
`);
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
656
|
return (message) => {
|
|
657
657
|
console.log(`
|
|
658
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)}
|
|
658
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
659
659
|
`);
|
|
660
660
|
};
|
|
661
661
|
}, "getLogFn");
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk2I6SILVYjs = require('./chunk-2I6SILVY.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -23,7 +23,7 @@ var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
|
23
23
|
var _c12 = require('c12');
|
|
24
24
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
25
25
|
var getConfigFileByName = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
26
|
-
const workspacePath = filePath ||
|
|
26
|
+
const workspacePath = filePath || _chunk2I6SILVYjs.findWorkspaceRoot.call(void 0, filePath);
|
|
27
27
|
const configs = await Promise.all([
|
|
28
28
|
_c12.loadConfig.call(void 0, {
|
|
29
29
|
cwd: workspacePath,
|
|
@@ -32,7 +32,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, a
|
|
|
32
32
|
envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
|
|
33
33
|
jitiOptions: {
|
|
34
34
|
debug: false,
|
|
35
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
35
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk2I6SILVYjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
36
36
|
},
|
|
37
37
|
...options
|
|
38
38
|
}),
|
|
@@ -43,7 +43,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, a
|
|
|
43
43
|
envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
|
|
44
44
|
jitiOptions: {
|
|
45
45
|
debug: false,
|
|
46
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
46
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunk2I6SILVYjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
47
47
|
},
|
|
48
48
|
configFile: fileName,
|
|
49
49
|
...options
|
|
@@ -52,12 +52,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, a
|
|
|
52
52
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
53
53
|
}, "getConfigFileByName");
|
|
54
54
|
var getConfigFile = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
55
|
-
const workspacePath = filePath ? filePath :
|
|
55
|
+
const workspacePath = filePath ? filePath : _chunk2I6SILVYjs.findWorkspaceRoot.call(void 0, filePath);
|
|
56
56
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
57
57
|
let config = result.config;
|
|
58
58
|
const configFile = result.configFile;
|
|
59
59
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
60
|
-
|
|
60
|
+
_chunk2I6SILVYjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
61
61
|
logLevel: "all"
|
|
62
62
|
});
|
|
63
63
|
}
|
|
@@ -66,7 +66,7 @@ var getConfigFile = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (
|
|
|
66
66
|
for (const result2 of results) {
|
|
67
67
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
68
68
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
69
|
-
|
|
69
|
+
_chunk2I6SILVYjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
70
70
|
logLevel: "all"
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -114,15 +114,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, () => {
|
|
|
114
114
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
115
115
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
116
116
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
117
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
118
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
117
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunk2I6SILVYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
118
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunk2I6SILVYjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
119
119
|
directories: {
|
|
120
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
121
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
122
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
123
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
124
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
125
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
120
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunk2I6SILVYjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
121
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunk2I6SILVYjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
122
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunk2I6SILVYjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
123
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunk2I6SILVYjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
124
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunk2I6SILVYjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
125
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunk2I6SILVYjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
126
126
|
},
|
|
127
127
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
128
128
|
env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -145,24 +145,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, () => {
|
|
|
145
145
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
146
146
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
147
147
|
},
|
|
148
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ?
|
|
148
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunk2I6SILVYjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
149
149
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
150
150
|
};
|
|
151
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
151
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk2I6SILVYjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
152
152
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
153
153
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
154
154
|
return ret;
|
|
155
155
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
156
|
-
if (config.docs ===
|
|
157
|
-
if (config.homepage ===
|
|
158
|
-
config.docs = `${
|
|
156
|
+
if (config.docs === _chunk2I6SILVYjs.STORM_DEFAULT_DOCS) {
|
|
157
|
+
if (config.homepage === _chunk2I6SILVYjs.STORM_DEFAULT_HOMEPAGE) {
|
|
158
|
+
config.docs = `${_chunk2I6SILVYjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
159
159
|
} else {
|
|
160
160
|
config.docs = `${config.homepage}/docs`;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
if (config.licensing ===
|
|
164
|
-
if (config.homepage ===
|
|
165
|
-
config.licensing = `${
|
|
163
|
+
if (config.licensing === _chunk2I6SILVYjs.STORM_DEFAULT_LICENSING) {
|
|
164
|
+
if (config.homepage === _chunk2I6SILVYjs.STORM_DEFAULT_HOMEPAGE) {
|
|
165
|
+
config.licensing = `${_chunk2I6SILVYjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
166
166
|
} else {
|
|
167
167
|
config.licensing = `${config.homepage}/docs`;
|
|
168
168
|
}
|
|
@@ -300,31 +300,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (config)
|
|
|
300
300
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
301
301
|
}
|
|
302
302
|
if (config.configFile) {
|
|
303
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
303
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunk2I6SILVYjs.correctPaths.call(void 0, config.configFile);
|
|
304
304
|
}
|
|
305
305
|
if (config.workspaceRoot) {
|
|
306
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
307
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
308
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
306
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunk2I6SILVYjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
307
|
+
process.env.NX_WORKSPACE_ROOT = _chunk2I6SILVYjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
308
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunk2I6SILVYjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
309
309
|
}
|
|
310
310
|
if (config.directories) {
|
|
311
311
|
if (!config.skipCache && config.directories.cache) {
|
|
312
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
312
|
+
process.env[`${prefix}CACHE_DIR`] = _chunk2I6SILVYjs.correctPaths.call(void 0, config.directories.cache);
|
|
313
313
|
}
|
|
314
314
|
if (config.directories.data) {
|
|
315
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
315
|
+
process.env[`${prefix}DATA_DIR`] = _chunk2I6SILVYjs.correctPaths.call(void 0, config.directories.data);
|
|
316
316
|
}
|
|
317
317
|
if (config.directories.config) {
|
|
318
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
318
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunk2I6SILVYjs.correctPaths.call(void 0, config.directories.config);
|
|
319
319
|
}
|
|
320
320
|
if (config.directories.temp) {
|
|
321
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
321
|
+
process.env[`${prefix}TEMP_DIR`] = _chunk2I6SILVYjs.correctPaths.call(void 0, config.directories.temp);
|
|
322
322
|
}
|
|
323
323
|
if (config.directories.log) {
|
|
324
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
324
|
+
process.env[`${prefix}LOG_DIR`] = _chunk2I6SILVYjs.correctPaths.call(void 0, config.directories.log);
|
|
325
325
|
}
|
|
326
326
|
if (config.directories.build) {
|
|
327
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
327
|
+
process.env[`${prefix}BUILD_DIR`] = _chunk2I6SILVYjs.correctPaths.call(void 0, config.directories.build);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
if (config.skipCache !== void 0) {
|
|
@@ -378,8 +378,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (config)
|
|
|
378
378
|
if (config.logLevel) {
|
|
379
379
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
380
380
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
381
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
382
|
-
process.env.RUST_BACKTRACE =
|
|
381
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunk2I6SILVYjs.getLogLevel.call(void 0, config.logLevel) >= _chunk2I6SILVYjs.LogLevel.DEBUG ? true : false);
|
|
382
|
+
process.env.RUST_BACKTRACE = _chunk2I6SILVYjs.getLogLevel.call(void 0, config.logLevel) >= _chunk2I6SILVYjs.LogLevel.DEBUG ? "full" : "none";
|
|
383
383
|
}
|
|
384
384
|
if (config.skipConfigLogging !== void 0) {
|
|
385
385
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
@@ -495,17 +495,17 @@ var createStormConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, asy
|
|
|
495
495
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
496
496
|
let _workspaceRoot = workspaceRoot;
|
|
497
497
|
if (!_workspaceRoot) {
|
|
498
|
-
_workspaceRoot =
|
|
498
|
+
_workspaceRoot = _chunk2I6SILVYjs.findWorkspaceRoot.call(void 0, );
|
|
499
499
|
}
|
|
500
500
|
const configEnv = getConfigEnv();
|
|
501
|
-
const defaultConfig = await
|
|
501
|
+
const defaultConfig = await _chunk2I6SILVYjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
502
502
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
503
503
|
if (!configFile && !skipLogs) {
|
|
504
|
-
|
|
504
|
+
_chunk2I6SILVYjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
505
505
|
logLevel: "all"
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
|
-
result = await
|
|
508
|
+
result = await _chunk2I6SILVYjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
509
509
|
result.workspaceRoot ??= _workspaceRoot;
|
|
510
510
|
} else {
|
|
511
511
|
result = _static_cache.data;
|
|
@@ -540,8 +540,8 @@ var loadStormConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async
|
|
|
540
540
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
541
541
|
setConfigEnv(config);
|
|
542
542
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
543
|
-
|
|
544
|
-
${
|
|
543
|
+
_chunk2I6SILVYjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
544
|
+
${_chunk2I6SILVYjs.formatLogMessage.call(void 0, config)}`, config);
|
|
545
545
|
}
|
|
546
546
|
return config;
|
|
547
547
|
}, "loadStormConfig");
|
|
@@ -560,7 +560,7 @@ var readNxConfig = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (w
|
|
|
560
560
|
const config = await getConfig();
|
|
561
561
|
rootDir = config.workspaceRoot;
|
|
562
562
|
}
|
|
563
|
-
const nxJsonPath =
|
|
563
|
+
const nxJsonPath = _chunk2I6SILVYjs.joinPaths.call(void 0, rootDir, "nx.json");
|
|
564
564
|
if (!_fs.existsSync.call(void 0, nxJsonPath)) {
|
|
565
565
|
throw new Error("Cannot find project.json configuration");
|
|
566
566
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2I6SILVYjs = require('./chunk-2I6SILVY.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -37,8 +37,8 @@ var copyAssets = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (con
|
|
|
37
37
|
output: "src/"
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
40
|
+
_chunk2I6SILVYjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
41
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunk2I6SILVYjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
42
42
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
43
43
|
projectDir: projectRoot,
|
|
44
44
|
rootDir: config.workspaceRoot,
|
|
@@ -47,12 +47,12 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
47
47
|
});
|
|
48
48
|
await assetHandler.processAllAssetsOnce();
|
|
49
49
|
if (includeSrc === true) {
|
|
50
|
-
|
|
50
|
+
_chunk2I6SILVYjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunk2I6SILVYjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
51
51
|
const files = await _glob.glob.call(void 0, [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
_chunk2I6SILVYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
53
|
+
_chunk2I6SILVYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
54
|
+
_chunk2I6SILVYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
55
|
+
_chunk2I6SILVYjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
56
56
|
]);
|
|
57
57
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
58
58
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2I6SILVYjs = require('./chunk-2I6SILVY.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
@@ -20,7 +20,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0
|
|
|
20
20
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
21
21
|
const projectNode = project.node;
|
|
22
22
|
if (projectNode.data.root) {
|
|
23
|
-
const projectPackageJsonPath =
|
|
23
|
+
const projectPackageJsonPath = _chunk2I6SILVYjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
|
|
24
24
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
25
25
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
26
26
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -31,8 +31,8 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
if (localPackages.length > 0) {
|
|
34
|
-
|
|
35
|
-
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
34
|
+
_chunk2I6SILVYjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
35
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunk2I6SILVYjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
36
36
|
const projectJson = JSON.parse(projectJsonFile);
|
|
37
37
|
const projectName2 = projectJson.name;
|
|
38
38
|
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
@@ -41,7 +41,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0
|
|
|
41
41
|
}
|
|
42
42
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _3 => _3.projects, 'optionalAccess', _4 => _4[projectName2], 'access', _5 => _5.implicitDependencies, 'optionalAccess', _6 => _6.reduce, 'call', _7 => _7((ret, dep) => {
|
|
43
43
|
if (_optionalChain([projectConfigurations, 'access', _8 => _8.projects, 'optionalAccess', _9 => _9[dep]])) {
|
|
44
|
-
const depPackageJsonPath =
|
|
44
|
+
const depPackageJsonPath = _chunk2I6SILVYjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
|
|
45
45
|
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
46
46
|
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
47
47
|
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
@@ -65,13 +65,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0
|
|
|
65
65
|
return ret;
|
|
66
66
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
67
67
|
} else {
|
|
68
|
-
|
|
68
|
+
_chunk2I6SILVYjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
69
69
|
}
|
|
70
70
|
return packageJson;
|
|
71
71
|
}, "addPackageDependencies");
|
|
72
72
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
73
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
74
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
73
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunk2I6SILVYjs.findWorkspaceRoot.call(void 0, );
|
|
74
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunk2I6SILVYjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
75
75
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
76
76
|
packageJson.type ??= "module";
|
|
77
77
|
packageJson.sideEffects ??= false;
|
|
@@ -80,7 +80,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call
|
|
|
80
80
|
if (distSrc.startsWith("/")) {
|
|
81
81
|
distSrc = distSrc.substring(1);
|
|
82
82
|
}
|
|
83
|
-
packageJson.source ??= `${
|
|
83
|
+
packageJson.source ??= `${_chunk2I6SILVYjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
84
84
|
}
|
|
85
85
|
packageJson.files ??= [
|
|
86
86
|
"dist/**/*"
|
|
@@ -111,7 +111,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call
|
|
|
111
111
|
];
|
|
112
112
|
}
|
|
113
113
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
114
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
114
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunk2I6SILVYjs.joinPaths.call(void 0, "packages", projectName);
|
|
115
115
|
return packageJson;
|
|
116
116
|
}, "addWorkspacePackageJsonFields");
|
|
117
117
|
var addPackageJsonExport = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|