@storm-software/workspace-tools 1.252.2 → 1.252.4

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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.252.4 (2025-02-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **workspace-tools:** Added `workspace` argument to `lint-knip` execution ([7af85ff50](https://github.com/storm-software/storm-ops/commit/7af85ff50))
6
+
7
+ ## 1.252.3 (2025-02-07)
8
+
9
+ ### Bug Fixes
10
+
11
+ - **workspace-tools:** Resolve issue with invalid path in `knip` config file ([107963908](https://github.com/storm-software/storm-ops/commit/107963908))
12
+
1
13
  ## 1.252.2 (2025-02-06)
2
14
 
3
15
  ### Bug Fixes
@@ -36,10 +36,13 @@ var createNodes = [
36
36
  if (opts?.includeApps === false && project.projectType === "application") {
37
37
  return {};
38
38
  }
39
+ const enableKnip = opts?.enableKnip !== false;
40
+ const enableMarkdownlint = opts?.enableMarkdownlint !== false;
41
+ const enableEslint = opts?.enableEslint !== false;
39
42
  const nxJson = readNxJson(ctx.workspaceRoot);
40
43
  const targets = readTargetsFromPackageJson(packageJson, nxJson);
41
44
  const relativePath = relative(dirname(file), ctx.workspaceRoot);
42
- if (!targets["lint-knip"]) {
45
+ if (!targets["lint-knip"] && enableKnip) {
43
46
  targets["lint-knip"] = {
44
47
  cache: true,
45
48
  outputs: [
@@ -56,11 +59,11 @@ var createNodes = [
56
59
  ],
57
60
  executor: "nx:run-commands",
58
61
  options: {
59
- command: `pnpm exec knip --config "${join(relativePath, "node_modules/@storm-software/linting-tools/knip/config.json")}" --tsConfig "{projectRoot}/tsconfig.json" --directory "{projectRoot}" --fix --cache --cache-location "${join(relativePath, "node_modules/.cache/knip/{projectRoot}")}"`
62
+ command: `pnpm exec knip --config "${join(relativePath, "node_modules/@storm-software/linting-tools/knip/config.json").replaceAll("\\", "/")}" --tsConfig "{projectRoot}/tsconfig.json" --directory "{projectRoot}" --fix --cache --cache-location "${join(relativePath, "node_modules/.cache/knip/{projectRoot}").replaceAll("\\", "/")}" --workspace "${relativePath.replaceAll("\\", "/")}"`
60
63
  }
61
64
  };
62
65
  }
63
- if (!targets["lint-markdown"]) {
66
+ if (!targets["lint-markdown"] && enableMarkdownlint) {
64
67
  targets["lint-markdown"] = {
65
68
  cache: true,
66
69
  outputs: [
@@ -81,7 +84,7 @@ var createNodes = [
81
84
  }
82
85
  };
83
86
  }
84
- if (!targets.lint) {
87
+ if (!targets.lint && enableEslint) {
85
88
  let eslintConfig = checkEslintConfigAtPath(project.root);
86
89
  if (!eslintConfig) {
87
90
  eslintConfig = checkEslintConfigAtPath(ctx.workspaceRoot);
@@ -36,10 +36,13 @@ var createNodes = [
36
36
  if (_optionalChain([opts, 'optionalAccess', _ => _.includeApps]) === false && project.projectType === "application") {
37
37
  return {};
38
38
  }
39
+ const enableKnip = _optionalChain([opts, 'optionalAccess', _2 => _2.enableKnip]) !== false;
40
+ const enableMarkdownlint = _optionalChain([opts, 'optionalAccess', _3 => _3.enableMarkdownlint]) !== false;
41
+ const enableEslint = _optionalChain([opts, 'optionalAccess', _4 => _4.enableEslint]) !== false;
39
42
  const nxJson = _nxjsonjs.readNxJson.call(void 0, ctx.workspaceRoot);
40
43
  const targets = _packagejson.readTargetsFromPackageJson.call(void 0, packageJson, nxJson);
41
44
  const relativePath = _path.relative.call(void 0, _path.dirname.call(void 0, file), ctx.workspaceRoot);
42
- if (!targets["lint-knip"]) {
45
+ if (!targets["lint-knip"] && enableKnip) {
43
46
  targets["lint-knip"] = {
44
47
  cache: true,
45
48
  outputs: [
@@ -56,11 +59,11 @@ var createNodes = [
56
59
  ],
57
60
  executor: "nx:run-commands",
58
61
  options: {
59
- command: `pnpm exec knip --config "${_path.join.call(void 0, relativePath, "node_modules/@storm-software/linting-tools/knip/config.json")}" --tsConfig "{projectRoot}/tsconfig.json" --directory "{projectRoot}" --fix --cache --cache-location "${_path.join.call(void 0, relativePath, "node_modules/.cache/knip/{projectRoot}")}"`
62
+ command: `pnpm exec knip --config "${_path.join.call(void 0, relativePath, "node_modules/@storm-software/linting-tools/knip/config.json").replaceAll("\\", "/")}" --tsConfig "{projectRoot}/tsconfig.json" --directory "{projectRoot}" --fix --cache --cache-location "${_path.join.call(void 0, relativePath, "node_modules/.cache/knip/{projectRoot}").replaceAll("\\", "/")}" --workspace "${relativePath.replaceAll("\\", "/")}"`
60
63
  }
61
64
  };
62
65
  }
63
- if (!targets["lint-markdown"]) {
66
+ if (!targets["lint-markdown"] && enableMarkdownlint) {
64
67
  targets["lint-markdown"] = {
65
68
  cache: true,
66
69
  outputs: [
@@ -81,7 +84,7 @@ var createNodes = [
81
84
  }
82
85
  };
83
86
  }
84
- if (!targets.lint) {
87
+ if (!targets.lint && enableEslint) {
85
88
  let eslintConfig = checkEslintConfigAtPath(project.root);
86
89
  if (!eslintConfig) {
87
90
  eslintConfig = checkEslintConfigAtPath(ctx.workspaceRoot);
@@ -239,8 +242,8 @@ var createNodes = [
239
242
  cleanComments: true
240
243
  }
241
244
  };
242
- _optionalChain([targets, 'access', _2 => _2["nx-release-publish"], 'access', _3 => _3.dependsOn, 'optionalAccess', _4 => _4.push, 'call', _5 => _5("clean-package")]);
243
- _optionalChain([targets, 'access', _6 => _6["size-limit"], 'access', _7 => _7.dependsOn, 'optionalAccess', _8 => _8.push, 'call', _9 => _9("clean-package")]);
245
+ _optionalChain([targets, 'access', _5 => _5["nx-release-publish"], 'access', _6 => _6.dependsOn, 'optionalAccess', _7 => _7.push, 'call', _8 => _8("clean-package")]);
246
+ _optionalChain([targets, 'access', _9 => _9["size-limit"], 'access', _10 => _10.dependsOn, 'optionalAccess', _11 => _11.push, 'call', _12 => _12("clean-package")]);
244
247
  }
245
248
  }
246
249
  _chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TYPESCRIPT, {
@@ -270,15 +273,15 @@ var createNodes = [
270
273
  break;
271
274
  }
272
275
  _chunk7YRW5HNXjs.setDefaultProjectTags.call(void 0, project, name);
273
- return _optionalChain([project, 'optionalAccess', _10 => _10.name]) ? {
276
+ return _optionalChain([project, 'optionalAccess', _13 => _13.name]) ? {
274
277
  projects: {
275
278
  [project.name]: {
276
279
  ...project,
277
280
  targets,
278
281
  release: {
279
- ..._optionalChain([project, 'optionalAccess', _11 => _11.release]),
282
+ ..._optionalChain([project, 'optionalAccess', _14 => _14.release]),
280
283
  version: {
281
- ..._optionalChain([project, 'optionalAccess', _12 => _12.release, 'optionalAccess', _13 => _13.version]),
284
+ ..._optionalChain([project, 'optionalAccess', _15 => _15.release, 'optionalAccess', _16 => _16.version]),
282
285
  generator: "@storm-software/workspace-tools:release-version"
283
286
  }
284
287
  }
package/dist/executors.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-3J53KHVV.js');
2
2
 
3
3
 
4
- var _chunkJXSTSZSGjs = require('./chunk-JXSTSZSG.js');
4
+ var _chunkWGTIKGAEjs = require('./chunk-WGTIKGAE.js');
5
5
 
6
6
 
7
7
  var _chunkCQAGLRNYjs = require('./chunk-CQAGLRNY.js');
@@ -10,10 +10,10 @@ var _chunkCQAGLRNYjs = require('./chunk-CQAGLRNY.js');
10
10
  var _chunkNXGJNB3Cjs = require('./chunk-NXGJNB3C.js');
11
11
 
12
12
 
13
- var _chunkFMOIAVZVjs = require('./chunk-FMOIAVZV.js');
13
+ var _chunkJXSTSZSGjs = require('./chunk-JXSTSZSG.js');
14
14
 
15
15
 
16
- var _chunkWGTIKGAEjs = require('./chunk-WGTIKGAE.js');
16
+ var _chunkFMOIAVZVjs = require('./chunk-FMOIAVZV.js');
17
17
 
18
18
 
19
19
  var _chunk5O6RWCBQjs = require('./chunk-5O6RWCBQ.js');
@@ -26,9 +26,6 @@ var _chunkWL7UV3YXjs = require('./chunk-WL7UV3YX.js');
26
26
  require('./chunk-R2NBU264.js');
27
27
 
28
28
 
29
- var _chunk4AMZUCHLjs = require('./chunk-4AMZUCHL.js');
30
-
31
-
32
29
  var _chunkK434EGC4js = require('./chunk-K434EGC4.js');
33
30
 
34
31
 
@@ -36,6 +33,9 @@ var _chunkG7HTMCQKjs = require('./chunk-G7HTMCQK.js');
36
33
 
37
34
 
38
35
  var _chunk4SJW3KRVjs = require('./chunk-4SJW3KRV.js');
36
+
37
+
38
+ var _chunk4AMZUCHLjs = require('./chunk-4AMZUCHL.js');
39
39
  require('./chunk-CUPARBOS.js');
40
40
  require('./chunk-ULBTYC2B.js');
41
41
  require('./chunk-ZMFVKBRM.js');
@@ -1,19 +1,19 @@
1
1
  import "./chunk-V7YZ3666.mjs";
2
2
  import {
3
- typiaExecutorFn
4
- } from "./chunk-2KNHEXJQ.mjs";
3
+ unbuildExecutorFn
4
+ } from "./chunk-7H4PXXWW.mjs";
5
5
  import {
6
6
  LARGE_BUFFER
7
7
  } from "./chunk-VBPOZVKY.mjs";
8
8
  import {
9
9
  sizeLimitExecutorFn
10
10
  } from "./chunk-KM47X5XW.mjs";
11
+ import {
12
+ typiaExecutorFn
13
+ } from "./chunk-2KNHEXJQ.mjs";
11
14
  import {
12
15
  tsdownExecutorFn
13
16
  } from "./chunk-UF3YMASN.mjs";
14
- import {
15
- unbuildExecutorFn
16
- } from "./chunk-7H4PXXWW.mjs";
17
17
  import {
18
18
  cargoFormatExecutor
19
19
  } from "./chunk-YILBFUCI.mjs";
@@ -24,9 +24,6 @@ import {
24
24
  esbuildExecutorFn
25
25
  } from "./chunk-OA6GD45B.mjs";
26
26
  import "./chunk-N2P34ZQV.mjs";
27
- import {
28
- cargoCheckExecutor
29
- } from "./chunk-P4ZEGEQX.mjs";
30
27
  import {
31
28
  cargoBuildExecutor
32
29
  } from "./chunk-RSFH5OLL.mjs";
@@ -36,6 +33,9 @@ import {
36
33
  import {
37
34
  cargoDocExecutor
38
35
  } from "./chunk-7AXJ27FU.mjs";
36
+ import {
37
+ cargoCheckExecutor
38
+ } from "./chunk-P4ZEGEQX.mjs";
39
39
  import "./chunk-JB4KCMSB.mjs";
40
40
  import "./chunk-XK3FSWMA.mjs";
41
41
  import "./chunk-EIM3O6HY.mjs";
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ var _chunkGKL4BY2Yjs = require('./chunk-GKL4BY2Y.js');
48
48
  require('./chunk-3J53KHVV.js');
49
49
 
50
50
 
51
- var _chunkJXSTSZSGjs = require('./chunk-JXSTSZSG.js');
51
+ var _chunkWGTIKGAEjs = require('./chunk-WGTIKGAE.js');
52
52
 
53
53
 
54
54
  var _chunkCQAGLRNYjs = require('./chunk-CQAGLRNY.js');
@@ -57,10 +57,10 @@ var _chunkCQAGLRNYjs = require('./chunk-CQAGLRNY.js');
57
57
  var _chunkNXGJNB3Cjs = require('./chunk-NXGJNB3C.js');
58
58
 
59
59
 
60
- var _chunkFMOIAVZVjs = require('./chunk-FMOIAVZV.js');
60
+ var _chunkJXSTSZSGjs = require('./chunk-JXSTSZSG.js');
61
61
 
62
62
 
63
- var _chunkWGTIKGAEjs = require('./chunk-WGTIKGAE.js');
63
+ var _chunkFMOIAVZVjs = require('./chunk-FMOIAVZV.js');
64
64
 
65
65
 
66
66
  var _chunk5O6RWCBQjs = require('./chunk-5O6RWCBQ.js');
@@ -73,9 +73,6 @@ var _chunkWL7UV3YXjs = require('./chunk-WL7UV3YX.js');
73
73
  require('./chunk-R2NBU264.js');
74
74
 
75
75
 
76
- var _chunk4AMZUCHLjs = require('./chunk-4AMZUCHL.js');
77
-
78
-
79
76
  var _chunkK434EGC4js = require('./chunk-K434EGC4.js');
80
77
 
81
78
 
@@ -85,6 +82,9 @@ var _chunkG7HTMCQKjs = require('./chunk-G7HTMCQK.js');
85
82
  var _chunk4SJW3KRVjs = require('./chunk-4SJW3KRV.js');
86
83
 
87
84
 
85
+ var _chunk4AMZUCHLjs = require('./chunk-4AMZUCHL.js');
86
+
87
+
88
88
  var _chunkCUPARBOSjs = require('./chunk-CUPARBOS.js');
89
89
 
90
90
 
package/dist/index.mjs CHANGED
@@ -47,20 +47,20 @@ import {
47
47
  } from "./chunk-V7IOKRJA.mjs";
48
48
  import "./chunk-V7YZ3666.mjs";
49
49
  import {
50
- typiaExecutorFn
51
- } from "./chunk-2KNHEXJQ.mjs";
50
+ unbuildExecutorFn
51
+ } from "./chunk-7H4PXXWW.mjs";
52
52
  import {
53
53
  LARGE_BUFFER
54
54
  } from "./chunk-VBPOZVKY.mjs";
55
55
  import {
56
56
  sizeLimitExecutorFn
57
57
  } from "./chunk-KM47X5XW.mjs";
58
+ import {
59
+ typiaExecutorFn
60
+ } from "./chunk-2KNHEXJQ.mjs";
58
61
  import {
59
62
  tsdownExecutorFn
60
63
  } from "./chunk-UF3YMASN.mjs";
61
- import {
62
- unbuildExecutorFn
63
- } from "./chunk-7H4PXXWW.mjs";
64
64
  import {
65
65
  cargoFormatExecutor
66
66
  } from "./chunk-YILBFUCI.mjs";
@@ -71,9 +71,6 @@ import {
71
71
  esbuildExecutorFn
72
72
  } from "./chunk-OA6GD45B.mjs";
73
73
  import "./chunk-N2P34ZQV.mjs";
74
- import {
75
- cargoCheckExecutor
76
- } from "./chunk-P4ZEGEQX.mjs";
77
74
  import {
78
75
  cargoBuildExecutor
79
76
  } from "./chunk-RSFH5OLL.mjs";
@@ -83,6 +80,9 @@ import {
83
80
  import {
84
81
  cargoDocExecutor
85
82
  } from "./chunk-7AXJ27FU.mjs";
83
+ import {
84
+ cargoCheckExecutor
85
+ } from "./chunk-P4ZEGEQX.mjs";
86
86
  import {
87
87
  pnpmCatalogUpdate
88
88
  } from "./chunk-JB4KCMSB.mjs";
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkFUXJ4XG3js = require('../../../chunk-FUXJ4XG3.js');
4
+ var _chunkRTFMVX72js = require('../../../chunk-RTFMVX72.js');
5
5
  require('../../../chunk-UF6KFXG5.js');
6
6
  require('../../../chunk-7YRW5HNX.js');
7
7
  require('../../../chunk-3GQAWCBQ.js');
8
8
 
9
9
 
10
10
 
11
- exports.createNodes = _chunkFUXJ4XG3js.createNodes; exports.name = _chunkFUXJ4XG3js.name;
11
+ exports.createNodes = _chunkRTFMVX72js.createNodes; exports.name = _chunkRTFMVX72js.name;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createNodes,
3
3
  name
4
- } from "../../../chunk-OE2NLRDG.mjs";
4
+ } from "../../../chunk-HGE4C5SO.mjs";
5
5
  import "../../../chunk-HUCDWLQ3.mjs";
6
6
  import "../../../chunk-W3SWWT4A.mjs";
7
7
  import "../../../chunk-R7DU2APC.mjs";
@@ -3,6 +3,9 @@ import { CreateNodes } from '@nx/devkit';
3
3
  declare const name = "storm-software/typescript";
4
4
  interface TypeScriptPluginOptions {
5
5
  includeApps?: boolean;
6
+ enableKnip?: boolean;
7
+ enableMarkdownlint?: boolean;
8
+ enableEslint?: boolean;
6
9
  }
7
10
  declare const createNodes: CreateNodes<TypeScriptPluginOptions>;
8
11
 
@@ -3,6 +3,9 @@ import { CreateNodes } from '@nx/devkit';
3
3
  declare const name = "storm-software/typescript";
4
4
  interface TypeScriptPluginOptions {
5
5
  includeApps?: boolean;
6
+ enableKnip?: boolean;
7
+ enableMarkdownlint?: boolean;
8
+ enableEslint?: boolean;
6
9
  }
7
10
  declare const createNodes: CreateNodes<TypeScriptPluginOptions>;
8
11
 
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkFUXJ4XG3js = require('../../../chunk-FUXJ4XG3.js');
4
+ var _chunkRTFMVX72js = require('../../../chunk-RTFMVX72.js');
5
5
  require('../../../chunk-UF6KFXG5.js');
6
6
  require('../../../chunk-7YRW5HNX.js');
7
7
  require('../../../chunk-3GQAWCBQ.js');
8
8
 
9
9
 
10
10
 
11
- exports.createNodes = _chunkFUXJ4XG3js.createNodes; exports.name = _chunkFUXJ4XG3js.name;
11
+ exports.createNodes = _chunkRTFMVX72js.createNodes; exports.name = _chunkRTFMVX72js.name;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createNodes,
3
3
  name
4
- } from "../../../chunk-OE2NLRDG.mjs";
4
+ } from "../../../chunk-HGE4C5SO.mjs";
5
5
  import "../../../chunk-HUCDWLQ3.mjs";
6
6
  import "../../../chunk-W3SWWT4A.mjs";
7
7
  import "../../../chunk-R7DU2APC.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.252.2",
3
+ "version": "1.252.4",
4
4
  "description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
5
5
  "repository": {
6
6
  "type": "github",