@storm-software/build-tools 0.155.2 → 0.155.3
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-TFYTC3YL.mjs → chunk-2SOZ7GIA.mjs} +1 -1
- package/dist/{chunk-35Z5ZVAR.js → chunk-736ODPTW.js} +7 -7
- package/dist/{chunk-JINEP2DE.mjs → chunk-7QY5Q44S.mjs} +1 -1
- package/dist/{chunk-KARMSXU3.mjs → chunk-CKVJLUYT.mjs} +2 -2
- package/dist/{chunk-JVKCJMCK.js → chunk-I2YBUOU3.js} +2 -2
- package/dist/{chunk-C46ZCHDM.js → chunk-KSHAZLHJ.js} +28 -28
- package/dist/{chunk-4UACS7QB.mjs → chunk-RATSP55P.mjs} +2 -2
- package/dist/{chunk-UMP4EIAS.js → chunk-RT7TYAN5.js} +3 -3
- package/dist/{chunk-YXQSVZCD.mjs → chunk-TLB7QTPW.mjs} +2 -2
- package/dist/{chunk-MXKJT3OE.mjs → chunk-VXUVNB76.mjs} +1 -1
- package/dist/{chunk-WBSHEDA6.js → chunk-X4HWLCTK.js} +9 -9
- package/dist/{chunk-BP4NPFBZ.js → chunk-XYMRJHC7.js} +7 -7
- package/dist/index.js +7 -7
- package/dist/index.mjs +6 -6
- package/dist/utilities/copy-assets.js +3 -3
- package/dist/utilities/copy-assets.mjs +2 -2
- package/dist/utilities/generate-package-json.js +4 -4
- package/dist/utilities/generate-package-json.mjs +3 -3
- package/dist/utilities/get-entry-points.js +4 -4
- package/dist/utilities/get-entry-points.mjs +3 -3
- package/dist/utilities/index.js +7 -7
- package/dist/utilities/index.mjs +6 -6
- package/dist/utilities/read-nx-config.js +4 -4
- package/dist/utilities/read-nx-config.mjs +3 -3
- package/package.json +2 -2
- package/dist/types-GK3Jz4Bz.d.mts +0 -230
- package/dist/types-GK3Jz4Bz.d.ts +0 -230
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 -->
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRT7TYAN5js = require('./chunk-RT7TYAN5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkKTEGKYAHjs = require('./chunk-KTEGKYAH.js');
|
|
@@ -12,7 +12,7 @@ var _chunkKTEGKYAHjs = require('./chunk-KTEGKYAH.js');
|
|
|
12
12
|
// src/utilities/get-entry-points.ts
|
|
13
13
|
var _glob = require('glob');
|
|
14
14
|
var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
15
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
15
|
+
const workspaceRoot = config.workspaceRoot || _chunkRT7TYAN5js.findWorkspaceRoot.call(void 0, );
|
|
16
16
|
const entryPoints = [];
|
|
17
17
|
if (entry) {
|
|
18
18
|
if (typeof entry === "string") {
|
|
@@ -25,7 +25,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
25
25
|
}
|
|
26
26
|
if (emitOnAll) {
|
|
27
27
|
entryPoints.push(
|
|
28
|
-
|
|
28
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
const results = await Promise.all(
|
|
@@ -38,12 +38,12 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
38
38
|
});
|
|
39
39
|
paths.push(
|
|
40
40
|
...files.reduce((ret, filePath) => {
|
|
41
|
-
const result =
|
|
42
|
-
|
|
41
|
+
const result = _chunkI2YBUOU3js.correctPaths.call(void 0,
|
|
42
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkI2YBUOU3js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkI2YBUOU3js.correctPaths.call(void 0, projectRoot), "")
|
|
43
43
|
);
|
|
44
44
|
if (result) {
|
|
45
45
|
_chunkKTEGKYAHjs.writeDebug.call(void 0,
|
|
46
|
-
`Trying to add entry point ${result} at "${
|
|
46
|
+
`Trying to add entry point ${result} at "${_chunkI2YBUOU3js.joinPaths.call(void 0,
|
|
47
47
|
filePath.path,
|
|
48
48
|
filePath.name
|
|
49
49
|
)}"`,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2SOZ7GIA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
correctPaths,
|
|
6
6
|
joinPaths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VXUVNB76.mjs";
|
|
8
8
|
import {
|
|
9
9
|
writeDebug
|
|
10
10
|
} from "./chunk-R2HS3O2S.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/utilities/correct-paths.ts
|
|
2
2
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
3
3
|
function normalizeWindowsPath(input = "") {
|
|
4
4
|
if (!input) {
|
|
@@ -14,7 +14,7 @@ var correctPaths = function(path) {
|
|
|
14
14
|
return ".";
|
|
15
15
|
}
|
|
16
16
|
path = normalizeWindowsPath(path);
|
|
17
|
-
const isUNCPath = path.match(_UNC_REGEX);
|
|
17
|
+
const isUNCPath = _optionalChain([path, 'optionalAccess', _ => _.match, 'call', _2 => _2(_UNC_REGEX)]);
|
|
18
18
|
const isPathAbsolute = isAbsolute(path);
|
|
19
19
|
const trailingSeparator = path[path.length - 1] === "/";
|
|
20
20
|
path = normalizeString(path, !isPathAbsolute);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkRT7TYAN5js = require('./chunk-RT7TYAN5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -620,10 +620,10 @@ async function getPackageJsonConfig(root) {
|
|
|
620
620
|
let name = void 0;
|
|
621
621
|
let namespace = void 0;
|
|
622
622
|
let repository = void 0;
|
|
623
|
-
const workspaceRoot =
|
|
623
|
+
const workspaceRoot = _chunkRT7TYAN5js.findWorkspaceRoot.call(void 0, root);
|
|
624
624
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
625
625
|
const file = await _promises.readFile.call(void 0,
|
|
626
|
-
|
|
626
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
627
627
|
"utf8"
|
|
628
628
|
);
|
|
629
629
|
if (file) {
|
|
@@ -698,7 +698,7 @@ function applyDefaultConfig(config) {
|
|
|
698
698
|
|
|
699
699
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
700
700
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
701
|
-
const workspacePath = filePath ||
|
|
701
|
+
const workspacePath = filePath || _chunkRT7TYAN5js.findWorkspaceRoot.call(void 0, filePath);
|
|
702
702
|
const configs = await Promise.all([
|
|
703
703
|
_c12.loadConfig.call(void 0, {
|
|
704
704
|
cwd: workspacePath,
|
|
@@ -707,7 +707,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
707
707
|
envName: _optionalChain([fileName, 'optionalAccess', _5 => _5.toUpperCase, 'call', _6 => _6()]),
|
|
708
708
|
jitiOptions: {
|
|
709
709
|
debug: false,
|
|
710
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
710
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkI2YBUOU3js.joinPaths.call(void 0,
|
|
711
711
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
712
712
|
"jiti"
|
|
713
713
|
)
|
|
@@ -721,7 +721,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
721
721
|
envName: _optionalChain([fileName, 'optionalAccess', _7 => _7.toUpperCase, 'call', _8 => _8()]),
|
|
722
722
|
jitiOptions: {
|
|
723
723
|
debug: false,
|
|
724
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
724
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkI2YBUOU3js.joinPaths.call(void 0,
|
|
725
725
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
726
726
|
"jiti"
|
|
727
727
|
)
|
|
@@ -733,7 +733,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
733
733
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
734
734
|
};
|
|
735
735
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
736
|
-
const workspacePath = filePath ? filePath :
|
|
736
|
+
const workspacePath = filePath ? filePath : _chunkRT7TYAN5js.findWorkspaceRoot.call(void 0, filePath);
|
|
737
737
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
738
738
|
let config = result.config;
|
|
739
739
|
const configFile = result.configFile;
|
|
@@ -837,15 +837,15 @@ var getConfigEnv = () => {
|
|
|
837
837
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
838
838
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
839
839
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
840
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
841
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
840
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
841
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
842
842
|
directories: {
|
|
843
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
844
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
845
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
846
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
847
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
848
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
843
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
844
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
845
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
846
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
847
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
848
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkI2YBUOU3js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
849
849
|
},
|
|
850
850
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
851
851
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1135,42 +1135,42 @@ var setConfigEnv = (config) => {
|
|
|
1135
1135
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1136
1136
|
}
|
|
1137
1137
|
if (config.configFile) {
|
|
1138
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1138
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkI2YBUOU3js.correctPaths.call(void 0,
|
|
1139
1139
|
config.configFile
|
|
1140
1140
|
);
|
|
1141
1141
|
}
|
|
1142
1142
|
if (config.workspaceRoot) {
|
|
1143
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1144
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1145
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1143
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkI2YBUOU3js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1144
|
+
process.env.NX_WORKSPACE_ROOT = _chunkI2YBUOU3js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1145
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkI2YBUOU3js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1146
1146
|
}
|
|
1147
1147
|
if (config.directories) {
|
|
1148
1148
|
if (!config.skipCache && config.directories.cache) {
|
|
1149
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1149
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkI2YBUOU3js.correctPaths.call(void 0,
|
|
1150
1150
|
config.directories.cache
|
|
1151
1151
|
);
|
|
1152
1152
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1153
1153
|
}
|
|
1154
1154
|
if (config.directories.data) {
|
|
1155
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1155
|
+
process.env[`${prefix}DATA_DIR`] = _chunkI2YBUOU3js.correctPaths.call(void 0, config.directories.data);
|
|
1156
1156
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1157
1157
|
}
|
|
1158
1158
|
if (config.directories.config) {
|
|
1159
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1159
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkI2YBUOU3js.correctPaths.call(void 0,
|
|
1160
1160
|
config.directories.config
|
|
1161
1161
|
);
|
|
1162
1162
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1163
1163
|
}
|
|
1164
1164
|
if (config.directories.temp) {
|
|
1165
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1165
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkI2YBUOU3js.correctPaths.call(void 0, config.directories.temp);
|
|
1166
1166
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1167
1167
|
}
|
|
1168
1168
|
if (config.directories.log) {
|
|
1169
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1169
|
+
process.env[`${prefix}LOG_DIR`] = _chunkI2YBUOU3js.correctPaths.call(void 0, config.directories.log);
|
|
1170
1170
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1171
1171
|
}
|
|
1172
1172
|
if (config.directories.build) {
|
|
1173
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1173
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkI2YBUOU3js.correctPaths.call(void 0,
|
|
1174
1174
|
config.directories.build
|
|
1175
1175
|
);
|
|
1176
1176
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1364,7 +1364,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1364
1364
|
if (!_optionalChain([_static_cache, 'optionalAccess', _33 => _33.data]) || !_optionalChain([_static_cache, 'optionalAccess', _34 => _34.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1365
1365
|
let _workspaceRoot = workspaceRoot;
|
|
1366
1366
|
if (!_workspaceRoot) {
|
|
1367
|
-
_workspaceRoot =
|
|
1367
|
+
_workspaceRoot = _chunkRT7TYAN5js.findWorkspaceRoot.call(void 0, );
|
|
1368
1368
|
}
|
|
1369
1369
|
const configEnv = getConfigEnv();
|
|
1370
1370
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
@@ -1462,7 +1462,7 @@ var readNxConfig = async (workspaceRoot) => {
|
|
|
1462
1462
|
const config = await getConfig();
|
|
1463
1463
|
rootDir = config.workspaceRoot;
|
|
1464
1464
|
}
|
|
1465
|
-
const nxJsonPath =
|
|
1465
|
+
const nxJsonPath = _chunkI2YBUOU3js.joinPaths.call(void 0, rootDir, "nx.json");
|
|
1466
1466
|
if (!_fs.existsSync.call(void 0, nxJsonPath)) {
|
|
1467
1467
|
throw new Error("Cannot find project.json configuration");
|
|
1468
1468
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/find-up.ts
|
|
6
6
|
var _fs = require('fs');
|
|
@@ -70,11 +70,11 @@ var rootDirectories = [
|
|
|
70
70
|
];
|
|
71
71
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
72
72
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
73
|
-
return
|
|
73
|
+
return _chunkI2YBUOU3js.correctPaths.call(void 0,
|
|
74
74
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return _chunkI2YBUOU3js.correctPaths.call(void 0,
|
|
78
78
|
findFolderUp(
|
|
79
79
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
80
80
|
rootFiles,
|
|
@@ -14,7 +14,7 @@ var correctPaths = function(path) {
|
|
|
14
14
|
return ".";
|
|
15
15
|
}
|
|
16
16
|
path = normalizeWindowsPath(path);
|
|
17
|
-
const isUNCPath = path
|
|
17
|
+
const isUNCPath = path?.match(_UNC_REGEX);
|
|
18
18
|
const isPathAbsolute = isAbsolute(path);
|
|
19
19
|
const trailingSeparator = path[path.length - 1] === "/";
|
|
20
20
|
path = normalizeString(path, !isPathAbsolute);
|
|
@@ -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 _chunkRT7TYAN5js = require('./chunk-RT7TYAN5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkKTEGKYAHjs = require('./chunk-KTEGKYAH.js');
|
|
@@ -46,7 +46,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
46
46
|
)) {
|
|
47
47
|
const projectNode = project.node;
|
|
48
48
|
if (projectNode.data.root) {
|
|
49
|
-
const projectPackageJsonPath =
|
|
49
|
+
const projectPackageJsonPath = _chunkI2YBUOU3js.joinPaths.call(void 0,
|
|
50
50
|
workspaceRoot,
|
|
51
51
|
projectNode.data.root,
|
|
52
52
|
"package.json"
|
|
@@ -68,7 +68,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
68
68
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
69
69
|
);
|
|
70
70
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
71
|
-
|
|
71
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
72
72
|
"utf8"
|
|
73
73
|
);
|
|
74
74
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -81,7 +81,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
81
81
|
}
|
|
82
82
|
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) => {
|
|
83
83
|
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
84
|
-
const depPackageJsonPath =
|
|
84
|
+
const depPackageJsonPath = _chunkI2YBUOU3js.joinPaths.call(void 0,
|
|
85
85
|
workspaceRoot,
|
|
86
86
|
projectConfigurations.projects[dep].root,
|
|
87
87
|
"package.json"
|
|
@@ -117,9 +117,9 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
117
117
|
return packageJson;
|
|
118
118
|
};
|
|
119
119
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
120
|
-
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
120
|
+
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkRT7TYAN5js.findWorkspaceRoot.call(void 0, );
|
|
121
121
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
122
|
-
|
|
122
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
123
123
|
"utf8"
|
|
124
124
|
);
|
|
125
125
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -130,7 +130,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
130
130
|
if (distSrc.startsWith("/")) {
|
|
131
131
|
distSrc = distSrc.substring(1);
|
|
132
132
|
}
|
|
133
|
-
packageJson.source ??= `${
|
|
133
|
+
packageJson.source ??= `${_chunkI2YBUOU3js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
134
134
|
}
|
|
135
135
|
packageJson.files ??= ["dist/**/*"];
|
|
136
136
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -155,7 +155,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
155
155
|
packageJson.contributors = [packageJson.author];
|
|
156
156
|
}
|
|
157
157
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
158
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
158
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkI2YBUOU3js.joinPaths.call(void 0, "packages", projectName);
|
|
159
159
|
return packageJson;
|
|
160
160
|
};
|
|
161
161
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -38,7 +38,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
38
38
|
}
|
|
39
39
|
_chunkKTEGKYAHjs.writeTrace.call(void 0,
|
|
40
40
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
41
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
41
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkI2YBUOU3js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
42
42
|
config
|
|
43
43
|
);
|
|
44
44
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -51,17 +51,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
51
51
|
_chunkKTEGKYAHjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
52
52
|
if (includeSrc === true) {
|
|
53
53
|
_chunkKTEGKYAHjs.writeDebug.call(void 0,
|
|
54
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
54
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkI2YBUOU3js.joinPaths.call(void 0,
|
|
55
55
|
outputPath,
|
|
56
56
|
"src"
|
|
57
57
|
)}`,
|
|
58
58
|
config
|
|
59
59
|
);
|
|
60
60
|
const files = await _glob.glob.call(void 0, [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
62
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
63
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
64
|
+
_chunkI2YBUOU3js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
65
65
|
]);
|
|
66
66
|
await Promise.allSettled(
|
|
67
67
|
files.map(
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-65HIHTHN.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKSHAZLHJjs = require('./chunk-KSHAZLHJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkP3MQZA3Djs = require('./chunk-P3MQZA3D.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkXYMRJHC7js = require('./chunk-XYMRJHC7.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkX4HWLCTKjs = require('./chunk-X4HWLCTK.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
20
|
+
var _chunk736ODPTWjs = require('./chunk-736ODPTW.js');
|
|
21
|
+
require('./chunk-RT7TYAN5.js');
|
|
22
|
+
require('./chunk-I2YBUOU3.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkWLW3DA6Xjs = require('./chunk-WLW3DA6X.js');
|
|
@@ -81,4 +81,4 @@ var _chunkN7HP2YYEjs = require('./chunk-N7HP2YYE.js');
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
exports.DEFAULT_COMPILED_BANNER = _chunkMYIXHZMSjs.DEFAULT_COMPILED_BANNER; exports.DEFAULT_ENVIRONMENT = _chunkMYIXHZMSjs.DEFAULT_ENVIRONMENT; exports.DEFAULT_ORGANIZATION = _chunkMYIXHZMSjs.DEFAULT_ORGANIZATION; exports.DEFAULT_PLATFORM = _chunkMYIXHZMSjs.DEFAULT_PLATFORM; exports.DEFAULT_TARGET = _chunkMYIXHZMSjs.DEFAULT_TARGET; exports.addPackageDependencies =
|
|
84
|
+
exports.DEFAULT_COMPILED_BANNER = _chunkMYIXHZMSjs.DEFAULT_COMPILED_BANNER; exports.DEFAULT_ENVIRONMENT = _chunkMYIXHZMSjs.DEFAULT_ENVIRONMENT; exports.DEFAULT_ORGANIZATION = _chunkMYIXHZMSjs.DEFAULT_ORGANIZATION; exports.DEFAULT_PLATFORM = _chunkMYIXHZMSjs.DEFAULT_PLATFORM; exports.DEFAULT_TARGET = _chunkMYIXHZMSjs.DEFAULT_TARGET; exports.addPackageDependencies = _chunkX4HWLCTKjs.addPackageDependencies; exports.addPackageJsonExport = _chunkX4HWLCTKjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkX4HWLCTKjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkX4HWLCTKjs.addWorkspacePackageJsonFields; exports.analyze = _chunkFCNQFEENjs.analyze; exports.copyAssets = _chunkXYMRJHC7js.copyAssets; exports.createTaskId = _chunkP3MQZA3Djs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkP3MQZA3Djs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunk736ODPTWjs.getEntryPoints; exports.getEnv = _chunkWLW3DA6Xjs.getEnv; exports.getExternalDependencies = _chunkWNMPQTPHjs.getExternalDependencies; exports.getExtraDependencies = _chunkWNMPQTPHjs.getExtraDependencies; exports.getFileBanner = _chunkUHJ5ACWHjs.getFileBanner; exports.getInternalDependencies = _chunkWNMPQTPHjs.getInternalDependencies; exports.getOutExtension = _chunkA75DEKU5js.getOutExtension; exports.readNxConfig = _chunkKSHAZLHJjs.readNxConfig; exports.swc = _chunkHQD5ZBIUjs.swc; exports.tsResolvePlugin = _chunkHHQVJURJjs.tsResolvePlugin; exports.typeDefinitions = _chunkN7HP2YYEjs.typeDefinitions;
|
package/dist/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import "./chunk-KVP3YMX6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
readNxConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RATSP55P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createTaskId,
|
|
7
7
|
getAllWorkspaceTaskGraphs
|
|
8
8
|
} from "./chunk-JCFRYUYP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
copyAssets
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7QY5Q44S.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addPackageDependencies,
|
|
14
14
|
addPackageJsonExport,
|
|
15
15
|
addPackageJsonExports,
|
|
16
16
|
addWorkspacePackageJsonFields
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TLB7QTPW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
getEntryPoints
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-CKVJLUYT.mjs";
|
|
21
|
+
import "./chunk-2SOZ7GIA.mjs";
|
|
22
|
+
import "./chunk-VXUVNB76.mjs";
|
|
23
23
|
import {
|
|
24
24
|
getEnv
|
|
25
25
|
} from "./chunk-HGTDDXA5.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkXYMRJHC7js = require('../chunk-XYMRJHC7.js');
|
|
4
|
+
require('../chunk-I2YBUOU3.js');
|
|
5
5
|
require('../chunk-KTEGKYAH.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.copyAssets =
|
|
8
|
+
exports.copyAssets = _chunkXYMRJHC7js.copyAssets;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
6
|
+
var _chunkX4HWLCTKjs = require('../chunk-X4HWLCTK.js');
|
|
7
|
+
require('../chunk-RT7TYAN5.js');
|
|
8
|
+
require('../chunk-I2YBUOU3.js');
|
|
9
9
|
require('../chunk-KTEGKYAH.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.addPackageDependencies =
|
|
15
|
+
exports.addPackageDependencies = _chunkX4HWLCTKjs.addPackageDependencies; exports.addPackageJsonExport = _chunkX4HWLCTKjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkX4HWLCTKjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkX4HWLCTKjs.addWorkspacePackageJsonFields;
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
addPackageJsonExport,
|
|
4
4
|
addPackageJsonExports,
|
|
5
5
|
addWorkspacePackageJsonFields
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-TLB7QTPW.mjs";
|
|
7
|
+
import "../chunk-2SOZ7GIA.mjs";
|
|
8
|
+
import "../chunk-VXUVNB76.mjs";
|
|
9
9
|
import "../chunk-R2HS3O2S.mjs";
|
|
10
10
|
export {
|
|
11
11
|
addPackageDependencies,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunk736ODPTWjs = require('../chunk-736ODPTW.js');
|
|
4
|
+
require('../chunk-RT7TYAN5.js');
|
|
5
|
+
require('../chunk-I2YBUOU3.js');
|
|
6
6
|
require('../chunk-KTEGKYAH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.getEntryPoints =
|
|
9
|
+
exports.getEntryPoints = _chunk736ODPTWjs.getEntryPoints;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getEntryPoints
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-CKVJLUYT.mjs";
|
|
4
|
+
import "../chunk-2SOZ7GIA.mjs";
|
|
5
|
+
import "../chunk-VXUVNB76.mjs";
|
|
6
6
|
import "../chunk-R2HS3O2S.mjs";
|
|
7
7
|
export {
|
|
8
8
|
getEntryPoints
|
package/dist/utilities/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-65HIHTHN.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKSHAZLHJjs = require('../chunk-KSHAZLHJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkP3MQZA3Djs = require('../chunk-P3MQZA3D.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkXYMRJHC7js = require('../chunk-XYMRJHC7.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkX4HWLCTKjs = require('../chunk-X4HWLCTK.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
20
|
+
var _chunk736ODPTWjs = require('../chunk-736ODPTW.js');
|
|
21
|
+
require('../chunk-RT7TYAN5.js');
|
|
22
|
+
require('../chunk-I2YBUOU3.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkWLW3DA6Xjs = require('../chunk-WLW3DA6X.js');
|
|
@@ -52,4 +52,4 @@ require('../chunk-KTEGKYAH.js');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
exports.addPackageDependencies =
|
|
55
|
+
exports.addPackageDependencies = _chunkX4HWLCTKjs.addPackageDependencies; exports.addPackageJsonExport = _chunkX4HWLCTKjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkX4HWLCTKjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkX4HWLCTKjs.addWorkspacePackageJsonFields; exports.copyAssets = _chunkXYMRJHC7js.copyAssets; exports.createTaskId = _chunkP3MQZA3Djs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkP3MQZA3Djs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunk736ODPTWjs.getEntryPoints; exports.getEnv = _chunkWLW3DA6Xjs.getEnv; exports.getExternalDependencies = _chunkWNMPQTPHjs.getExternalDependencies; exports.getExtraDependencies = _chunkWNMPQTPHjs.getExtraDependencies; exports.getFileBanner = _chunkUHJ5ACWHjs.getFileBanner; exports.getInternalDependencies = _chunkWNMPQTPHjs.getInternalDependencies; exports.getOutExtension = _chunkA75DEKU5js.getOutExtension; exports.readNxConfig = _chunkKSHAZLHJjs.readNxConfig;
|
package/dist/utilities/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import "../chunk-KVP3YMX6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
readNxConfig
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RATSP55P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createTaskId,
|
|
7
7
|
getAllWorkspaceTaskGraphs
|
|
8
8
|
} from "../chunk-JCFRYUYP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
copyAssets
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-7QY5Q44S.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addPackageDependencies,
|
|
14
14
|
addPackageJsonExport,
|
|
15
15
|
addPackageJsonExports,
|
|
16
16
|
addWorkspacePackageJsonFields
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-TLB7QTPW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
getEntryPoints
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-CKVJLUYT.mjs";
|
|
21
|
+
import "../chunk-2SOZ7GIA.mjs";
|
|
22
|
+
import "../chunk-VXUVNB76.mjs";
|
|
23
23
|
import {
|
|
24
24
|
getEnv
|
|
25
25
|
} from "../chunk-HGTDDXA5.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkKSHAZLHJjs = require('../chunk-KSHAZLHJ.js');
|
|
4
|
+
require('../chunk-RT7TYAN5.js');
|
|
5
|
+
require('../chunk-I2YBUOU3.js');
|
|
6
6
|
require('../chunk-KTEGKYAH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.readNxConfig =
|
|
9
|
+
exports.readNxConfig = _chunkKSHAZLHJjs.readNxConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readNxConfig
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-RATSP55P.mjs";
|
|
4
|
+
import "../chunk-2SOZ7GIA.mjs";
|
|
5
|
+
import "../chunk-VXUVNB76.mjs";
|
|
6
6
|
import "../chunk-R2HS3O2S.mjs";
|
|
7
7
|
export {
|
|
8
8
|
readNxConfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/build-tools",
|
|
3
|
-
"version": "0.155.
|
|
3
|
+
"version": "0.155.3",
|
|
4
4
|
"description": "A comprehensive set of tools for building and managing projects within a Storm workspace. Includes builders such as rollup, rolldown, tsup, and unbuild, along with various utilities.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"typescript": "^5.9.2"
|
|
169
169
|
},
|
|
170
170
|
"publishConfig": { "access": "public" },
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "1b9f901274134d51c4200e5797348cf9587203dc"
|
|
172
172
|
}
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import * as z$1 from 'zod';
|
|
2
|
-
import * as z from 'zod/mini';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
|
|
6
|
-
*/
|
|
7
|
-
declare const workspaceConfigSchema: z.ZodMiniObject<{
|
|
8
|
-
$schema: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
9
|
-
extends: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
10
|
-
name: z.ZodMiniString<string>;
|
|
11
|
-
variant: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
12
|
-
minimal: "minimal";
|
|
13
|
-
monorepo: "monorepo";
|
|
14
|
-
}>>;
|
|
15
|
-
namespace: z.ZodMiniString<string>;
|
|
16
|
-
organization: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
17
|
-
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
18
|
-
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
19
|
-
logo: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
20
|
-
icon: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
21
|
-
url: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
22
|
-
}, z.core.$strip>, z.ZodMiniString<string>]>;
|
|
23
|
-
repository: z.ZodMiniString<string>;
|
|
24
|
-
license: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
25
|
-
homepage: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
26
|
-
docs: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
27
|
-
portal: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
28
|
-
licensing: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
29
|
-
contact: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
30
|
-
support: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
31
|
-
branch: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
32
|
-
preid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
33
|
-
owner: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
34
|
-
bot: z.ZodMiniObject<{
|
|
35
|
-
name: z.ZodMiniString<string>;
|
|
36
|
-
email: z.ZodMiniString<string>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
release: z.ZodMiniObject<{
|
|
39
|
-
banner: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
40
|
-
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
41
|
-
alt: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
42
|
-
}, z.core.$strip>, z.ZodMiniString<string>]>;
|
|
43
|
-
header: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
44
|
-
footer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
socials: z.ZodMiniObject<{
|
|
47
|
-
twitter: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
48
|
-
discord: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
49
|
-
telegram: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
50
|
-
slack: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
51
|
-
medium: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
-
github: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
error: z.ZodMiniObject<{
|
|
55
|
-
codesFile: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
56
|
-
url: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
mode: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
59
|
-
development: "development";
|
|
60
|
-
staging: "staging";
|
|
61
|
-
production: "production";
|
|
62
|
-
}>>;
|
|
63
|
-
workspaceRoot: z.ZodMiniString<string>;
|
|
64
|
-
skipCache: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
65
|
-
directories: z.ZodMiniObject<{
|
|
66
|
-
cache: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
67
|
-
data: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
68
|
-
config: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
69
|
-
temp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
70
|
-
log: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
71
|
-
build: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
72
|
-
}, z.core.$strip>;
|
|
73
|
-
packageManager: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
74
|
-
npm: "npm";
|
|
75
|
-
yarn: "yarn";
|
|
76
|
-
pnpm: "pnpm";
|
|
77
|
-
bun: "bun";
|
|
78
|
-
}>>;
|
|
79
|
-
timezone: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
80
|
-
locale: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
81
|
-
logLevel: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
82
|
-
debug: "debug";
|
|
83
|
-
error: "error";
|
|
84
|
-
success: "success";
|
|
85
|
-
silent: "silent";
|
|
86
|
-
fatal: "fatal";
|
|
87
|
-
warn: "warn";
|
|
88
|
-
info: "info";
|
|
89
|
-
trace: "trace";
|
|
90
|
-
all: "all";
|
|
91
|
-
}>>;
|
|
92
|
-
skipConfigLogging: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
93
|
-
registry: z.ZodMiniDefault<z.ZodMiniObject<{
|
|
94
|
-
github: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
95
|
-
npm: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
96
|
-
cargo: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
97
|
-
cyclone: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
98
|
-
container: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
99
|
-
}, z.core.$strip>>;
|
|
100
|
-
configFile: z.ZodMiniDefault<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
101
|
-
colors: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
102
|
-
dark: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
103
|
-
light: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
104
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
105
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
106
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
107
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
108
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
109
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
110
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
111
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
112
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
113
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
114
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
115
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
116
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
117
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
118
|
-
dark: z.ZodMiniObject<{
|
|
119
|
-
foreground: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
120
|
-
background: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
121
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
122
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
123
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
124
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
125
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
126
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
127
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
128
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
129
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
130
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
131
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
132
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
133
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
134
|
-
}, z.core.$strip>;
|
|
135
|
-
light: z.ZodMiniObject<{
|
|
136
|
-
foreground: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
137
|
-
background: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
138
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
139
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
140
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
141
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
142
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
143
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
144
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
145
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
146
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
147
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
148
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
149
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
150
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
151
|
-
}, z.core.$strip>;
|
|
152
|
-
}, z.core.$strip>]>, z.ZodMiniRecord<z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"base">, z.ZodMiniString<string>]>, z.ZodMiniString<string>]>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
153
|
-
dark: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
154
|
-
light: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
155
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
156
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
157
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
158
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
159
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
160
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
161
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
162
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
163
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
164
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
165
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
166
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
167
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
168
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
169
|
-
dark: z.ZodMiniObject<{
|
|
170
|
-
foreground: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
171
|
-
background: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
172
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
173
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
174
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
175
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
176
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
177
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
178
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
179
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
180
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
181
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
182
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
183
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
184
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
185
|
-
}, z.core.$strip>;
|
|
186
|
-
light: z.ZodMiniObject<{
|
|
187
|
-
foreground: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
188
|
-
background: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
189
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
190
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
191
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
192
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
193
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
194
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
195
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
196
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
197
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
198
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
199
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
200
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
201
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
202
|
-
}, z.core.$strip>;
|
|
203
|
-
}, z.core.$strip>]>>]>;
|
|
204
|
-
extensions: z.ZodMiniDefault<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
|
|
207
|
-
type TStormWorkspaceConfig = z$1.infer<typeof workspaceConfigSchema>;
|
|
208
|
-
/**
|
|
209
|
-
* The Storm workspace's configuration object
|
|
210
|
-
*
|
|
211
|
-
* @remarks
|
|
212
|
-
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
213
|
-
*
|
|
214
|
-
* @deprecated
|
|
215
|
-
* This type is deprecated and will be removed in the next major version. Use {@link StormWorkspaceConfig} instead.
|
|
216
|
-
*/
|
|
217
|
-
type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
218
|
-
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
219
|
-
[extensionName in TExtensionName]: TExtensionConfig;
|
|
220
|
-
}) | NonNullable<Record<string, any>>;
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* The Storm workspace's configuration object
|
|
224
|
-
*
|
|
225
|
-
* @remarks
|
|
226
|
-
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
227
|
-
*/
|
|
228
|
-
type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
229
|
-
|
|
230
|
-
export type { StormWorkspaceConfig as S };
|
package/dist/types-GK3Jz4Bz.d.ts
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import * as z$1 from 'zod';
|
|
2
|
-
import * as z from 'zod/mini';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
|
|
6
|
-
*/
|
|
7
|
-
declare const workspaceConfigSchema: z.ZodMiniObject<{
|
|
8
|
-
$schema: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
9
|
-
extends: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
10
|
-
name: z.ZodMiniString<string>;
|
|
11
|
-
variant: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
12
|
-
minimal: "minimal";
|
|
13
|
-
monorepo: "monorepo";
|
|
14
|
-
}>>;
|
|
15
|
-
namespace: z.ZodMiniString<string>;
|
|
16
|
-
organization: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
17
|
-
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
18
|
-
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
19
|
-
logo: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
20
|
-
icon: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
21
|
-
url: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
22
|
-
}, z.core.$strip>, z.ZodMiniString<string>]>;
|
|
23
|
-
repository: z.ZodMiniString<string>;
|
|
24
|
-
license: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
25
|
-
homepage: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
26
|
-
docs: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
27
|
-
portal: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
28
|
-
licensing: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
29
|
-
contact: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
30
|
-
support: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
31
|
-
branch: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
32
|
-
preid: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
33
|
-
owner: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
34
|
-
bot: z.ZodMiniObject<{
|
|
35
|
-
name: z.ZodMiniString<string>;
|
|
36
|
-
email: z.ZodMiniString<string>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
release: z.ZodMiniObject<{
|
|
39
|
-
banner: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
40
|
-
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
41
|
-
alt: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
42
|
-
}, z.core.$strip>, z.ZodMiniString<string>]>;
|
|
43
|
-
header: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
44
|
-
footer: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
socials: z.ZodMiniObject<{
|
|
47
|
-
twitter: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
48
|
-
discord: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
49
|
-
telegram: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
50
|
-
slack: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
51
|
-
medium: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
-
github: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
error: z.ZodMiniObject<{
|
|
55
|
-
codesFile: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
56
|
-
url: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
mode: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
59
|
-
development: "development";
|
|
60
|
-
staging: "staging";
|
|
61
|
-
production: "production";
|
|
62
|
-
}>>;
|
|
63
|
-
workspaceRoot: z.ZodMiniString<string>;
|
|
64
|
-
skipCache: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
65
|
-
directories: z.ZodMiniObject<{
|
|
66
|
-
cache: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
67
|
-
data: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
68
|
-
config: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
69
|
-
temp: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
70
|
-
log: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
71
|
-
build: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
72
|
-
}, z.core.$strip>;
|
|
73
|
-
packageManager: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
74
|
-
npm: "npm";
|
|
75
|
-
yarn: "yarn";
|
|
76
|
-
pnpm: "pnpm";
|
|
77
|
-
bun: "bun";
|
|
78
|
-
}>>;
|
|
79
|
-
timezone: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
80
|
-
locale: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
81
|
-
logLevel: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
82
|
-
debug: "debug";
|
|
83
|
-
error: "error";
|
|
84
|
-
success: "success";
|
|
85
|
-
silent: "silent";
|
|
86
|
-
fatal: "fatal";
|
|
87
|
-
warn: "warn";
|
|
88
|
-
info: "info";
|
|
89
|
-
trace: "trace";
|
|
90
|
-
all: "all";
|
|
91
|
-
}>>;
|
|
92
|
-
skipConfigLogging: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
93
|
-
registry: z.ZodMiniDefault<z.ZodMiniObject<{
|
|
94
|
-
github: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
95
|
-
npm: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
96
|
-
cargo: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
97
|
-
cyclone: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
98
|
-
container: z.ZodMiniOptional<z.ZodMiniURL>;
|
|
99
|
-
}, z.core.$strip>>;
|
|
100
|
-
configFile: z.ZodMiniDefault<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
101
|
-
colors: z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
102
|
-
dark: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
103
|
-
light: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
104
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
105
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
106
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
107
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
108
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
109
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
110
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
111
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
112
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
113
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
114
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
115
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
116
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
117
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
118
|
-
dark: z.ZodMiniObject<{
|
|
119
|
-
foreground: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
120
|
-
background: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
121
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
122
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
123
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
124
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
125
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
126
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
127
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
128
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
129
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
130
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
131
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
132
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
133
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
134
|
-
}, z.core.$strip>;
|
|
135
|
-
light: z.ZodMiniObject<{
|
|
136
|
-
foreground: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
137
|
-
background: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
138
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
139
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
140
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
141
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
142
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
143
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
144
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
145
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
146
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
147
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
148
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
149
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
150
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
151
|
-
}, z.core.$strip>;
|
|
152
|
-
}, z.core.$strip>]>, z.ZodMiniRecord<z.ZodMiniUnion<readonly [z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"base">, z.ZodMiniString<string>]>, z.ZodMiniString<string>]>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
153
|
-
dark: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
154
|
-
light: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
155
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
156
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
157
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
158
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
159
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
160
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
161
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
162
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
163
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
164
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
165
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
166
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
167
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
168
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
169
|
-
dark: z.ZodMiniObject<{
|
|
170
|
-
foreground: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
171
|
-
background: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
172
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
173
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
174
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
175
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
176
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
177
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
178
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
179
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
180
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
181
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
182
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
183
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
184
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
185
|
-
}, z.core.$strip>;
|
|
186
|
-
light: z.ZodMiniObject<{
|
|
187
|
-
foreground: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
188
|
-
background: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
189
|
-
brand: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
190
|
-
alternate: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
191
|
-
accent: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
192
|
-
link: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
193
|
-
help: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
194
|
-
success: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
195
|
-
info: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
196
|
-
warning: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
197
|
-
danger: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
198
|
-
fatal: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
199
|
-
positive: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
200
|
-
negative: z.ZodMiniDefault<z.ZodMiniString<string>>;
|
|
201
|
-
gradient: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
202
|
-
}, z.core.$strip>;
|
|
203
|
-
}, z.core.$strip>]>>]>;
|
|
204
|
-
extensions: z.ZodMiniDefault<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>;
|
|
205
|
-
}, z.core.$strip>;
|
|
206
|
-
|
|
207
|
-
type TStormWorkspaceConfig = z$1.infer<typeof workspaceConfigSchema>;
|
|
208
|
-
/**
|
|
209
|
-
* The Storm workspace's configuration object
|
|
210
|
-
*
|
|
211
|
-
* @remarks
|
|
212
|
-
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
213
|
-
*
|
|
214
|
-
* @deprecated
|
|
215
|
-
* This type is deprecated and will be removed in the next major version. Use {@link StormWorkspaceConfig} instead.
|
|
216
|
-
*/
|
|
217
|
-
type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
218
|
-
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
219
|
-
[extensionName in TExtensionName]: TExtensionConfig;
|
|
220
|
-
}) | NonNullable<Record<string, any>>;
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* The Storm workspace's configuration object
|
|
224
|
-
*
|
|
225
|
-
* @remarks
|
|
226
|
-
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
227
|
-
*/
|
|
228
|
-
type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
229
|
-
|
|
230
|
-
export type { StormWorkspaceConfig as S };
|