@storm-software/workspace-tools 1.267.5 → 1.267.7
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 +18 -0
- package/README.md +1 -2
- package/dist/{chunk-FM2TFXVW.mjs → chunk-4DY2UA3S.mjs} +4 -4
- package/dist/{chunk-BJMT4ECA.mjs → chunk-4HDB3WW5.mjs} +3 -3
- package/dist/{chunk-Q7WXH4GA.mjs → chunk-6LKEFJQE.mjs} +3 -3
- package/dist/{chunk-BFGWJ7BS.mjs → chunk-7DPHPRQI.mjs} +4 -4
- package/dist/{chunk-V42FQ4FR.mjs → chunk-7MPHOPRU.mjs} +3 -3
- package/dist/{chunk-MIVNJALE.mjs → chunk-DNMUOBHX.mjs} +1 -1
- package/dist/{chunk-YHPRTWSY.mjs → chunk-F2OCE3N7.mjs} +2 -2
- package/dist/{chunk-XYRHMXLC.mjs → chunk-FB34APS2.mjs} +3 -3
- package/dist/{chunk-BKEGEV72.mjs → chunk-FGZK7CJK.mjs} +79 -33
- package/dist/{chunk-PGEZGCU2.mjs → chunk-FK7FB6WI.mjs} +2 -2
- package/dist/{chunk-QXE7GTBY.mjs → chunk-G2TMNVHB.mjs} +3 -3
- package/dist/{chunk-TRD4W5ZK.mjs → chunk-G6XMOJQG.mjs} +4 -4
- package/dist/{chunk-UY3Q5IDT.mjs → chunk-GDSH6AXZ.mjs} +1 -1
- package/dist/{chunk-RMLZO26I.mjs → chunk-HO3GYV4L.mjs} +4 -4
- package/dist/{chunk-MFSIJSBW.mjs → chunk-I6DRAC2X.mjs} +3 -3
- package/dist/{chunk-IXHY3ZPO.mjs → chunk-I7J6YOZI.mjs} +3 -3
- package/dist/{chunk-TPK3STUY.mjs → chunk-IBQKONSY.mjs} +4 -4
- package/dist/{chunk-ZJ3QSWTQ.mjs → chunk-KPDMB7DB.mjs} +4 -4
- package/dist/{chunk-Z6GV7C5U.mjs → chunk-KRUR7D44.mjs} +1 -1
- package/dist/{chunk-2C37GBZ2.mjs → chunk-KT4AEIN3.mjs} +2 -2
- package/dist/{chunk-IZHZKPHV.mjs → chunk-KW6IZY4K.mjs} +3 -3
- package/dist/{chunk-LS27TGDZ.mjs → chunk-L2YJA3M7.mjs} +2 -2
- package/dist/{chunk-6DHCDMF3.js → chunk-MA3VQKIF.js} +74 -28
- package/dist/{chunk-N4QRXJLZ.mjs → chunk-MPP5KSJW.mjs} +2 -2
- package/dist/{chunk-CNCYVRZ4.mjs → chunk-MWTJPENR.mjs} +1 -1
- package/dist/{chunk-EHFWY65U.mjs → chunk-N6FTUFXH.mjs} +3 -3
- package/dist/{chunk-N7GSKHH2.mjs → chunk-NM2XRTN6.mjs} +1 -1
- package/dist/{chunk-PZL7IZ7I.mjs → chunk-O4PGVCDS.mjs} +2 -2
- package/dist/{chunk-5I7ULQZF.mjs → chunk-PRT3KWA5.mjs} +1 -1
- package/dist/{chunk-2TEC7IFE.mjs → chunk-R6ECHUMB.mjs} +4 -4
- package/dist/{chunk-OW6VGYDT.mjs → chunk-RCFIYAPJ.mjs} +1 -1
- package/dist/{chunk-XCBLUQPM.mjs → chunk-RCVNE6AI.mjs} +3 -3
- package/dist/{chunk-GNFQ5PGW.mjs → chunk-RN622QNW.mjs} +1 -1
- package/dist/{chunk-RPMGDH44.mjs → chunk-RXEFIIKB.mjs} +2 -2
- package/dist/{chunk-WAXAZ5PV.mjs → chunk-S3G464AA.mjs} +3 -3
- package/dist/{chunk-SYTBJXTM.mjs → chunk-T67NJR64.mjs} +1 -1
- package/dist/{chunk-CM2FQCBL.mjs → chunk-V5OL2H6C.mjs} +3 -3
- package/dist/{chunk-WDFR6LVR.mjs → chunk-VXQHXDBL.mjs} +2 -2
- package/dist/{chunk-FPAOVOZX.mjs → chunk-VZ7BJIVG.mjs} +3 -3
- package/dist/{chunk-KP5JD22G.mjs → chunk-Y4GOLQVW.mjs} +4 -4
- package/dist/{chunk-7FHFHZRB.mjs → chunk-Z3XRWGHF.mjs} +1 -1
- package/dist/executors.js +2 -2
- package/dist/executors.mjs +20 -20
- package/dist/generators.mjs +16 -16
- package/dist/index.js +2 -2
- package/dist/index.mjs +38 -38
- package/dist/src/base/base-executor.mjs +6 -6
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.mjs +6 -6
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +10 -10
- package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.mjs +8 -8
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.mjs +8 -8
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.mjs +8 -8
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.mjs +8 -8
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.mjs +6 -6
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.js +2 -2
- package/dist/src/executors/esbuild/executor.mjs +7 -7
- package/dist/src/executors/esbuild/untyped.mjs +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.mjs +7 -7
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.mjs +7 -7
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.mjs +7 -7
- package/dist/src/executors/unbuild/untyped.mjs +2 -2
- package/dist/src/generators/browser-library/generator.mjs +9 -9
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.mjs +7 -7
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.mjs +9 -9
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.mjs +9 -9
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.mjs +7 -7
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/generators/release-version/generator.mjs +6 -6
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
- package/dist/src/plugins/rust/index.mjs +4 -4
- package/dist/src/plugins/typescript/index.mjs +4 -4
- package/dist/src/plugins/typescript/project-config.mjs +4 -4
- package/dist/src/plugins/typescript/tsup.mjs +2 -2
- package/dist/src/plugins/typescript/untyped-schema.mjs +2 -2
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
- package/dist/src/utils/cargo.mjs +2 -2
- package/dist/src/utils/create-cli-options.mjs +2 -2
- package/dist/src/utils/get-project-configurations.mjs +4 -4
- package/dist/src/utils/index.mjs +14 -14
- package/dist/src/utils/lock-file.mjs +2 -2
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +3 -3
- package/dist/src/utils/pnpm-deps-update.mjs +3 -3
- package/dist/src/utils/project-tags.mjs +2 -2
- package/dist/src/utils/toml.mjs +2 -2
- package/dist/src/utils/typia-transform.mjs +2 -2
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.267.7](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.7) (2025-04-29)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([25750fcd9](https://github.com/storm-software/storm-ops/commit/25750fcd9))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([87d08a499](https://github.com/storm-software/storm-ops/commit/87d08a499))
|
|
13
|
+
|
|
14
|
+
## [1.267.6](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.6) (2025-04-28)
|
|
15
|
+
|
|
16
|
+
### Miscellaneous
|
|
17
|
+
|
|
18
|
+
- **eslint:** Disable markdown eslint rules by default
|
|
19
|
+
([a84e36deb](https://github.com/storm-software/storm-ops/commit/a84e36deb))
|
|
20
|
+
- **monorepo:** Regenerate README markdown files
|
|
21
|
+
([adffb8372](https://github.com/storm-software/storm-ops/commit/adffb8372))
|
|
22
|
+
|
|
5
23
|
## [1.267.5](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.5) (2025-04-28)
|
|
6
24
|
|
|
7
25
|
### Bug Fixes
|
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,7 +40,6 @@ 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
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Workspace Tools](#storm-workspace-tools)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O4PGVCDS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig,
|
|
7
7
|
getStopwatch,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
writeInfo,
|
|
12
12
|
writeSuccess,
|
|
13
13
|
writeTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KW6IZY4K.mjs";
|
|
15
15
|
import {
|
|
16
16
|
findWorkspaceRoot
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VXQHXDBL.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
21
21
|
|
|
22
22
|
// src/base/base-generator.ts
|
|
23
23
|
var withRunGenerator = /* @__PURE__ */ __name((name, generatorFn, generatorOptions = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pnpmCatalogUpdate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L2YJA3M7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
joinPaths
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PRT3KWA5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
10
10
|
|
|
11
11
|
// src/executors/npm-publish/executor.ts
|
|
12
12
|
import { execSync } from "node:child_process";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ProjectTagConstants,
|
|
6
6
|
addProjectTag
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MWTJPENR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PRT3KWA5.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
14
14
|
|
|
15
15
|
// src/base/typescript-library-generator.ts
|
|
16
16
|
import { addDependenciesToPackageJson, addProjectConfiguration, ensurePackage, formatFiles, names, offsetFromRoot, readJson, updateJson, writeJson } from "@nx/devkit";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
parseCargoToml,
|
|
4
4
|
parseCargoTomlWithTree,
|
|
5
5
|
stringifyCargoToml
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z3XRWGHF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getConfig,
|
|
9
9
|
getStopwatch,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KW6IZY4K.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VXQHXDBL.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__name
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
23
23
|
|
|
24
24
|
// src/generators/release-version/generator.ts
|
|
25
25
|
import { formatFiles, joinPathFragments, output, readJson, updateJson, writeJson } from "@nx/devkit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCargoCommand,
|
|
3
3
|
cargoCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RN622QNW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunExecutor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R6ECHUMB.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/cargo-doc/executor.ts
|
|
13
13
|
async function cargoDocExecutor(options, context) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VXQHXDBL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
7
7
|
|
|
8
8
|
// src/utils/apply-workspace-tokens.ts
|
|
9
9
|
var applyWorkspaceExecutorTokens = /* @__PURE__ */ __name(async (option, tokenizerOptions) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cargoMetadata,
|
|
3
3
|
isExternal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RN622QNW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ProjectTagConstants,
|
|
7
7
|
addProjectTag,
|
|
8
8
|
setDefaultProjectTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MWTJPENR.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
13
13
|
|
|
14
14
|
// src/plugins/rust/cargo-toml.ts
|
|
15
15
|
import { createNodesFromFiles, joinPathFragments, readJsonFile, workspaceRoot } from "@nx/devkit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6ECHUMB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
getWorkspaceConfig,
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
writeSuccess,
|
|
12
12
|
writeTrace,
|
|
13
13
|
writeWarning
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KW6IZY4K.mjs";
|
|
15
15
|
import {
|
|
16
16
|
findWorkspaceRoot
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VXQHXDBL.mjs";
|
|
18
18
|
import {
|
|
19
19
|
joinPaths
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PRT3KWA5.mjs";
|
|
21
21
|
import {
|
|
22
22
|
__name,
|
|
23
23
|
__require
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
25
25
|
|
|
26
26
|
// ../esbuild/src/build.ts
|
|
27
27
|
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
|
|
@@ -34,7 +34,6 @@ var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
|
34
34
|
*****************************************/
|
|
35
35
|
`;
|
|
36
36
|
var DEFAULT_ENVIRONMENT = "production";
|
|
37
|
-
var DEFAULT_TARGET = "esnext";
|
|
38
37
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
39
38
|
|
|
40
39
|
// ../build-tools/src/plugins/swc.ts
|
|
@@ -271,9 +270,7 @@ __name(cleanDirectories, "cleanDirectories");
|
|
|
271
270
|
var DEFAULT_BUILD_OPTIONS = {
|
|
272
271
|
assets: [],
|
|
273
272
|
platform: "node",
|
|
274
|
-
target:
|
|
275
|
-
"esnext"
|
|
276
|
-
],
|
|
273
|
+
target: "node22",
|
|
277
274
|
format: "esm",
|
|
278
275
|
tsconfig: "tsconfig.json",
|
|
279
276
|
mode: "production",
|
|
@@ -285,6 +282,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
285
282
|
shims: false,
|
|
286
283
|
watch: false,
|
|
287
284
|
bundle: true,
|
|
285
|
+
distDir: "dist",
|
|
288
286
|
loader: {
|
|
289
287
|
".aac": "file",
|
|
290
288
|
".css": "file",
|
|
@@ -429,22 +427,17 @@ async function resolveContext(userOptions) {
|
|
|
429
427
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
430
428
|
}
|
|
431
429
|
const options = defu(userOptions, DEFAULT_BUILD_OPTIONS);
|
|
432
|
-
options.name ??= `${projectName}-${options.format}`;
|
|
433
|
-
options.target ??= DEFAULT_TARGET;
|
|
434
430
|
const packageJsonPath = joinPaths(workspaceRoot.dir, options.projectRoot, "package.json");
|
|
435
431
|
if (!existsSync3(packageJsonPath)) {
|
|
436
432
|
throw new Error("Cannot find package.json configuration");
|
|
437
433
|
}
|
|
438
434
|
const env = getEnv("esbuild", options);
|
|
439
435
|
const resolvedOptions = {
|
|
436
|
+
name: projectName,
|
|
440
437
|
...options,
|
|
441
438
|
tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
442
|
-
distDir: "dist",
|
|
443
|
-
name: projectName,
|
|
444
439
|
metafile: userOptions.mode === "development",
|
|
445
|
-
...userOptions,
|
|
446
440
|
clean: false,
|
|
447
|
-
target: userOptions.target || options.target,
|
|
448
441
|
splitting: options.format === "iife" ? false : options.treeshake === void 0 ? options.splitting : true,
|
|
449
442
|
env,
|
|
450
443
|
define: {
|
|
@@ -493,26 +486,79 @@ async function generatePackageJson(context) {
|
|
|
493
486
|
if (context.options.entry) {
|
|
494
487
|
packageJson.exports ??= {};
|
|
495
488
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
496
|
-
packageJson.exports["."] ??= `.${context.options.distDir ? `/${context.options.distDir}` : ""}/index.js`;
|
|
497
489
|
const entryPoints = Array.isArray(context.options.entry) ? context.options.entry : Object.keys(context.options.entry);
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
490
|
+
if (entryPoints.length > 0) {
|
|
491
|
+
const defaultEntry = entryPoints.includes("index") ? `.${context.options.distDir ? `/${context.options.distDir}` : ""}/index` : `.${context.options.distDir ? `/${context.options.distDir}` : ""}/${entryPoints[0]}`;
|
|
492
|
+
const isEsm = Array.isArray(context.options.format) ? context.options.format.includes("esm") : context.options.format === "esm";
|
|
493
|
+
const isCjs = Array.isArray(context.options.format) ? context.options.format.includes("cjs") : context.options.format === "cjs";
|
|
494
|
+
const isDts = context.options.dts || context.options.experimentalDts;
|
|
495
|
+
packageJson.exports["."] ??= `${defaultEntry}.${isEsm ? "mjs" : isCjs ? "cjs" : "js"}`;
|
|
496
|
+
for (const entryPoint of entryPoints) {
|
|
497
|
+
packageJson.exports[`./${entryPoint}`] ??= {};
|
|
498
|
+
if (isEsm) {
|
|
499
|
+
if (isDts) {
|
|
500
|
+
packageJson.exports[`./${entryPoint}`].import = {
|
|
501
|
+
types: `./dist/${entryPoint}.d.mts`,
|
|
502
|
+
default: `./dist/${entryPoint}.mjs`
|
|
503
|
+
};
|
|
504
|
+
} else {
|
|
505
|
+
packageJson.exports[`./${entryPoint}`].import = `./dist/${entryPoint}.mjs`;
|
|
506
|
+
}
|
|
507
|
+
if (isDts) {
|
|
508
|
+
packageJson.exports[`./${entryPoint}`].default = {
|
|
509
|
+
types: `./dist/${entryPoint}.d.mts`,
|
|
510
|
+
default: `./dist/${entryPoint}.mjs`
|
|
511
|
+
};
|
|
512
|
+
} else {
|
|
513
|
+
packageJson.exports[`./${entryPoint}`].default = `./dist/${entryPoint}.mjs`;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
if (isCjs) {
|
|
517
|
+
if (isDts) {
|
|
518
|
+
packageJson.exports[`./${entryPoint}`].require = {
|
|
519
|
+
types: `./dist/${entryPoint}.d.cts`,
|
|
520
|
+
default: `./dist/${entryPoint}.cjs`
|
|
521
|
+
};
|
|
522
|
+
} else {
|
|
523
|
+
packageJson.exports[`./${entryPoint}`].require = `./dist/${entryPoint}.cjs`;
|
|
524
|
+
}
|
|
525
|
+
if (!isEsm) {
|
|
526
|
+
if (isDts) {
|
|
527
|
+
packageJson.exports[`./${entryPoint}`].default = {
|
|
528
|
+
types: `./dist/${entryPoint}.d.cts`,
|
|
529
|
+
default: `./dist/${entryPoint}.cjs`
|
|
530
|
+
};
|
|
531
|
+
} else {
|
|
532
|
+
packageJson.exports[`./${entryPoint}`].default = `./dist/${entryPoint}.cjs`;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
if (!isEsm && !isCjs) {
|
|
537
|
+
if (isDts) {
|
|
538
|
+
packageJson.exports[`./${entryPoint}`].default = {
|
|
539
|
+
types: `./dist/${entryPoint}.d.ts`,
|
|
540
|
+
default: `./dist/${entryPoint}.js`
|
|
541
|
+
};
|
|
542
|
+
} else {
|
|
543
|
+
packageJson.exports[`./${entryPoint}`].default = `./dist/${entryPoint}.js`;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
502
546
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
511
|
-
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
512
|
-
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
547
|
+
if (isEsm) {
|
|
548
|
+
packageJson.module = `${defaultEntry}.mjs`;
|
|
549
|
+
} else {
|
|
550
|
+
packageJson.main = `${defaultEntry}.cjs`;
|
|
551
|
+
}
|
|
552
|
+
if (isDts) {
|
|
553
|
+
packageJson.types = `${defaultEntry}.d.${isEsm ? "mts" : isCjs ? "cts" : "ts"}`;
|
|
513
554
|
}
|
|
514
|
-
|
|
515
|
-
|
|
555
|
+
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
556
|
+
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
557
|
+
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
558
|
+
}
|
|
559
|
+
return ret;
|
|
560
|
+
}, packageJson.exports);
|
|
561
|
+
}
|
|
516
562
|
}
|
|
517
563
|
await writeJsonFile(joinPaths(context.outputPath, "package.json"), packageJson);
|
|
518
564
|
stopwatch();
|
|
@@ -525,7 +571,7 @@ async function executeTsup(context) {
|
|
|
525
571
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
526
572
|
await tsup({
|
|
527
573
|
...context.options,
|
|
528
|
-
outDir: context.outputPath,
|
|
574
|
+
outDir: context.options.distDir ? joinPaths(context.outputPath, context.options.distDir) : context.outputPath,
|
|
529
575
|
workspaceConfig: context.workspaceConfig
|
|
530
576
|
});
|
|
531
577
|
stopwatch();
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-EK75QNMS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4DY2UA3S.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__dirname,
|
|
10
10
|
__name
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
12
12
|
|
|
13
13
|
// src/generators/preset/generator.ts
|
|
14
14
|
import { addDependenciesToPackageJson, addProjectConfiguration, formatFiles, generateFiles, joinPathFragments, updateJson } from "@nx/devkit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCargoCommand,
|
|
3
3
|
cargoCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RN622QNW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunExecutor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R6ECHUMB.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/cargo-format/executor.ts
|
|
13
13
|
async function cargoFormatExecutor(options, context) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R6ECHUMB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KW6IZY4K.mjs";
|
|
7
7
|
import {
|
|
8
8
|
joinPaths
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PRT3KWA5.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
13
13
|
|
|
14
14
|
// src/executors/unbuild/executor.ts
|
|
15
15
|
import { defu } from "defu";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6LKEFJQE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4DY2UA3S.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PRT3KWA5.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
15
15
|
|
|
16
16
|
// src/generators/neutral-library/generator.ts
|
|
17
17
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCargoCommand,
|
|
3
3
|
cargoCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RN622QNW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunExecutor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R6ECHUMB.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/cargo-build/executor.ts
|
|
13
13
|
async function cargoBuildExecutor(options, context) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTagConstants,
|
|
3
3
|
isEqualProjectTag
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MWTJPENR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
parseCargoToml
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z3XRWGHF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
11
11
|
|
|
12
12
|
// src/utils/package-helpers.ts
|
|
13
13
|
import { joinPathFragments, readJsonFile } from "@nx/devkit";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6LKEFJQE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
typesNodeVersion
|
|
7
7
|
} from "./chunk-EK75QNMS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
withRunGenerator
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4DY2UA3S.mjs";
|
|
11
11
|
import {
|
|
12
12
|
joinPaths
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PRT3KWA5.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__dirname,
|
|
16
16
|
__name
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
18
18
|
|
|
19
19
|
// src/generators/node-library/generator.ts
|
|
20
20
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6LKEFJQE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4DY2UA3S.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PRT3KWA5.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
15
15
|
|
|
16
16
|
// src/generators/browser-library/generator.ts
|
|
17
17
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTagConstants,
|
|
3
3
|
getProjectTag
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MWTJPENR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__name
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
8
8
|
|
|
9
9
|
// src/utils/plugin-helpers.ts
|
|
10
10
|
import { readJsonFile } from "@nx/devkit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VXQHXDBL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
correctPaths,
|
|
6
6
|
joinPaths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PRT3KWA5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NM2XRTN6.mjs";
|
|
11
11
|
|
|
12
12
|
// ../config/src/schema.ts
|
|
13
13
|
import z from "zod";
|