@storm-software/workspace-tools 1.174.0 → 1.175.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +1 -1
- package/index.js +52 -11
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/rollup/executor.js +4 -1
- package/src/utils/index.d.ts +1 -0
- package/src/utils/index.js +38 -0
- package/src/utils/package-helpers.d.ts +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 1.175.0 (2024-09-06)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **k8s-tools:** Added extra fields onto the released container's `meta.json`
|
|
6
|
+
file ([14356536](https://github.com/storm-software/storm-ops/commit/14356536))
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **workspace-tools:** Resolved the duplicate export name issue
|
|
11
|
+
([f2586335](https://github.com/storm-software/storm-ops/commit/f2586335))
|
|
12
|
+
|
|
13
|
+
## 1.174.1 (2024-09-06)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **git-tools:** Resolved issue with missing command line arguments
|
|
18
|
+
([59e26e31](https://github.com/storm-software/storm-ops/commit/59e26e31))
|
|
19
|
+
|
|
1
20
|
## 1.174.0 (2024-09-06)
|
|
2
21
|
|
|
3
22
|
### Features
|
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 -->
|
package/index.js
CHANGED
|
@@ -575080,7 +575080,7 @@ var require_eslint = __commonJS({
|
|
|
575080
575080
|
"node_modules/.pnpm/eslint@9.5.0/node_modules/eslint/lib/eslint/eslint.js"(exports2, module2) {
|
|
575081
575081
|
"use strict";
|
|
575082
575082
|
var fs7 = require("node:fs/promises");
|
|
575083
|
-
var { existsSync:
|
|
575083
|
+
var { existsSync: existsSync10 } = require("node:fs");
|
|
575084
575084
|
var path8 = require("node:path");
|
|
575085
575085
|
var findUp = require_find_up();
|
|
575086
575086
|
var { version: version3 } = require_package4();
|
|
@@ -575408,7 +575408,7 @@ var require_eslint = __commonJS({
|
|
|
575408
575408
|
plugins
|
|
575409
575409
|
});
|
|
575410
575410
|
}
|
|
575411
|
-
if (
|
|
575411
|
+
if (existsSync10(path8.resolve(processedOptions.cwd, ".eslintignore"))) {
|
|
575412
575412
|
process.emitWarning(
|
|
575413
575413
|
'The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files',
|
|
575414
575414
|
"ESLintIgnoreWarning"
|
|
@@ -575550,7 +575550,7 @@ var require_eslint = __commonJS({
|
|
|
575550
575550
|
await fs7.unlink(cacheFilePath);
|
|
575551
575551
|
} catch (error) {
|
|
575552
575552
|
const errorCode = error && error.code;
|
|
575553
|
-
if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !
|
|
575553
|
+
if (errorCode !== "ENOENT" && !(errorCode === "EROFS" && !existsSync10(cacheFilePath))) {
|
|
575554
575554
|
throw error;
|
|
575555
575555
|
}
|
|
575556
575556
|
}
|
|
@@ -579438,7 +579438,7 @@ var require_lint_project = __commonJS({
|
|
|
579438
579438
|
// node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/native.js
|
|
579439
579439
|
var require_native = __commonJS({
|
|
579440
579440
|
"node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/native.js"(exports2, module2) {
|
|
579441
|
-
var { existsSync:
|
|
579441
|
+
var { existsSync: existsSync10 } = require("node:fs");
|
|
579442
579442
|
var path8 = require("node:path");
|
|
579443
579443
|
var { platform: platform2, arch: arch2, report } = require("node:process");
|
|
579444
579444
|
var isMusl = () => !report.getReport().header.glibcVersionRuntime;
|
|
@@ -579490,7 +579490,7 @@ var require_native = __commonJS({
|
|
|
579490
579490
|
}
|
|
579491
579491
|
};
|
|
579492
579492
|
var { parse: parse8, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
|
|
579493
|
-
|
|
579493
|
+
existsSync10(path8.join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
|
579494
579494
|
);
|
|
579495
579495
|
function getPackageBase() {
|
|
579496
579496
|
const imported = bindingsByPlatformAndArch[platform2]?.[arch2];
|
|
@@ -673300,7 +673300,7 @@ var require_previous_map = __commonJS({
|
|
|
673300
673300
|
"node_modules/.pnpm/postcss@8.4.40/node_modules/postcss/lib/previous-map.js"(exports2, module2) {
|
|
673301
673301
|
"use strict";
|
|
673302
673302
|
var { SourceMapConsumer, SourceMapGenerator } = require_source_map3();
|
|
673303
|
-
var { existsSync:
|
|
673303
|
+
var { existsSync: existsSync10, readFileSync: readFileSync4 } = require("fs");
|
|
673304
673304
|
var { dirname: dirname3, join: join10 } = require("path");
|
|
673305
673305
|
function fromBase64(str) {
|
|
673306
673306
|
if (Buffer) {
|
|
@@ -673360,7 +673360,7 @@ var require_previous_map = __commonJS({
|
|
|
673360
673360
|
}
|
|
673361
673361
|
loadFile(path8) {
|
|
673362
673362
|
this.root = dirname3(path8);
|
|
673363
|
-
if (
|
|
673363
|
+
if (existsSync10(path8)) {
|
|
673364
673364
|
this.mapFile = path8;
|
|
673365
673365
|
return readFileSync4(path8, "utf-8").toString().trim();
|
|
673366
673366
|
}
|
|
@@ -686458,7 +686458,7 @@ var require_cjs8 = __commonJS({
|
|
|
686458
686458
|
}
|
|
686459
686459
|
return mainFields;
|
|
686460
686460
|
}
|
|
686461
|
-
function
|
|
686461
|
+
function getPackageInfo2(options) {
|
|
686462
686462
|
const {
|
|
686463
686463
|
cache: cache2,
|
|
686464
686464
|
extensions,
|
|
@@ -686848,7 +686848,7 @@ var require_cjs8 = __commonJS({
|
|
|
686848
686848
|
let packageBrowserField = false;
|
|
686849
686849
|
let packageInfo;
|
|
686850
686850
|
const filter2 = (pkg, pkgPath) => {
|
|
686851
|
-
const info =
|
|
686851
|
+
const info = getPackageInfo2({
|
|
686852
686852
|
cache: packageInfoCache,
|
|
686853
686853
|
extensions,
|
|
686854
686854
|
pkg,
|
|
@@ -686944,7 +686944,7 @@ var require_cjs8 = __commonJS({
|
|
|
686944
686944
|
let packageBrowserField = false;
|
|
686945
686945
|
let packageInfo;
|
|
686946
686946
|
const filter2 = (pkg, pkgPath) => {
|
|
686947
|
-
const info =
|
|
686947
|
+
const info = getPackageInfo2({
|
|
686948
686948
|
cache: packageInfoCache,
|
|
686949
686949
|
extensions,
|
|
686950
686950
|
pkg,
|
|
@@ -819363,6 +819363,7 @@ __export(workspace_tools_exports, {
|
|
|
819363
819363
|
NPM_LOCK_PATH: () => NPM_LOCK_PATH,
|
|
819364
819364
|
PNPM_LOCK_FILE: () => PNPM_LOCK_FILE,
|
|
819365
819365
|
PNPM_LOCK_PATH: () => PNPM_LOCK_PATH,
|
|
819366
|
+
PackageManagerTypes: () => PackageManagerTypes,
|
|
819366
819367
|
ProjectTagConstants: () => ProjectTagConstants,
|
|
819367
819368
|
YARN_LOCK_FILE: () => YARN_LOCK_FILE,
|
|
819368
819369
|
YARN_LOCK_PATH: () => YARN_LOCK_PATH,
|
|
@@ -819385,6 +819386,7 @@ __export(workspace_tools_exports, {
|
|
|
819385
819386
|
getLockFileName: () => getLockFileName,
|
|
819386
819387
|
getLockFileNodes: () => getLockFileNodes,
|
|
819387
819388
|
getOutputPath: () => getOutputPath,
|
|
819389
|
+
getPackageInfo: () => getPackageInfo,
|
|
819388
819390
|
getProjectConfiguration: () => getProjectConfiguration,
|
|
819389
819391
|
getProjectConfigurations: () => getProjectConfigurations,
|
|
819390
819392
|
getProjectTag: () => getProjectTag,
|
|
@@ -829719,7 +829721,10 @@ async function* rollupExecutorFn(options, context, config) {
|
|
|
829719
829721
|
options.additionalEntryPoints?.map(
|
|
829720
829722
|
(entry) => correctPaths2((0, import_path.join)(workspaceRoot3, entry))
|
|
829721
829723
|
) ?? []
|
|
829722
|
-
)
|
|
829724
|
+
).map((entry) => {
|
|
829725
|
+
const formatted = entry.replace(workspaceRoot3, "");
|
|
829726
|
+
return formatted.endsWith("/") ? formatted.slice(-1) : formatted;
|
|
829727
|
+
});
|
|
829723
829728
|
}
|
|
829724
829729
|
writeDebug2(
|
|
829725
829730
|
`\u{1F4E6} Running Storm Rollup build process on the ${context?.projectName} project`,
|
|
@@ -833469,6 +833474,10 @@ function isPostInstallProcess() {
|
|
|
833469
833474
|
return process.env.npm_command === "install" && process.env.npm_lifecycle_event === "postinstall";
|
|
833470
833475
|
}
|
|
833471
833476
|
|
|
833477
|
+
// packages/workspace-tools/src/utils/package-helpers.ts
|
|
833478
|
+
var import_devkit14 = require("@nx/devkit");
|
|
833479
|
+
var import_node_fs18 = require("node:fs");
|
|
833480
|
+
|
|
833472
833481
|
// packages/workspace-tools/src/utils/project-tags.ts
|
|
833473
833482
|
var ProjectTagConstants = {
|
|
833474
833483
|
Language: {
|
|
@@ -833547,6 +833556,36 @@ var setDefaultProjectTags = (project) => {
|
|
|
833547
833556
|
);
|
|
833548
833557
|
};
|
|
833549
833558
|
|
|
833559
|
+
// packages/workspace-tools/src/utils/package-helpers.ts
|
|
833560
|
+
var PackageManagerTypes = {
|
|
833561
|
+
PackageJson: "package.json",
|
|
833562
|
+
CargoToml: "Cargo.toml"
|
|
833563
|
+
};
|
|
833564
|
+
var getPackageInfo = (project) => {
|
|
833565
|
+
if (isEqualProjectTag(
|
|
833566
|
+
project,
|
|
833567
|
+
ProjectTagConstants.Language.TAG_ID,
|
|
833568
|
+
ProjectTagConstants.Language.RUST
|
|
833569
|
+
) && (0, import_node_fs18.existsSync)((0, import_devkit14.joinPathFragments)(project.root, "Cargo.toml"))) {
|
|
833570
|
+
return {
|
|
833571
|
+
type: "Cargo.toml",
|
|
833572
|
+
content: parseCargoToml((0, import_devkit14.joinPathFragments)(project.root, "Cargo.toml"))
|
|
833573
|
+
};
|
|
833574
|
+
} else if (isEqualProjectTag(
|
|
833575
|
+
project,
|
|
833576
|
+
ProjectTagConstants.Language.TAG_ID,
|
|
833577
|
+
ProjectTagConstants.Language.TYPESCRIPT
|
|
833578
|
+
) && (0, import_node_fs18.existsSync)((0, import_devkit14.joinPathFragments)(project.root, "package.json"))) {
|
|
833579
|
+
return {
|
|
833580
|
+
type: "package.json",
|
|
833581
|
+
content: (0, import_devkit14.readJsonFile)(
|
|
833582
|
+
(0, import_devkit14.joinPathFragments)(project.root, "package.json")
|
|
833583
|
+
)
|
|
833584
|
+
};
|
|
833585
|
+
}
|
|
833586
|
+
return null;
|
|
833587
|
+
};
|
|
833588
|
+
|
|
833550
833589
|
// packages/workspace-tools/src/utils/typia-transform.ts
|
|
833551
833590
|
var import_transform = __toESM(require_transform3());
|
|
833552
833591
|
var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(program, {}, { addDiagnostic: (input) => diagnostics.push(input) });
|
|
@@ -833560,6 +833599,7 @@ var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(
|
|
|
833560
833599
|
NPM_LOCK_PATH,
|
|
833561
833600
|
PNPM_LOCK_FILE,
|
|
833562
833601
|
PNPM_LOCK_PATH,
|
|
833602
|
+
PackageManagerTypes,
|
|
833563
833603
|
ProjectTagConstants,
|
|
833564
833604
|
YARN_LOCK_FILE,
|
|
833565
833605
|
YARN_LOCK_PATH,
|
|
@@ -833582,6 +833622,7 @@ var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(
|
|
|
833582
833622
|
getLockFileName,
|
|
833583
833623
|
getLockFileNodes,
|
|
833584
833624
|
getOutputPath,
|
|
833625
|
+
getPackageInfo,
|
|
833585
833626
|
getProjectConfiguration,
|
|
833586
833627
|
getProjectConfigurations,
|
|
833587
833628
|
getProjectTag,
|