@storm-software/workspace-tools 1.224.2 → 1.226.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 +34 -0
- package/README.md +60 -19
- package/executors.json +8 -3
- package/index.d.ts +2 -0
- package/index.js +437 -120
- package/meta.json +216 -4
- package/package.json +1 -1
- package/src/executors/tsdown/executor.d.ts +8 -0
- package/src/executors/tsdown/schema.d.ts +3 -0
- package/src/executors/tsdown/schema.json +122 -0
package/meta.json
CHANGED
|
@@ -23964,6 +23964,176 @@
|
|
|
23964
23964
|
"bytes": 389,
|
|
23965
23965
|
"imports": []
|
|
23966
23966
|
},
|
|
23967
|
+
"packages/tsdown/src/clean.ts": {
|
|
23968
|
+
"bytes": 640,
|
|
23969
|
+
"imports": [
|
|
23970
|
+
{
|
|
23971
|
+
"path": "node_modules/.pnpm/@humanfs+node@0.16.6/node_modules/@humanfs/node/src/index.js",
|
|
23972
|
+
"kind": "import-statement",
|
|
23973
|
+
"original": "@humanfs/node"
|
|
23974
|
+
},
|
|
23975
|
+
{
|
|
23976
|
+
"path": "@storm-software/config",
|
|
23977
|
+
"kind": "import-statement",
|
|
23978
|
+
"external": true
|
|
23979
|
+
},
|
|
23980
|
+
{
|
|
23981
|
+
"path": "packages/config-tools/src/logger/console.ts",
|
|
23982
|
+
"kind": "import-statement",
|
|
23983
|
+
"original": "@storm-software/config-tools/logger/console"
|
|
23984
|
+
}
|
|
23985
|
+
],
|
|
23986
|
+
"format": "esm"
|
|
23987
|
+
},
|
|
23988
|
+
"packages/tsdown/src/config.ts": {
|
|
23989
|
+
"bytes": 633,
|
|
23990
|
+
"imports": [
|
|
23991
|
+
{
|
|
23992
|
+
"path": "./types",
|
|
23993
|
+
"kind": "import-statement",
|
|
23994
|
+
"external": true
|
|
23995
|
+
}
|
|
23996
|
+
],
|
|
23997
|
+
"format": "esm"
|
|
23998
|
+
},
|
|
23999
|
+
"packages/tsdown/src/build.ts": {
|
|
24000
|
+
"bytes": 11237,
|
|
24001
|
+
"imports": [
|
|
24002
|
+
{
|
|
24003
|
+
"path": "node_modules/.pnpm/@humanfs+node@0.16.6/node_modules/@humanfs/node/src/index.js",
|
|
24004
|
+
"kind": "import-statement",
|
|
24005
|
+
"original": "@humanfs/node"
|
|
24006
|
+
},
|
|
24007
|
+
{
|
|
24008
|
+
"path": "@nx/devkit",
|
|
24009
|
+
"kind": "import-statement",
|
|
24010
|
+
"external": true
|
|
24011
|
+
},
|
|
24012
|
+
{
|
|
24013
|
+
"path": "packages/build-tools/src/index.ts",
|
|
24014
|
+
"kind": "import-statement",
|
|
24015
|
+
"original": "@storm-software/build-tools"
|
|
24016
|
+
},
|
|
24017
|
+
{
|
|
24018
|
+
"path": "packages/config-tools/src/create-storm-config.ts",
|
|
24019
|
+
"kind": "import-statement",
|
|
24020
|
+
"original": "@storm-software/config-tools/create-storm-config"
|
|
24021
|
+
},
|
|
24022
|
+
{
|
|
24023
|
+
"path": "packages/config-tools/src/logger/console.ts",
|
|
24024
|
+
"kind": "import-statement",
|
|
24025
|
+
"original": "@storm-software/config-tools/logger/console"
|
|
24026
|
+
},
|
|
24027
|
+
{
|
|
24028
|
+
"path": "packages/config-tools/src/logger/get-log-level.ts",
|
|
24029
|
+
"kind": "import-statement",
|
|
24030
|
+
"original": "@storm-software/config-tools/logger/get-log-level"
|
|
24031
|
+
},
|
|
24032
|
+
{
|
|
24033
|
+
"path": "packages/config-tools/src/utilities/correct-paths.ts",
|
|
24034
|
+
"kind": "import-statement",
|
|
24035
|
+
"original": "@storm-software/config-tools/utilities/correct-paths"
|
|
24036
|
+
},
|
|
24037
|
+
{
|
|
24038
|
+
"path": "defu",
|
|
24039
|
+
"kind": "import-statement",
|
|
24040
|
+
"external": true
|
|
24041
|
+
},
|
|
24042
|
+
{
|
|
24043
|
+
"path": "nx/src/utils/find-workspace-root",
|
|
24044
|
+
"kind": "import-statement",
|
|
24045
|
+
"external": true
|
|
24046
|
+
},
|
|
24047
|
+
{
|
|
24048
|
+
"path": "tsdown",
|
|
24049
|
+
"kind": "import-statement",
|
|
24050
|
+
"external": true
|
|
24051
|
+
},
|
|
24052
|
+
{
|
|
24053
|
+
"path": "packages/tsdown/src/clean.ts",
|
|
24054
|
+
"kind": "import-statement",
|
|
24055
|
+
"original": "./clean"
|
|
24056
|
+
},
|
|
24057
|
+
{
|
|
24058
|
+
"path": "packages/tsdown/src/config.ts",
|
|
24059
|
+
"kind": "import-statement",
|
|
24060
|
+
"original": "./config"
|
|
24061
|
+
},
|
|
24062
|
+
{
|
|
24063
|
+
"path": "./types",
|
|
24064
|
+
"kind": "import-statement",
|
|
24065
|
+
"external": true
|
|
24066
|
+
}
|
|
24067
|
+
],
|
|
24068
|
+
"format": "esm"
|
|
24069
|
+
},
|
|
24070
|
+
"packages/tsdown/src/types.ts": {
|
|
24071
|
+
"bytes": 2110,
|
|
24072
|
+
"imports": [
|
|
24073
|
+
{
|
|
24074
|
+
"path": "@nx/devkit",
|
|
24075
|
+
"kind": "import-statement",
|
|
24076
|
+
"external": true
|
|
24077
|
+
},
|
|
24078
|
+
{
|
|
24079
|
+
"path": "@storm-software/build-tools",
|
|
24080
|
+
"kind": "import-statement",
|
|
24081
|
+
"external": true
|
|
24082
|
+
}
|
|
24083
|
+
],
|
|
24084
|
+
"format": "esm"
|
|
24085
|
+
},
|
|
24086
|
+
"packages/tsdown/src/index.ts": {
|
|
24087
|
+
"bytes": 1051,
|
|
24088
|
+
"imports": [
|
|
24089
|
+
{
|
|
24090
|
+
"path": "packages/tsdown/src/build.ts",
|
|
24091
|
+
"kind": "import-statement",
|
|
24092
|
+
"original": "./build"
|
|
24093
|
+
},
|
|
24094
|
+
{
|
|
24095
|
+
"path": "packages/tsdown/src/clean.ts",
|
|
24096
|
+
"kind": "import-statement",
|
|
24097
|
+
"original": "./clean"
|
|
24098
|
+
},
|
|
24099
|
+
{
|
|
24100
|
+
"path": "packages/tsdown/src/config.ts",
|
|
24101
|
+
"kind": "import-statement",
|
|
24102
|
+
"original": "./config"
|
|
24103
|
+
},
|
|
24104
|
+
{
|
|
24105
|
+
"path": "packages/tsdown/src/types.ts",
|
|
24106
|
+
"kind": "import-statement",
|
|
24107
|
+
"original": "./types"
|
|
24108
|
+
}
|
|
24109
|
+
],
|
|
24110
|
+
"format": "esm"
|
|
24111
|
+
},
|
|
24112
|
+
"packages/workspace-tools/src/executors/tsdown/executor.ts": {
|
|
24113
|
+
"bytes": 1856,
|
|
24114
|
+
"imports": [
|
|
24115
|
+
{
|
|
24116
|
+
"path": "packages/config-tools/src/logger/console.ts",
|
|
24117
|
+
"kind": "import-statement",
|
|
24118
|
+
"original": "@storm-software/config-tools/logger/console"
|
|
24119
|
+
},
|
|
24120
|
+
{
|
|
24121
|
+
"path": "packages/tsdown/src/index.ts",
|
|
24122
|
+
"kind": "import-statement",
|
|
24123
|
+
"original": "@storm-software/tsdown"
|
|
24124
|
+
},
|
|
24125
|
+
{
|
|
24126
|
+
"path": "packages/workspace-tools/src/base/base-executor.ts",
|
|
24127
|
+
"kind": "import-statement",
|
|
24128
|
+
"original": "../../base/base-executor"
|
|
24129
|
+
}
|
|
24130
|
+
],
|
|
24131
|
+
"format": "esm"
|
|
24132
|
+
},
|
|
24133
|
+
"packages/workspace-tools/src/executors/tsdown/schema.json": {
|
|
24134
|
+
"bytes": 3556,
|
|
24135
|
+
"imports": []
|
|
24136
|
+
},
|
|
23967
24137
|
"node_modules/.pnpm/typia@7.5.1_@samchon+openapi@2.3.4_typescript@5.7.3/node_modules/typia/lib/transformers/ImportTransformer.js": {
|
|
23968
24138
|
"bytes": 2340,
|
|
23969
24139
|
"imports": [
|
|
@@ -33743,7 +33913,7 @@
|
|
|
33743
33913
|
"format": "esm"
|
|
33744
33914
|
},
|
|
33745
33915
|
"packages/unbuild/src/plugins/tsc.ts": {
|
|
33746
|
-
"bytes":
|
|
33916
|
+
"bytes": 1715,
|
|
33747
33917
|
"imports": [
|
|
33748
33918
|
{
|
|
33749
33919
|
"path": "@nx/devkit",
|
|
@@ -35172,7 +35342,7 @@
|
|
|
35172
35342
|
"format": "esm"
|
|
35173
35343
|
},
|
|
35174
35344
|
"packages/workspace-tools/index.ts": {
|
|
35175
|
-
"bytes":
|
|
35345
|
+
"bytes": 1403,
|
|
35176
35346
|
"imports": [
|
|
35177
35347
|
{
|
|
35178
35348
|
"path": "packages/workspace-tools/src/base/index.ts",
|
|
@@ -35229,6 +35399,16 @@
|
|
|
35229
35399
|
"kind": "import-statement",
|
|
35230
35400
|
"original": "./src/executors/size-limit/schema"
|
|
35231
35401
|
},
|
|
35402
|
+
{
|
|
35403
|
+
"path": "packages/workspace-tools/src/executors/tsdown/executor.ts",
|
|
35404
|
+
"kind": "import-statement",
|
|
35405
|
+
"original": "./src/executors/tsdown/executor"
|
|
35406
|
+
},
|
|
35407
|
+
{
|
|
35408
|
+
"path": "packages/workspace-tools/src/executors/tsdown/schema.json",
|
|
35409
|
+
"kind": "import-statement",
|
|
35410
|
+
"original": "./src/executors/tsdown/schema"
|
|
35411
|
+
},
|
|
35232
35412
|
{
|
|
35233
35413
|
"path": "packages/workspace-tools/src/executors/typia/executor.ts",
|
|
35234
35414
|
"kind": "import-statement",
|
|
@@ -38668,6 +38848,26 @@
|
|
|
38668
38848
|
"kind": "require-call",
|
|
38669
38849
|
"external": true
|
|
38670
38850
|
},
|
|
38851
|
+
{
|
|
38852
|
+
"path": "defu",
|
|
38853
|
+
"kind": "require-call",
|
|
38854
|
+
"external": true
|
|
38855
|
+
},
|
|
38856
|
+
{
|
|
38857
|
+
"path": "nx/src/utils/find-workspace-root",
|
|
38858
|
+
"kind": "require-call",
|
|
38859
|
+
"external": true
|
|
38860
|
+
},
|
|
38861
|
+
{
|
|
38862
|
+
"path": "tsdown",
|
|
38863
|
+
"kind": "require-call",
|
|
38864
|
+
"external": true
|
|
38865
|
+
},
|
|
38866
|
+
{
|
|
38867
|
+
"path": "@nx/devkit",
|
|
38868
|
+
"kind": "require-call",
|
|
38869
|
+
"external": true
|
|
38870
|
+
},
|
|
38671
38871
|
{
|
|
38672
38872
|
"path": "@nx/js",
|
|
38673
38873
|
"kind": "require-call",
|
|
@@ -42161,7 +42361,7 @@
|
|
|
42161
42361
|
"bytesInOutput": 479682
|
|
42162
42362
|
},
|
|
42163
42363
|
"packages/workspace-tools/index.ts": {
|
|
42164
|
-
"bytesInOutput":
|
|
42364
|
+
"bytesInOutput": 3613
|
|
42165
42365
|
},
|
|
42166
42366
|
"node_modules/.pnpm/c12@2.0.1/node_modules/c12/dist/shared/c12.B4fc1S0C.mjs": {
|
|
42167
42367
|
"bytesInOutput": 12041
|
|
@@ -42631,6 +42831,18 @@
|
|
|
42631
42831
|
"node_modules/.pnpm/@size-limit+file@11.1.4_size-limit@11.1.4/node_modules/@size-limit/file/index.js": {
|
|
42632
42832
|
"bytesInOutput": 1595
|
|
42633
42833
|
},
|
|
42834
|
+
"packages/tsdown/src/build.ts": {
|
|
42835
|
+
"bytesInOutput": 8811
|
|
42836
|
+
},
|
|
42837
|
+
"packages/tsdown/src/clean.ts": {
|
|
42838
|
+
"bytesInOutput": 253
|
|
42839
|
+
},
|
|
42840
|
+
"packages/tsdown/src/config.ts": {
|
|
42841
|
+
"bytesInOutput": 314
|
|
42842
|
+
},
|
|
42843
|
+
"packages/workspace-tools/src/executors/tsdown/executor.ts": {
|
|
42844
|
+
"bytesInOutput": 1201
|
|
42845
|
+
},
|
|
42634
42846
|
"packages/workspace-tools/src/executors/typia/executor.ts": {
|
|
42635
42847
|
"bytesInOutput": 970
|
|
42636
42848
|
},
|
|
@@ -42821,7 +43033,7 @@
|
|
|
42821
43033
|
"bytesInOutput": 202
|
|
42822
43034
|
}
|
|
42823
43035
|
},
|
|
42824
|
-
"bytes":
|
|
43036
|
+
"bytes": 9634159
|
|
42825
43037
|
},
|
|
42826
43038
|
"dist/packages/workspace-tools/src/executors/unbuild/executor.js": {
|
|
42827
43039
|
"imports": [
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@storm-software/workspace-tools","version":"1.
|
|
1
|
+
{"name":"@storm-software/workspace-tools","version":"1.226.0","type":"commonjs","description":"Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops","directory":"packages/workspace-tools"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"license":"Apache-2.0","private":false,"main":"./index.js","exports":{".":"./index.js","./package.json":"./package.json","./config/nx-default.json":"./config/nx-default.json","./config/nx-cloud.json":"./config/nx-cloud.json","./assets/cjs_shims":"./assets/cjs_shims.js","./assets/esm_shims":"./assets/esm_shims.js","./migrations.json":"./migrations.json","./generators.json":"./generators.json","./generators/*/schema.json":"./src/generators/*/schema.json","./executors.json":"./executors.json","./executors/*/schema.json":"./src/executors/*/schema.json","./plugins/rust":"./src/plugins/rust/index.js","./plugins/typescript":"./src/plugins/typescript/index.js","./plugins/typescript/tsup":"./src/plugins/typescript/tsup.js","./preset":"./src/generators/preset/preset.js","./base":"./src/base/index.js","./base/*":"./src/base/*.js","./utils":"./src/utils/index.js","./utils/*":"./src/utils/*.js"},"typings":"./declarations.d.ts","keywords":["monorepo","open-system","storm","storm-ops","storm-stack","stormstack","sullivanpj"],"peerDependencies":{"@microsoft/api-extractor":"^7.48.1","@nx/devkit":"^20.3.1","@samchon/openapi":"^2.3.0","nx":"^20.3.1","tsdown":"0.5.3","typescript":"^5.7.2"},"peerDependenciesMeta":{"@microsoft/api-extractor":{"optional":true},"@nx/devkit":{"optional":false},"@samchon/openapi":{"optional":true},"nx":{"optional":false},"tsdown":{"optional":true},"typescript":{"optional":false}},"dependencies":{"@ltd/j-toml":"1.38.0","@nx/devkit":"^20.3.1","@size-limit/esbuild":"11.1.4","@size-limit/esbuild-why":"11.1.4","@size-limit/file":"11.1.4","deep-clone":"4.0.0","defu":"6.1.4","fs-extra":"11.2.0","glob":"10.4.2","micromatch":"4.0.7","pkg-types":"^1.1.1","prettier":"^3.3.3","prettier-plugin-packagejson":"2.5.0","read-yaml-file":"2.1.0","semver":"7.6.2","size-limit":"11.1.4","tsdown":"0.5.3","tsup":"8.0.0","typia":"^7.5.0","zod":"^3.24.0","zod-to-json-schema":"3.23.1"},"devDependencies":{"@microsoft/api-extractor":"^7.48.1","@nx/esbuild":"^20.3.1","@types/micromatch":"4.0.9","@types/node":"^22.10.2","@types/semver":"7.5.8","nx":"^20.3.1","typescript":"^5.7.2"},"publishConfig":{"access":"public"},"executors":"./executors.json","generators":"./generators.json"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ExecutorContext } from "@nx/devkit";
|
|
2
|
+
import type { StormConfig } from "@storm-software/config";
|
|
3
|
+
import type { TSDownExecutorSchema } from "./schema.d";
|
|
4
|
+
export declare function tsdownExecutorFn(options: TSDownExecutorSchema, context: ExecutorContext, config?: StormConfig): Promise<{
|
|
5
|
+
success: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
declare const _default: import("@nx/devkit").PromiseExecutor<import("@storm-software/tsdown").TSDownOptions>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "tsdown",
|
|
4
|
+
"version": 2,
|
|
5
|
+
"title": "TSDown Builder",
|
|
6
|
+
"description": "Run the `tsdown` build process on a selected project",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"entry": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"description": "The path to the entry file (or multiple paths/files), relative to `projectRoot` path.",
|
|
12
|
+
"x-completion-type": "file",
|
|
13
|
+
"x-priority": "important",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"alias": "main",
|
|
18
|
+
"default": ["src/index.ts"]
|
|
19
|
+
},
|
|
20
|
+
"outputPath": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The output path of the generated files.",
|
|
23
|
+
"x-completion-type": "directory",
|
|
24
|
+
"x-priority": "important",
|
|
25
|
+
"default": "dist/{projectRoot}"
|
|
26
|
+
},
|
|
27
|
+
"tsconfig": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "The path to the `tsconfig.json` file.",
|
|
30
|
+
"x-completion-type": "file",
|
|
31
|
+
"x-completion-glob": "tsconfig*.json",
|
|
32
|
+
"x-priority": "important",
|
|
33
|
+
"default": "{projectRoot}/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
"watch": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "Enable re-building when files change.",
|
|
38
|
+
"default": false
|
|
39
|
+
},
|
|
40
|
+
"assets": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"description": "List of static assets.",
|
|
43
|
+
"default": [],
|
|
44
|
+
"items": {
|
|
45
|
+
"$ref": "#/definitions/assetPattern"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"clean": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"description": "Remove previous output before build.",
|
|
51
|
+
"alias": "deleteOutputPath",
|
|
52
|
+
"default": true
|
|
53
|
+
},
|
|
54
|
+
"includeSrc": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"description": "Should the source files be added to the distribution folder in an `src` directory.",
|
|
57
|
+
"default": false
|
|
58
|
+
},
|
|
59
|
+
"generatePackageJson": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "Should a package.json file be generated in the output folder or should the existing one be copied in.",
|
|
62
|
+
"default": true
|
|
63
|
+
},
|
|
64
|
+
"debug": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"description": "Should output be unminified with source mappings.",
|
|
67
|
+
"default": false
|
|
68
|
+
},
|
|
69
|
+
"platform": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Platform target for outputs.",
|
|
72
|
+
"enum": ["browser", "neutral", "node"],
|
|
73
|
+
"default": "neutral"
|
|
74
|
+
},
|
|
75
|
+
"minify": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Should the build process minify the output files?",
|
|
78
|
+
"default": false
|
|
79
|
+
},
|
|
80
|
+
"verbose": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"description": "Should write extra log outputs with details from the executor.",
|
|
83
|
+
"default": false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": ["tsconfig", "outputPath", "entry"],
|
|
87
|
+
"definitions": {
|
|
88
|
+
"assetPattern": {
|
|
89
|
+
"oneOf": [
|
|
90
|
+
{
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"glob": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "The pattern to match."
|
|
96
|
+
},
|
|
97
|
+
"input": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "The input directory path in which to apply `glob`. Defaults to the project root."
|
|
100
|
+
},
|
|
101
|
+
"output": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Relative path within the output folder."
|
|
104
|
+
},
|
|
105
|
+
"ignore": {
|
|
106
|
+
"description": "An array of globs to ignore.",
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": ["glob", "input", "output"]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|