@storm-software/workspace-tools 1.282.1 → 1.284.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 +36 -0
- package/README.md +2 -1
- package/dist/executors.js +2 -2
- package/dist/executors.mjs +3 -3
- package/dist/index.js +2 -2
- package/dist/index.mjs +3 -3
- package/dist/src/plugins/typescript/index.d.mts +24 -12
- package/dist/src/plugins/typescript/index.d.ts +24 -12
- package/dist/src/plugins/typescript/index.js +22 -18
- package/dist/src/plugins/typescript/index.mjs +20 -16
- package/dist/src/plugins/typescript/tsup.js +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.283.0](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.283.0) (2025-09-08)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **workspace-tools:** Updated the `typescript` plugin to allow specification of
|
|
10
|
+
task names in options
|
|
11
|
+
([f11af9560](https://github.com/storm-software/storm-ops/commit/f11af9560))
|
|
12
|
+
|
|
13
|
+
### Miscellaneous
|
|
14
|
+
|
|
15
|
+
- **monorepo:** Update workspace package links
|
|
16
|
+
([08b9b2380](https://github.com/storm-software/storm-ops/commit/08b9b2380))
|
|
17
|
+
|
|
18
|
+
### Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated prettier to 0.53.15
|
|
21
|
+
- Updated esbuild to 0.47.19
|
|
22
|
+
- Updated unbuild to 0.51.19
|
|
23
|
+
|
|
24
|
+
## [1.282.1](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.282.1) (2025-09-08)
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
- **workspace-tools:** Update type check task to `lint-tsc`
|
|
29
|
+
([01a7b9d65](https://github.com/storm-software/storm-ops/commit/01a7b9d65))
|
|
30
|
+
|
|
31
|
+
### Miscellaneous
|
|
32
|
+
|
|
33
|
+
- **monorepo:** Update workspace package links
|
|
34
|
+
([64710d08d](https://github.com/storm-software/storm-ops/commit/64710d08d))
|
|
35
|
+
|
|
36
|
+
### Updated Dependencies
|
|
37
|
+
|
|
38
|
+
- Updated esbuild to 0.47.18
|
|
39
|
+
- Updated unbuild to 0.51.18
|
|
40
|
+
|
|
5
41
|
## [1.282.0](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.282.0) (2025-09-06)
|
|
6
42
|
|
|
7
43
|
### 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 -->
|
|
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
+
|
|
43
44
|
## Table of Contents
|
|
44
45
|
|
|
45
46
|
- [Storm Workspace Tools](#storm-workspace-tools)
|
package/dist/executors.js
CHANGED
|
@@ -28,10 +28,10 @@ var _chunk2JYSOWHXjs = require('./chunk-2JYSOWHX.js');
|
|
|
28
28
|
var _chunkUH5PNSPJjs = require('./chunk-UH5PNSPJ.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkEIZKPKJHjs = require('./chunk-EIZKPKJH.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkDY4PYCP6js = require('./chunk-DY4PYCP6.js');
|
|
35
35
|
require('./chunk-73IC2JQV.js');
|
|
36
36
|
require('./chunk-F6X43VUX.js');
|
|
37
37
|
require('./chunk-LJDV7HFT.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
cargoCheckExecutor
|
|
28
28
|
} from "./chunk-PZFEA7HL.mjs";
|
|
29
|
-
import {
|
|
30
|
-
cargoClippyExecutor
|
|
31
|
-
} from "./chunk-UIUT3KSN.mjs";
|
|
32
29
|
import {
|
|
33
30
|
cargoDocExecutor
|
|
34
31
|
} from "./chunk-IID5AST4.mjs";
|
|
32
|
+
import {
|
|
33
|
+
cargoClippyExecutor
|
|
34
|
+
} from "./chunk-UIUT3KSN.mjs";
|
|
35
35
|
import "./chunk-PIK7KYVE.mjs";
|
|
36
36
|
import "./chunk-KHT5W6AJ.mjs";
|
|
37
37
|
import "./chunk-6LP3KKXE.mjs";
|
package/dist/index.js
CHANGED
|
@@ -77,10 +77,10 @@ var _chunk2JYSOWHXjs = require('./chunk-2JYSOWHX.js');
|
|
|
77
77
|
var _chunkUH5PNSPJjs = require('./chunk-UH5PNSPJ.js');
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunkEIZKPKJHjs = require('./chunk-EIZKPKJH.js');
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunkDY4PYCP6js = require('./chunk-DY4PYCP6.js');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
package/dist/index.mjs
CHANGED
|
@@ -75,12 +75,12 @@ import {
|
|
|
75
75
|
import {
|
|
76
76
|
cargoCheckExecutor
|
|
77
77
|
} from "./chunk-PZFEA7HL.mjs";
|
|
78
|
-
import {
|
|
79
|
-
cargoClippyExecutor
|
|
80
|
-
} from "./chunk-UIUT3KSN.mjs";
|
|
81
78
|
import {
|
|
82
79
|
cargoDocExecutor
|
|
83
80
|
} from "./chunk-IID5AST4.mjs";
|
|
81
|
+
import {
|
|
82
|
+
cargoClippyExecutor
|
|
83
|
+
} from "./chunk-UIUT3KSN.mjs";
|
|
84
84
|
import {
|
|
85
85
|
PackageManagerTypes,
|
|
86
86
|
addPackageJsonGitHead,
|
|
@@ -11,30 +11,42 @@ interface TypeScriptPluginOptions {
|
|
|
11
11
|
* @defaultValue true
|
|
12
12
|
*/
|
|
13
13
|
includeApps?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Whether to enable Knip, a tool for analyzing TypeScript projects.
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue true
|
|
18
|
-
*/
|
|
19
|
-
enableKnip?: boolean;
|
|
20
14
|
/**
|
|
21
15
|
* Whether to enable Markdownlint for linting Markdown files.
|
|
22
16
|
*
|
|
23
|
-
* @
|
|
17
|
+
* @remarks
|
|
18
|
+
* If set to a string, it will be used as the target name instead of the default "lint-markdown".
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue "lint-markdown"
|
|
24
21
|
*/
|
|
25
|
-
enableMarkdownlint?:
|
|
22
|
+
enableMarkdownlint?: string | false;
|
|
26
23
|
/**
|
|
27
24
|
* Whether to enable ESLint for linting TypeScript and JavaScript files.
|
|
28
25
|
*
|
|
29
|
-
* @
|
|
26
|
+
* @remarks
|
|
27
|
+
* If set to a string, it will be used as the target name instead of the default "lint".
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue "lint"
|
|
30
30
|
*/
|
|
31
|
-
enableEslint?:
|
|
31
|
+
enableEslint?: string | false;
|
|
32
32
|
/**
|
|
33
33
|
* Whether to enable TypeScript type checking via `tsc`.
|
|
34
34
|
*
|
|
35
|
-
* @
|
|
35
|
+
* @remarks
|
|
36
|
+
* If set to a string, it will be used as the target name instead of the default "type-check".
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue "type-check"
|
|
39
|
+
*/
|
|
40
|
+
enableTypeCheck?: string | false;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to use `tsgo` for TypeScript language features in editors that support it.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* This requires the `@typescript/native-preview` package to be installed in the workspace.
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue false
|
|
36
48
|
*/
|
|
37
|
-
|
|
49
|
+
useTsGo?: boolean;
|
|
38
50
|
/**
|
|
39
51
|
* Whether to skip the linting of internal tools (projects in the `/tools` directory).
|
|
40
52
|
*
|
|
@@ -11,30 +11,42 @@ interface TypeScriptPluginOptions {
|
|
|
11
11
|
* @defaultValue true
|
|
12
12
|
*/
|
|
13
13
|
includeApps?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Whether to enable Knip, a tool for analyzing TypeScript projects.
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue true
|
|
18
|
-
*/
|
|
19
|
-
enableKnip?: boolean;
|
|
20
14
|
/**
|
|
21
15
|
* Whether to enable Markdownlint for linting Markdown files.
|
|
22
16
|
*
|
|
23
|
-
* @
|
|
17
|
+
* @remarks
|
|
18
|
+
* If set to a string, it will be used as the target name instead of the default "lint-markdown".
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue "lint-markdown"
|
|
24
21
|
*/
|
|
25
|
-
enableMarkdownlint?:
|
|
22
|
+
enableMarkdownlint?: string | false;
|
|
26
23
|
/**
|
|
27
24
|
* Whether to enable ESLint for linting TypeScript and JavaScript files.
|
|
28
25
|
*
|
|
29
|
-
* @
|
|
26
|
+
* @remarks
|
|
27
|
+
* If set to a string, it will be used as the target name instead of the default "lint".
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue "lint"
|
|
30
30
|
*/
|
|
31
|
-
enableEslint?:
|
|
31
|
+
enableEslint?: string | false;
|
|
32
32
|
/**
|
|
33
33
|
* Whether to enable TypeScript type checking via `tsc`.
|
|
34
34
|
*
|
|
35
|
-
* @
|
|
35
|
+
* @remarks
|
|
36
|
+
* If set to a string, it will be used as the target name instead of the default "type-check".
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue "type-check"
|
|
39
|
+
*/
|
|
40
|
+
enableTypeCheck?: string | false;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to use `tsgo` for TypeScript language features in editors that support it.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* This requires the `@typescript/native-preview` package to be installed in the workspace.
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue false
|
|
36
48
|
*/
|
|
37
|
-
|
|
49
|
+
useTsGo?: boolean;
|
|
38
50
|
/**
|
|
39
51
|
* Whether to skip the linting of internal tools (projects in the `/tools` directory).
|
|
40
52
|
*
|
|
@@ -74,7 +74,7 @@ var createNodesV2 = [
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
if (enableMarkdownlint) {
|
|
77
|
-
targets["lint-markdown"] ??= {
|
|
77
|
+
targets[_optionalChain([options2, 'optionalAccess', _6 => _6.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _7 => _7.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown"] ??= {
|
|
78
78
|
cache: true,
|
|
79
79
|
inputs: [
|
|
80
80
|
"linting",
|
|
@@ -82,7 +82,9 @@ var createNodesV2 = [
|
|
|
82
82
|
"{projectRoot}/**/*.mdx"
|
|
83
83
|
],
|
|
84
84
|
outputs: ["{projectRoot}/**/*.md", "{projectRoot}/**/*.mdx"],
|
|
85
|
-
dependsOn: [
|
|
85
|
+
dependsOn: [
|
|
86
|
+
`^${_optionalChain([options2, 'optionalAccess', _8 => _8.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _9 => _9.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown"}`
|
|
87
|
+
],
|
|
86
88
|
executor: "nx:run-commands",
|
|
87
89
|
options: {
|
|
88
90
|
command: 'pnpm exec markdownlint-cli2 "{projectRoot}/*.{md,mdx}" "{projectRoot}/**/*.{md,mdx}" --config "node_modules/@storm-software/markdownlint/config/base.markdownlint-cli2.jsonc" --fix'
|
|
@@ -90,14 +92,16 @@ var createNodesV2 = [
|
|
|
90
92
|
};
|
|
91
93
|
}
|
|
92
94
|
if (enableTypeCheck) {
|
|
93
|
-
targets["
|
|
95
|
+
targets[_optionalChain([options2, 'optionalAccess', _10 => _10.enableTypeCheck]) && typeof _optionalChain([options2, 'optionalAccess', _11 => _11.enableTypeCheck]) === "string" ? options2.enableTypeCheck : "type-check"] ??= {
|
|
94
96
|
cache: true,
|
|
95
97
|
inputs: ["typescript", "^production"],
|
|
96
|
-
outputs: [
|
|
98
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
97
99
|
executor: "nx:run-commands",
|
|
98
|
-
dependsOn: [
|
|
100
|
+
dependsOn: [
|
|
101
|
+
`^${_optionalChain([options2, 'optionalAccess', _12 => _12.enableTypeCheck]) && typeof _optionalChain([options2, 'optionalAccess', _13 => _13.enableTypeCheck]) === "string" ? options2.enableTypeCheck : "type-check"}`
|
|
102
|
+
],
|
|
99
103
|
options: {
|
|
100
|
-
command: `pnpm exec tsc --noEmit --pretty --project
|
|
104
|
+
command: `pnpm exec ${_optionalChain([options2, 'optionalAccess', _14 => _14.useTsGo]) ? "tsgo" : "tsc"} --noEmit --skipLibCheck --pretty --project ./${_path.join.call(void 0,
|
|
101
105
|
projectConfig.root,
|
|
102
106
|
"tsconfig.json"
|
|
103
107
|
)}`
|
|
@@ -110,16 +114,16 @@ var createNodesV2 = [
|
|
|
110
114
|
eslintConfig = checkEslintConfigAtPath(context2.workspaceRoot);
|
|
111
115
|
}
|
|
112
116
|
if (eslintConfig) {
|
|
113
|
-
targets.lint ??= {
|
|
117
|
+
targets[_optionalChain([options2, 'optionalAccess', _15 => _15.enableEslint]) && typeof _optionalChain([options2, 'optionalAccess', _16 => _16.enableEslint]) === "string" ? options2.enableEslint : "lint"] ??= {
|
|
114
118
|
cache: true,
|
|
115
119
|
inputs: ["linting", "typescript", "^production"],
|
|
116
120
|
outputs: [
|
|
117
121
|
"{projectRoot}/**/*.{ts,tsx,js,jsx,json,md,mdx,yaml,yml,html,css,scss,sass,less,graphql,gql}"
|
|
118
122
|
],
|
|
119
123
|
dependsOn: [
|
|
120
|
-
enableMarkdownlint ? "lint-markdown" : void 0,
|
|
121
|
-
enableTypeCheck ? "
|
|
122
|
-
"
|
|
124
|
+
enableMarkdownlint ? _optionalChain([options2, 'optionalAccess', _17 => _17.enableMarkdownlint]) && typeof _optionalChain([options2, 'optionalAccess', _18 => _18.enableMarkdownlint]) === "string" ? options2.enableMarkdownlint : "lint-markdown" : void 0,
|
|
125
|
+
enableTypeCheck ? _optionalChain([options2, 'optionalAccess', _19 => _19.enableTypeCheck]) && typeof _optionalChain([options2, 'optionalAccess', _20 => _20.enableTypeCheck]) === "string" ? options2.enableTypeCheck : "type-check" : void 0,
|
|
126
|
+
`^${_optionalChain([options2, 'optionalAccess', _21 => _21.enableEslint]) && typeof _optionalChain([options2, 'optionalAccess', _22 => _22.enableEslint]) === "string" ? options2.enableEslint : "lint"}`
|
|
123
127
|
].filter(Boolean),
|
|
124
128
|
executor: "@nx/eslint:lint",
|
|
125
129
|
options: {
|
|
@@ -187,7 +191,7 @@ var createNodesV2 = [
|
|
|
187
191
|
cache: true,
|
|
188
192
|
executor: "nx:run-commands",
|
|
189
193
|
inputs: ["typescript", "^production"],
|
|
190
|
-
outputs: [
|
|
194
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
191
195
|
options: {
|
|
192
196
|
command: "pnpm exec rimraf dist/{projectRoot}",
|
|
193
197
|
color: true,
|
|
@@ -199,7 +203,7 @@ var createNodesV2 = [
|
|
|
199
203
|
executor: "nx:run-commands",
|
|
200
204
|
dependsOn: ["clean", "^build"],
|
|
201
205
|
inputs: ["typescript", "^production"],
|
|
202
|
-
outputs: [
|
|
206
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
203
207
|
options: {
|
|
204
208
|
command: `pnpm exec nx run ${projectConfig.name}:build`
|
|
205
209
|
}
|
|
@@ -209,7 +213,7 @@ var createNodesV2 = [
|
|
|
209
213
|
cache: true,
|
|
210
214
|
executor: "@nx/jest:jest",
|
|
211
215
|
inputs: ["testing", "typescript", "^production"],
|
|
212
|
-
outputs: [
|
|
216
|
+
outputs: [`{workspaceRoot}/coverage/${root}`],
|
|
213
217
|
defaultConfiguration: "development",
|
|
214
218
|
options: {
|
|
215
219
|
jestConfig: "{projectRoot}/jest.config.ts",
|
|
@@ -237,7 +241,7 @@ var createNodesV2 = [
|
|
|
237
241
|
targets["size-limit"] ??= {
|
|
238
242
|
cache: true,
|
|
239
243
|
inputs: ["testing", "typescript", "^production"],
|
|
240
|
-
outputs: [
|
|
244
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
241
245
|
dependsOn: ["build", "^size-limit"],
|
|
242
246
|
options: {}
|
|
243
247
|
};
|
|
@@ -267,16 +271,16 @@ var createNodesV2 = [
|
|
|
267
271
|
targets["clean-package"] ??= {
|
|
268
272
|
cache: true,
|
|
269
273
|
dependsOn: ["build"],
|
|
270
|
-
inputs: [
|
|
271
|
-
outputs: [
|
|
274
|
+
inputs: [`{workspaceRoot}/dist/${root}`],
|
|
275
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
272
276
|
executor: "@storm-software/workspace-tools:clean-package",
|
|
273
277
|
options: {
|
|
274
278
|
cleanReadMe: true,
|
|
275
279
|
cleanComments: true
|
|
276
280
|
}
|
|
277
281
|
};
|
|
278
|
-
_optionalChain([targets, 'access',
|
|
279
|
-
_optionalChain([targets, 'access',
|
|
282
|
+
_optionalChain([targets, 'access', _23 => _23["nx-release-publish"], 'access', _24 => _24.dependsOn, 'optionalAccess', _25 => _25.push, 'call', _26 => _26("clean-package")]);
|
|
283
|
+
_optionalChain([targets, 'access', _27 => _27["size-limit"], 'access', _28 => _28.dependsOn, 'optionalAccess', _29 => _29.push, 'call', _30 => _30("clean-package")]);
|
|
280
284
|
}
|
|
281
285
|
}
|
|
282
286
|
_chunkAX3RSZT7js.addProjectTag.call(void 0,
|
|
@@ -75,7 +75,7 @@ var createNodesV2 = [
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
if (enableMarkdownlint) {
|
|
78
|
-
targets["lint-markdown"] ??= {
|
|
78
|
+
targets[options2?.enableMarkdownlint && typeof options2?.enableMarkdownlint === "string" ? options2.enableMarkdownlint : "lint-markdown"] ??= {
|
|
79
79
|
cache: true,
|
|
80
80
|
inputs: [
|
|
81
81
|
"linting",
|
|
@@ -83,7 +83,9 @@ var createNodesV2 = [
|
|
|
83
83
|
"{projectRoot}/**/*.mdx"
|
|
84
84
|
],
|
|
85
85
|
outputs: ["{projectRoot}/**/*.md", "{projectRoot}/**/*.mdx"],
|
|
86
|
-
dependsOn: [
|
|
86
|
+
dependsOn: [
|
|
87
|
+
`^${options2?.enableMarkdownlint && typeof options2?.enableMarkdownlint === "string" ? options2.enableMarkdownlint : "lint-markdown"}`
|
|
88
|
+
],
|
|
87
89
|
executor: "nx:run-commands",
|
|
88
90
|
options: {
|
|
89
91
|
command: 'pnpm exec markdownlint-cli2 "{projectRoot}/*.{md,mdx}" "{projectRoot}/**/*.{md,mdx}" --config "node_modules/@storm-software/markdownlint/config/base.markdownlint-cli2.jsonc" --fix'
|
|
@@ -91,14 +93,16 @@ var createNodesV2 = [
|
|
|
91
93
|
};
|
|
92
94
|
}
|
|
93
95
|
if (enableTypeCheck) {
|
|
94
|
-
targets["
|
|
96
|
+
targets[options2?.enableTypeCheck && typeof options2?.enableTypeCheck === "string" ? options2.enableTypeCheck : "type-check"] ??= {
|
|
95
97
|
cache: true,
|
|
96
98
|
inputs: ["typescript", "^production"],
|
|
97
|
-
outputs: [
|
|
99
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
98
100
|
executor: "nx:run-commands",
|
|
99
|
-
dependsOn: [
|
|
101
|
+
dependsOn: [
|
|
102
|
+
`^${options2?.enableTypeCheck && typeof options2?.enableTypeCheck === "string" ? options2.enableTypeCheck : "type-check"}`
|
|
103
|
+
],
|
|
100
104
|
options: {
|
|
101
|
-
command: `pnpm exec tsc --noEmit --pretty --project
|
|
105
|
+
command: `pnpm exec ${options2?.useTsGo ? "tsgo" : "tsc"} --noEmit --skipLibCheck --pretty --project ./${join(
|
|
102
106
|
projectConfig.root,
|
|
103
107
|
"tsconfig.json"
|
|
104
108
|
)}`
|
|
@@ -111,16 +115,16 @@ var createNodesV2 = [
|
|
|
111
115
|
eslintConfig = checkEslintConfigAtPath(context2.workspaceRoot);
|
|
112
116
|
}
|
|
113
117
|
if (eslintConfig) {
|
|
114
|
-
targets.lint ??= {
|
|
118
|
+
targets[options2?.enableEslint && typeof options2?.enableEslint === "string" ? options2.enableEslint : "lint"] ??= {
|
|
115
119
|
cache: true,
|
|
116
120
|
inputs: ["linting", "typescript", "^production"],
|
|
117
121
|
outputs: [
|
|
118
122
|
"{projectRoot}/**/*.{ts,tsx,js,jsx,json,md,mdx,yaml,yml,html,css,scss,sass,less,graphql,gql}"
|
|
119
123
|
],
|
|
120
124
|
dependsOn: [
|
|
121
|
-
enableMarkdownlint ? "lint-markdown" : void 0,
|
|
122
|
-
enableTypeCheck ? "
|
|
123
|
-
"
|
|
125
|
+
enableMarkdownlint ? options2?.enableMarkdownlint && typeof options2?.enableMarkdownlint === "string" ? options2.enableMarkdownlint : "lint-markdown" : void 0,
|
|
126
|
+
enableTypeCheck ? options2?.enableTypeCheck && typeof options2?.enableTypeCheck === "string" ? options2.enableTypeCheck : "type-check" : void 0,
|
|
127
|
+
`^${options2?.enableEslint && typeof options2?.enableEslint === "string" ? options2.enableEslint : "lint"}`
|
|
124
128
|
].filter(Boolean),
|
|
125
129
|
executor: "@nx/eslint:lint",
|
|
126
130
|
options: {
|
|
@@ -188,7 +192,7 @@ var createNodesV2 = [
|
|
|
188
192
|
cache: true,
|
|
189
193
|
executor: "nx:run-commands",
|
|
190
194
|
inputs: ["typescript", "^production"],
|
|
191
|
-
outputs: [
|
|
195
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
192
196
|
options: {
|
|
193
197
|
command: "pnpm exec rimraf dist/{projectRoot}",
|
|
194
198
|
color: true,
|
|
@@ -200,7 +204,7 @@ var createNodesV2 = [
|
|
|
200
204
|
executor: "nx:run-commands",
|
|
201
205
|
dependsOn: ["clean", "^build"],
|
|
202
206
|
inputs: ["typescript", "^production"],
|
|
203
|
-
outputs: [
|
|
207
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
204
208
|
options: {
|
|
205
209
|
command: `pnpm exec nx run ${projectConfig.name}:build`
|
|
206
210
|
}
|
|
@@ -210,7 +214,7 @@ var createNodesV2 = [
|
|
|
210
214
|
cache: true,
|
|
211
215
|
executor: "@nx/jest:jest",
|
|
212
216
|
inputs: ["testing", "typescript", "^production"],
|
|
213
|
-
outputs: [
|
|
217
|
+
outputs: [`{workspaceRoot}/coverage/${root}`],
|
|
214
218
|
defaultConfiguration: "development",
|
|
215
219
|
options: {
|
|
216
220
|
jestConfig: "{projectRoot}/jest.config.ts",
|
|
@@ -238,7 +242,7 @@ var createNodesV2 = [
|
|
|
238
242
|
targets["size-limit"] ??= {
|
|
239
243
|
cache: true,
|
|
240
244
|
inputs: ["testing", "typescript", "^production"],
|
|
241
|
-
outputs: [
|
|
245
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
242
246
|
dependsOn: ["build", "^size-limit"],
|
|
243
247
|
options: {}
|
|
244
248
|
};
|
|
@@ -268,8 +272,8 @@ var createNodesV2 = [
|
|
|
268
272
|
targets["clean-package"] ??= {
|
|
269
273
|
cache: true,
|
|
270
274
|
dependsOn: ["build"],
|
|
271
|
-
inputs: [
|
|
272
|
-
outputs: [
|
|
275
|
+
inputs: [`{workspaceRoot}/dist/${root}`],
|
|
276
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
273
277
|
executor: "@storm-software/workspace-tools:clean-package",
|
|
274
278
|
options: {
|
|
275
279
|
cleanReadMe: true,
|
|
@@ -88,7 +88,7 @@ Please add it to your dependencies by running \`pnpm add tsup -D --filter="${pac
|
|
|
88
88
|
"{projectRoot}/*.md",
|
|
89
89
|
"{projectRoot}/package.json"
|
|
90
90
|
],
|
|
91
|
-
outputs: [
|
|
91
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
92
92
|
executor: "nx:run-commands",
|
|
93
93
|
dependsOn: ["build-base", "build-untyped", "^build"],
|
|
94
94
|
options: {
|
|
@@ -89,7 +89,7 @@ Please add it to your dependencies by running \`pnpm add tsup -D --filter="${pac
|
|
|
89
89
|
"{projectRoot}/*.md",
|
|
90
90
|
"{projectRoot}/package.json"
|
|
91
91
|
],
|
|
92
|
-
outputs: [
|
|
92
|
+
outputs: [`{workspaceRoot}/dist/${root}`],
|
|
93
93
|
executor: "nx:run-commands",
|
|
94
94
|
dependsOn: ["build-base", "build-untyped", "^build"],
|
|
95
95
|
options: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/workspace-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.284.0",
|
|
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",
|
|
@@ -208,9 +208,9 @@
|
|
|
208
208
|
"@size-limit/esbuild": "11.1.4",
|
|
209
209
|
"@size-limit/esbuild-why": "11.1.4",
|
|
210
210
|
"@size-limit/file": "11.1.4",
|
|
211
|
-
"@storm-software/esbuild": "^0.
|
|
212
|
-
"@storm-software/prettier": "^0.53.
|
|
213
|
-
"@storm-software/unbuild": "^0.
|
|
211
|
+
"@storm-software/esbuild": "^0.48.0",
|
|
212
|
+
"@storm-software/prettier": "^0.53.16",
|
|
213
|
+
"@storm-software/unbuild": "^0.52.0",
|
|
214
214
|
"fs-extra": "11.2.0",
|
|
215
215
|
"glob": "^11.0.1",
|
|
216
216
|
"jiti": "^2.4.2",
|
|
@@ -238,5 +238,5 @@
|
|
|
238
238
|
"publishConfig": { "access": "public" },
|
|
239
239
|
"executors": "./executors.json",
|
|
240
240
|
"generators": "./generators.json",
|
|
241
|
-
"gitHead": "
|
|
241
|
+
"gitHead": "33495f6446b9cce3f9874b76bc93cdc975e2d866"
|
|
242
242
|
}
|