@storm-software/workspace-tools 1.267.19 → 1.267.21
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 +24 -0
- package/README.md +1 -1
- package/dist/chunk-22UY7NFX.js +41 -0
- package/dist/chunk-23BZQTB2.mjs +425 -0
- package/dist/{chunk-7O34DHUG.js → chunk-2AVWFUXP.js} +4 -19
- package/dist/{chunk-VW3PZOJ4.mjs → chunk-2M22JVJQ.mjs} +307 -192
- package/dist/{chunk-5RJOBRYL.mjs → chunk-3EDSGFA5.mjs} +63 -54
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/{chunk-AC5SI4YZ.js → chunk-3TYXXJKV.js} +11 -8
- package/dist/{chunk-QSB5SLZS.mjs → chunk-3ZBMLG4D.mjs} +17 -14
- package/dist/chunk-437WGH2M.mjs +32 -0
- package/dist/{chunk-ULBTYC2B.js → chunk-4BECJRPP.js} +13 -42
- package/dist/chunk-4QRA66TH.mjs +379 -0
- package/dist/chunk-4S66IYQF.mjs +31 -0
- package/dist/{chunk-4JOIS7WW.js → chunk-4WHSR4FK.js} +24 -14
- package/dist/{chunk-JTAXCQX6.js → chunk-53DNHF7B.js} +7 -13
- package/dist/{chunk-GGGO542M.js → chunk-54FVHKCU.js} +36 -24
- package/dist/{chunk-B67R3JAF.mjs → chunk-5HUW3BTP.mjs} +37 -21
- package/dist/{chunk-GWYZDAH6.mjs → chunk-5LB2F3L4.mjs} +80 -65
- package/dist/{chunk-UF6KFXG5.js → chunk-5VY5IBBQ.js} +20 -17
- package/dist/{chunk-6QO3KMZA.js → chunk-5ZFTWEKB.js} +2 -16
- package/dist/chunk-6EMYX25V.js +7 -0
- package/dist/chunk-6QZSAZZ3.mjs +64 -0
- package/dist/{chunk-2JA7WAH7.mjs → chunk-7AN4JMFC.mjs} +2 -16
- package/dist/{chunk-N7XIQOHR.mjs → chunk-7HWV6U3E.mjs} +33 -18
- package/dist/{chunk-GKL4BY2Y.js → chunk-A5CKB6IJ.js} +7 -8
- package/dist/{chunk-Y5WKYMQB.mjs → chunk-ABE7UOMX.mjs} +24 -21
- package/dist/{chunk-L3WQZ3LY.mjs → chunk-AHLKRK7D.mjs} +33 -18
- package/dist/{chunk-6CGAYKQL.js → chunk-AJ3C2EDW.js} +69 -44
- package/dist/chunk-AMW7VHFM.mjs +52 -0
- package/dist/chunk-AOFWKOAI.js +31 -0
- package/dist/{chunk-7YRW5HNX.js → chunk-AX3RSZT7.js} +42 -31
- package/dist/chunk-BFD7HHVZ.mjs +32 -0
- package/dist/{chunk-ZMFVKBRM.js → chunk-BWGJVRAS.js} +2 -13
- package/dist/{chunk-M6NHJNGU.js → chunk-CWBHZBTN.js} +277 -169
- package/dist/{chunk-VGE6EHYW.mjs → chunk-EKWR7TBP.mjs} +36 -24
- package/dist/chunk-EU6N7QT3.js +32 -0
- package/dist/chunk-EYXDS7SG.js +105 -0
- package/dist/chunk-F66XEAID.mjs +113 -0
- package/dist/chunk-FOFNKU5G.js +379 -0
- package/dist/{chunk-7NNHBZC5.js → chunk-GNOIETZR.js} +28 -17
- package/dist/chunk-GQQLBQPQ.mjs +32 -0
- package/dist/{chunk-7PRHEOCT.js → chunk-H5NKKUPV.js} +31 -18
- package/dist/{chunk-5SVLMXLH.mjs → chunk-HMJTTE4A.mjs} +39 -30
- package/dist/{chunk-ZKMIASDR.mjs → chunk-HY3ZC5EZ.mjs} +10 -31
- package/dist/{chunk-OQPX75CG.js → chunk-I5MSPQMO.js} +31 -18
- package/dist/{chunk-L2DHGVS5.mjs → chunk-IEZKYJSF.mjs} +3 -6
- package/dist/{chunk-IWCQL3AQ.js → chunk-IL3R5ZVS.js} +10 -31
- package/dist/{chunk-P4OVFIT6.js → chunk-IZN2IVJ4.js} +19 -6
- package/dist/{chunk-UALZJZUK.js → chunk-J2Z4WP3E.js} +32 -16
- package/dist/{chunk-RBU35LQW.js → chunk-J4DYXH46.js} +70 -61
- package/dist/chunk-KP4RPOBI.mjs +105 -0
- package/dist/chunk-KR72GKIT.mjs +7 -0
- package/dist/chunk-L4NCVOB5.mjs +17 -0
- package/dist/{chunk-4Y6B6JDH.js → chunk-LBAVVYKU.js} +315 -136
- package/dist/{chunk-WMTEZ2PV.mjs → chunk-LSF4BHCI.mjs} +24 -14
- package/dist/chunk-M725BO42.mjs +32 -0
- package/dist/{chunk-7IAGL37F.mjs → chunk-MF6VZSIO.mjs} +30 -17
- package/dist/{chunk-7OOYI33U.mjs → chunk-MMBLGUC3.mjs} +311 -132
- package/dist/chunk-MZSZKV4N.mjs +47 -0
- package/dist/chunk-O6RRIC6I.js +32 -0
- package/dist/chunk-OKSECMVK.js +32 -0
- package/dist/chunk-Q2HYWACQ.mjs +50 -0
- package/dist/{chunk-62XRHQ44.mjs → chunk-QFWQZOVG.mjs} +14 -43
- package/dist/{chunk-DHGZTMND.js → chunk-QVYCDING.js} +4 -7
- package/dist/{chunk-Z4NKRWWJ.js → chunk-RJRBED5Q.js} +48 -32
- package/dist/chunk-S5Z4QGF3.js +64 -0
- package/dist/{chunk-CSHHIGIV.mjs → chunk-SITFTWPY.mjs} +23 -8
- package/dist/chunk-SNMXP6JV.mjs +41 -0
- package/dist/chunk-SPXJBMLY.js +50 -0
- package/dist/{chunk-7TLYMNLD.mjs → chunk-SW2E5MQJ.mjs} +4 -19
- package/dist/{chunk-OKW5O5P4.js → chunk-T7BALDKJ.js} +26 -22
- package/dist/chunk-TSYIV33W.js +32 -0
- package/dist/{chunk-H72YBOLR.mjs → chunk-U65XVJ4Y.mjs} +1 -12
- package/dist/{chunk-AVJVDD4L.mjs → chunk-U7JFVMCK.mjs} +6 -12
- package/dist/chunk-UIPUSUAB.js +425 -0
- package/dist/{chunk-LSG534D5.mjs → chunk-UYSJG2E5.mjs} +56 -31
- package/dist/{chunk-EHXSPF7W.mjs → chunk-VLOTOQYE.mjs} +11 -8
- package/dist/{chunk-EULJEPPD.mjs → chunk-W2C5IGWW.mjs} +3 -6
- package/dist/{chunk-G4QFSE5B.js → chunk-WE4HK4RN.js} +327 -212
- package/dist/{chunk-SUQKASD7.js → chunk-X2VJXJEF.js} +82 -67
- package/dist/{chunk-GY4AEA7P.mjs → chunk-X6PHOMFB.mjs} +32 -16
- package/dist/{chunk-PK2SUBWI.js → chunk-XZSS3YAB.js} +19 -16
- package/dist/chunk-YXBFVZ3K.js +47 -0
- package/dist/{chunk-CUPARBOS.js → chunk-ZP76EMBE.js} +41 -32
- package/dist/{chunk-HAXYCYZE.mjs → chunk-ZT4IIRQF.mjs} +254 -146
- package/dist/executors.js +21 -21
- package/dist/executors.mjs +20 -20
- package/dist/generators.js +17 -17
- package/dist/generators.mjs +18 -18
- package/dist/index.js +41 -41
- package/dist/index.mjs +42 -42
- package/dist/src/base/base-executor.js +7 -7
- package/dist/src/base/base-executor.mjs +6 -6
- package/dist/src/base/base-executor.untyped.js +1 -1
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.js +7 -7
- package/dist/src/base/base-generator.mjs +6 -6
- package/dist/src/base/base-generator.untyped.js +1 -1
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.js +3 -3
- package/dist/src/base/cargo-base-executor.untyped.mjs +2 -2
- package/dist/src/base/index.js +13 -13
- package/dist/src/base/index.mjs +12 -12
- package/dist/src/base/typescript-build-executor.untyped.js +3 -3
- package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
- package/dist/src/base/typescript-library-generator.untyped.js +3 -3
- package/dist/src/base/typescript-library-generator.untyped.mjs +2 -2
- package/dist/src/executors/cargo-build/executor.js +9 -9
- package/dist/src/executors/cargo-build/executor.mjs +8 -8
- package/dist/src/executors/cargo-build/untyped.js +3 -3
- package/dist/src/executors/cargo-build/untyped.mjs +2 -2
- package/dist/src/executors/cargo-check/executor.js +9 -9
- package/dist/src/executors/cargo-check/executor.mjs +8 -8
- package/dist/src/executors/cargo-check/untyped.js +3 -3
- package/dist/src/executors/cargo-check/untyped.mjs +2 -2
- package/dist/src/executors/cargo-clippy/executor.js +9 -9
- package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
- package/dist/src/executors/cargo-clippy/untyped.js +3 -3
- package/dist/src/executors/cargo-clippy/untyped.mjs +2 -2
- package/dist/src/executors/cargo-doc/executor.js +9 -9
- package/dist/src/executors/cargo-doc/executor.mjs +8 -8
- package/dist/src/executors/cargo-doc/untyped.js +3 -3
- package/dist/src/executors/cargo-doc/untyped.mjs +2 -2
- package/dist/src/executors/cargo-format/executor.js +9 -9
- package/dist/src/executors/cargo-format/executor.mjs +8 -8
- package/dist/src/executors/cargo-format/untyped.js +3 -3
- package/dist/src/executors/cargo-format/untyped.mjs +2 -2
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/untyped.js +3 -3
- package/dist/src/executors/cargo-publish/untyped.mjs +2 -2
- package/dist/src/executors/clean-package/executor.js +84 -62
- package/dist/src/executors/clean-package/executor.mjs +84 -62
- package/dist/src/executors/clean-package/untyped.js +2 -4
- package/dist/src/executors/clean-package/untyped.mjs +2 -4
- package/dist/src/executors/esbuild/executor.js +8 -8
- package/dist/src/executors/esbuild/executor.mjs +7 -7
- package/dist/src/executors/esbuild/untyped.js +4 -8
- package/dist/src/executors/esbuild/untyped.mjs +3 -7
- package/dist/src/executors/npm-publish/executor.js +5 -5
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/untyped.js +1 -1
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.js +8 -8
- package/dist/src/executors/size-limit/executor.mjs +7 -7
- package/dist/src/executors/size-limit/untyped.js +1 -1
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.js +8 -8
- package/dist/src/executors/typia/executor.mjs +7 -7
- package/dist/src/executors/typia/untyped.js +4 -12
- package/dist/src/executors/typia/untyped.mjs +4 -12
- package/dist/src/executors/unbuild/executor.js +8 -8
- package/dist/src/executors/unbuild/executor.mjs +7 -7
- package/dist/src/executors/unbuild/untyped.js +6 -13
- package/dist/src/executors/unbuild/untyped.mjs +5 -12
- package/dist/src/generators/browser-library/generator.js +10 -10
- package/dist/src/generators/browser-library/generator.mjs +9 -9
- package/dist/src/generators/browser-library/untyped.js +5 -11
- package/dist/src/generators/browser-library/untyped.mjs +4 -10
- package/dist/src/generators/config-schema/generator.js +8 -8
- package/dist/src/generators/config-schema/generator.mjs +7 -7
- package/dist/src/generators/config-schema/untyped.js +1 -1
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/src/generators/init/untyped.js +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.js +10 -10
- package/dist/src/generators/neutral-library/generator.mjs +9 -9
- package/dist/src/generators/neutral-library/untyped.js +5 -10
- package/dist/src/generators/neutral-library/untyped.mjs +4 -9
- package/dist/src/generators/node-library/generator.js +10 -10
- package/dist/src/generators/node-library/generator.mjs +9 -9
- package/dist/src/generators/node-library/untyped.js +5 -11
- package/dist/src/generators/node-library/untyped.mjs +4 -10
- package/dist/src/generators/preset/generator.js +8 -8
- package/dist/src/generators/preset/generator.mjs +7 -7
- package/dist/src/generators/preset/untyped.js +3 -11
- package/dist/src/generators/preset/untyped.mjs +3 -11
- package/dist/src/generators/release-version/generator.js +7 -7
- package/dist/src/generators/release-version/generator.mjs +6 -6
- package/dist/src/generators/release-version/untyped.js +3 -14
- package/dist/src/generators/release-version/untyped.mjs +3 -14
- package/dist/src/plugins/rust/cargo-toml.js +5 -5
- package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
- package/dist/src/plugins/rust/index.js +5 -5
- package/dist/src/plugins/rust/index.mjs +4 -4
- package/dist/src/plugins/typescript/index.js +5 -5
- package/dist/src/plugins/typescript/index.mjs +4 -4
- package/dist/src/plugins/typescript/project-config.js +5 -5
- package/dist/src/plugins/typescript/project-config.mjs +4 -4
- package/dist/src/plugins/typescript/tsup.js +114 -109
- package/dist/src/plugins/typescript/tsup.mjs +116 -111
- package/dist/src/plugins/typescript/untyped-schema.js +93 -77
- package/dist/src/plugins/typescript/untyped-schema.mjs +96 -80
- package/dist/src/types.js +1 -1
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.js +5 -5
- package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
- package/dist/src/utils/cargo.js +3 -3
- package/dist/src/utils/cargo.mjs +2 -2
- package/dist/src/utils/create-cli-options.js +3 -3
- package/dist/src/utils/create-cli-options.mjs +2 -2
- package/dist/src/utils/get-project-configurations.js +5 -5
- package/dist/src/utils/get-project-configurations.mjs +4 -4
- package/dist/src/utils/index.js +15 -15
- package/dist/src/utils/index.mjs +14 -14
- package/dist/src/utils/lock-file.js +3 -3
- package/dist/src/utils/lock-file.mjs +2 -2
- package/dist/src/utils/package-helpers.js +5 -5
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.js +4 -4
- package/dist/src/utils/plugin-helpers.mjs +3 -3
- package/dist/src/utils/pnpm-deps-update.js +4 -4
- package/dist/src/utils/pnpm-deps-update.mjs +3 -3
- package/dist/src/utils/project-tags.js +3 -3
- package/dist/src/utils/project-tags.mjs +2 -2
- package/dist/src/utils/toml.js +3 -3
- package/dist/src/utils/toml.mjs +2 -2
- package/dist/src/utils/typia-transform.js +3 -3
- package/dist/src/utils/typia-transform.mjs +2 -2
- package/dist/src/utils/versions.js +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3GQAWCBQ.js +0 -13
- package/dist/chunk-3IZ3O4OK.js +0 -30
- package/dist/chunk-6JJB5AYA.js +0 -51
- package/dist/chunk-6JTXR7YX.mjs +0 -18
- package/dist/chunk-6RHWGD7G.mjs +0 -48
- package/dist/chunk-7AXFMX2T.js +0 -37
- package/dist/chunk-A77TLQ44.mjs +0 -32
- package/dist/chunk-B3DVFXXD.js +0 -32
- package/dist/chunk-BC7L3S46.mjs +0 -51
- package/dist/chunk-BNMJYJOZ.mjs +0 -446
- package/dist/chunk-CUWWZLK7.mjs +0 -37
- package/dist/chunk-HOXPAVCL.js +0 -32
- package/dist/chunk-ICPUM2HS.js +0 -50
- package/dist/chunk-JJ4PSTY4.mjs +0 -32
- package/dist/chunk-JMCJJNBJ.mjs +0 -102
- package/dist/chunk-KEBNU3P2.js +0 -446
- package/dist/chunk-KTRA4YQT.mjs +0 -32
- package/dist/chunk-M2VZ44W7.mjs +0 -13
- package/dist/chunk-NG7BO4BF.mjs +0 -468
- package/dist/chunk-NSCWEC2S.js +0 -32
- package/dist/chunk-OQTJDGUH.js +0 -468
- package/dist/chunk-ORWCIVMB.mjs +0 -30
- package/dist/chunk-RUKOOSWL.js +0 -31
- package/dist/chunk-T6VIUVAL.mjs +0 -43
- package/dist/chunk-TET4GF3D.js +0 -43
- package/dist/chunk-XITP2BX2.js +0 -13
- package/dist/chunk-YMGMEPP5.mjs +0 -86
- package/dist/chunk-YW4UN25U.js +0 -86
- package/dist/chunk-ZJZOACSR.mjs +0 -31
- package/dist/chunk-ZTVHEV5N.mjs +0 -50
|
@@ -4,39 +4,53 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ProjectTagConstants,
|
|
6
6
|
addProjectTag
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F66XEAID.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
__name
|
|
13
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
10
|
+
} from "./chunk-U7JFVMCK.mjs";
|
|
14
11
|
|
|
15
12
|
// src/base/typescript-library-generator.ts
|
|
16
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
addDependenciesToPackageJson,
|
|
15
|
+
addProjectConfiguration,
|
|
16
|
+
ensurePackage,
|
|
17
|
+
formatFiles,
|
|
18
|
+
names,
|
|
19
|
+
offsetFromRoot,
|
|
20
|
+
readJson,
|
|
21
|
+
updateJson,
|
|
22
|
+
writeJson
|
|
23
|
+
} from "@nx/devkit";
|
|
17
24
|
import { determineProjectNameAndRootOptions } from "@nx/devkit/src/generators/project-name-and-root-utils";
|
|
18
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
addTsConfigPath,
|
|
27
|
+
getRelativePathToRootTsConfig,
|
|
28
|
+
tsConfigBaseOptions
|
|
29
|
+
} from "@nx/js";
|
|
19
30
|
import jsInitGenerator from "@nx/js/src/generators/init/init";
|
|
20
31
|
import setupVerdaccio from "@nx/js/src/generators/setup-verdaccio/generator";
|
|
21
32
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
22
|
-
const normalized = await normalizeOptions(tree, {
|
|
23
|
-
...options
|
|
24
|
-
});
|
|
33
|
+
const normalized = await normalizeOptions(tree, { ...options });
|
|
25
34
|
const tasks = [];
|
|
26
|
-
tasks.push(
|
|
27
|
-
|
|
28
|
-
tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
29
|
-
}));
|
|
30
|
-
tasks.push(addDependenciesToPackageJson(tree, {}, {
|
|
31
|
-
"@storm-software/workspace-tools": "latest",
|
|
32
|
-
"@storm-software/testing-tools": "latest",
|
|
33
|
-
...options.devDependencies ?? {}
|
|
34
|
-
}));
|
|
35
|
-
if (normalized.publishable) {
|
|
36
|
-
tasks.push(await setupVerdaccio(tree, {
|
|
35
|
+
tasks.push(
|
|
36
|
+
await jsInitGenerator(tree, {
|
|
37
37
|
...normalized,
|
|
38
|
-
|
|
39
|
-
})
|
|
38
|
+
tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
39
|
+
})
|
|
40
|
+
);
|
|
41
|
+
tasks.push(
|
|
42
|
+
addDependenciesToPackageJson(
|
|
43
|
+
tree,
|
|
44
|
+
{},
|
|
45
|
+
{
|
|
46
|
+
"@storm-software/workspace-tools": "latest",
|
|
47
|
+
"@storm-software/testing-tools": "latest",
|
|
48
|
+
...options.devDependencies ?? {}
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
if (normalized.publishable) {
|
|
53
|
+
tasks.push(await setupVerdaccio(tree, { ...normalized, skipFormat: true }));
|
|
40
54
|
}
|
|
41
55
|
const projectConfig = {
|
|
42
56
|
root: normalized.directory,
|
|
@@ -45,13 +59,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
45
59
|
targets: {
|
|
46
60
|
build: {
|
|
47
61
|
executor: options.buildExecutor,
|
|
48
|
-
outputs: [
|
|
49
|
-
"{options.outputPath}"
|
|
50
|
-
],
|
|
62
|
+
outputs: ["{options.outputPath}"],
|
|
51
63
|
options: {
|
|
52
|
-
entry: [
|
|
53
|
-
joinPaths(normalized.projectRoot, "src", "index.ts")
|
|
54
|
-
],
|
|
64
|
+
entry: [joinPaths(normalized.projectRoot, "src", "index.ts")],
|
|
55
65
|
outputPath: getOutputPath(normalized),
|
|
56
66
|
tsconfig: joinPaths(normalized.projectRoot, "tsconfig.json"),
|
|
57
67
|
project: joinPaths(normalized.projectRoot, "package.json"),
|
|
@@ -86,9 +96,12 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
86
96
|
if (options.platform) {
|
|
87
97
|
projectConfig.targets.build.options.platform = options.platform === "worker" ? "node" : options.platform;
|
|
88
98
|
}
|
|
89
|
-
addProjectTag(
|
|
90
|
-
|
|
91
|
-
|
|
99
|
+
addProjectTag(
|
|
100
|
+
projectConfig,
|
|
101
|
+
ProjectTagConstants.Platform.TAG_ID,
|
|
102
|
+
options.platform === "node" ? ProjectTagConstants.Platform.NODE : options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL,
|
|
103
|
+
{ overwrite: false }
|
|
104
|
+
);
|
|
92
105
|
createProjectTsConfigJson(tree, normalized);
|
|
93
106
|
addProjectConfiguration(tree, normalized.name, projectConfig);
|
|
94
107
|
let repository = {
|
|
@@ -165,7 +178,11 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
165
178
|
}));
|
|
166
179
|
}
|
|
167
180
|
addTsConfigPath(tree, normalized.importPath, [
|
|
168
|
-
joinPaths(
|
|
181
|
+
joinPaths(
|
|
182
|
+
normalized.projectRoot,
|
|
183
|
+
"./src",
|
|
184
|
+
`index.${normalized.js ? "js" : "ts"}`
|
|
185
|
+
)
|
|
169
186
|
]);
|
|
170
187
|
addTsConfigPath(tree, joinPaths(normalized.importPath, "/*"), [
|
|
171
188
|
joinPaths(normalized.projectRoot, "./src", "/*")
|
|
@@ -193,25 +210,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
193
210
|
outDir: `${offsetFromRoot(normalized.projectRoot)}dist/out-tsc`
|
|
194
211
|
},
|
|
195
212
|
files: [],
|
|
196
|
-
include: [
|
|
197
|
-
|
|
198
|
-
"src/**/*.js"
|
|
199
|
-
],
|
|
200
|
-
exclude: [
|
|
201
|
-
"jest.config.ts",
|
|
202
|
-
"src/**/*.spec.ts",
|
|
203
|
-
"src/**/*.test.ts"
|
|
204
|
-
]
|
|
213
|
+
include: ["src/**/*.ts", "src/**/*.js"],
|
|
214
|
+
exclude: ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
|
|
205
215
|
});
|
|
206
216
|
}
|
|
207
217
|
await formatFiles(tree);
|
|
208
218
|
return null;
|
|
209
219
|
}
|
|
210
|
-
__name(typeScriptLibraryGeneratorFn, "typeScriptLibraryGeneratorFn");
|
|
211
220
|
function getOutputPath(options) {
|
|
212
|
-
const parts = [
|
|
213
|
-
"dist"
|
|
214
|
-
];
|
|
221
|
+
const parts = ["dist"];
|
|
215
222
|
if (options.projectRoot === ".") {
|
|
216
223
|
parts.push(options.name);
|
|
217
224
|
} else {
|
|
@@ -219,7 +226,6 @@ function getOutputPath(options) {
|
|
|
219
226
|
}
|
|
220
227
|
return joinPaths(...parts);
|
|
221
228
|
}
|
|
222
|
-
__name(getOutputPath, "getOutputPath");
|
|
223
229
|
function createProjectTsConfigJson(tree, options) {
|
|
224
230
|
const tsconfig = {
|
|
225
231
|
extends: options.rootProject ? void 0 : getRelativePathToRootTsConfig(tree, options.projectRoot),
|
|
@@ -230,9 +236,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
230
236
|
noEmit: true,
|
|
231
237
|
...options?.tsconfigOptions?.compilerOptions ?? {}
|
|
232
238
|
},
|
|
233
|
-
files: [
|
|
234
|
-
...options?.tsconfigOptions?.files ?? []
|
|
235
|
-
],
|
|
239
|
+
files: [...options?.tsconfigOptions?.files ?? []],
|
|
236
240
|
include: [
|
|
237
241
|
...options?.tsconfigOptions?.include ?? [],
|
|
238
242
|
"src/**/*.ts",
|
|
@@ -248,7 +252,6 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
248
252
|
};
|
|
249
253
|
writeJson(tree, joinPaths(options.projectRoot, "tsconfig.json"), tsconfig);
|
|
250
254
|
}
|
|
251
|
-
__name(createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
252
255
|
async function normalizeOptions(tree, options, config) {
|
|
253
256
|
let importPath = options.importPath;
|
|
254
257
|
if (!importPath && config?.namespace) {
|
|
@@ -256,7 +259,9 @@ async function normalizeOptions(tree, options, config) {
|
|
|
256
259
|
}
|
|
257
260
|
if (options.publishable) {
|
|
258
261
|
if (!importPath) {
|
|
259
|
-
throw new Error(
|
|
262
|
+
throw new Error(
|
|
263
|
+
`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`
|
|
264
|
+
);
|
|
260
265
|
}
|
|
261
266
|
}
|
|
262
267
|
let bundler = "tsc";
|
|
@@ -265,7 +270,12 @@ async function normalizeOptions(tree, options, config) {
|
|
|
265
270
|
}
|
|
266
271
|
const { Linter } = ensurePackage("@nx/eslint", nxVersion);
|
|
267
272
|
const rootProject = false;
|
|
268
|
-
const {
|
|
273
|
+
const {
|
|
274
|
+
projectName,
|
|
275
|
+
names: projectNames,
|
|
276
|
+
projectRoot,
|
|
277
|
+
importPath: normalizedImportPath
|
|
278
|
+
} = await determineProjectNameAndRootOptions(tree, {
|
|
269
279
|
name: options.name,
|
|
270
280
|
projectType: "library",
|
|
271
281
|
directory: options.directory,
|
|
@@ -302,7 +312,6 @@ async function normalizeOptions(tree, options, config) {
|
|
|
302
312
|
shouldUseSwcJest: false
|
|
303
313
|
};
|
|
304
314
|
}
|
|
305
|
-
__name(normalizeOptions, "normalizeOptions");
|
|
306
315
|
|
|
307
316
|
export {
|
|
308
317
|
typeScriptLibraryGeneratorFn,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.__require = __require;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
3
|
+
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
7
4
|
|
|
8
5
|
// src/utils/apply-workspace-tokens.ts
|
|
9
|
-
var applyWorkspaceExecutorTokens =
|
|
6
|
+
var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
|
|
10
7
|
let result = option;
|
|
11
8
|
if (!result) {
|
|
12
9
|
return result;
|
|
@@ -34,7 +31,10 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
34
31
|
if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
|
|
35
32
|
for (const configKey of configKeys) {
|
|
36
33
|
if (result.includes(`{${configKey}}`)) {
|
|
37
|
-
result = result.replaceAll(
|
|
34
|
+
result = result.replaceAll(
|
|
35
|
+
`{${configKey}}`,
|
|
36
|
+
tokenizerOptions.config[configKey]
|
|
37
|
+
);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -49,10 +49,13 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
49
49
|
result = result.replaceAll("{sourceRoot}", sourceRoot);
|
|
50
50
|
}
|
|
51
51
|
if (result.includes("{workspaceRoot}")) {
|
|
52
|
-
result = result.replaceAll(
|
|
52
|
+
result = result.replaceAll(
|
|
53
|
+
"{workspaceRoot}",
|
|
54
|
+
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, )))
|
|
55
|
+
);
|
|
53
56
|
}
|
|
54
57
|
return result;
|
|
55
|
-
}
|
|
58
|
+
};
|
|
56
59
|
|
|
57
60
|
|
|
58
61
|
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTagConstants,
|
|
3
3
|
getProjectTag
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
__name
|
|
7
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
4
|
+
} from "./chunk-F66XEAID.mjs";
|
|
8
5
|
|
|
9
6
|
// src/utils/plugin-helpers.ts
|
|
10
7
|
import { readJsonFile } from "@nx/devkit";
|
|
11
8
|
import defu from "defu";
|
|
12
9
|
import { existsSync } from "node:fs";
|
|
13
10
|
import { dirname, join } from "node:path";
|
|
14
|
-
var getProjectPlatform =
|
|
11
|
+
var getProjectPlatform = (project, ignoreTags = false) => {
|
|
15
12
|
const tsconfigJson = readJsonFile(join(project.root, "tsconfig.json"));
|
|
16
13
|
if (!tsconfigJson) {
|
|
17
14
|
throw new Error(`No tsconfig.json found in project root: ${project.root}`);
|
|
@@ -26,22 +23,28 @@ var getProjectPlatform = /* @__PURE__ */ __name((project, ignoreTags = false) =>
|
|
|
26
23
|
}
|
|
27
24
|
if (platformTag !== ProjectTagConstants.Platform.NEUTRAL) {
|
|
28
25
|
const types = Array.isArray(tsconfigJson.compilerOptions?.types) ? tsconfigJson.compilerOptions.types : [];
|
|
29
|
-
if (platformTag === ProjectTagConstants.Platform.WORKER || types.some(
|
|
26
|
+
if (platformTag === ProjectTagConstants.Platform.WORKER || types.some(
|
|
27
|
+
(type) => type.toLowerCase() === "@cloudflare/workers-types"
|
|
28
|
+
) || packageJson.devDependencies?.["@cloudflare/workers-types"] || packageJson.devDependencies?.["wrangler"]) {
|
|
30
29
|
return "worker";
|
|
31
30
|
}
|
|
32
31
|
if (platformTag === ProjectTagConstants.Platform.NODE || types?.some((type) => type.toLowerCase() === "node") || packageJson.devDependencies?.["@types/node"]) {
|
|
33
32
|
return "node";
|
|
34
33
|
}
|
|
35
|
-
if (platformTag === ProjectTagConstants.Platform.BROWSER || types?.some((type) => type.toLowerCase() === "dom") || packageJson.dependencies && Object.keys(packageJson.dependencies).some(
|
|
34
|
+
if (platformTag === ProjectTagConstants.Platform.BROWSER || types?.some((type) => type.toLowerCase() === "dom") || packageJson.dependencies && Object.keys(packageJson.dependencies).some(
|
|
35
|
+
(dependency) => dependency.includes("react")
|
|
36
|
+
) || packageJson.devDependencies && Object.keys(packageJson.devDependencies).some(
|
|
37
|
+
(devDependency) => devDependency.includes("react")
|
|
38
|
+
)) {
|
|
36
39
|
return "browser";
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
return "neutral";
|
|
40
|
-
}
|
|
41
|
-
var getProjectConfigFromProjectJsonPath =
|
|
43
|
+
};
|
|
44
|
+
var getProjectConfigFromProjectJsonPath = (projectJsonPath, packageJson) => {
|
|
42
45
|
return getProjectConfigFromProjectRoot(dirname(projectJsonPath), packageJson);
|
|
43
|
-
}
|
|
44
|
-
var getProjectConfigFromProjectRoot =
|
|
46
|
+
};
|
|
47
|
+
var getProjectConfigFromProjectRoot = (projectRoot, packageJson) => {
|
|
45
48
|
const { nx, name } = packageJson;
|
|
46
49
|
const projectJson = readJsonFile(join(projectRoot, "project.json"));
|
|
47
50
|
return defu(nx ?? {}, projectJson, {
|
|
@@ -50,8 +53,8 @@ var getProjectConfigFromProjectRoot = /* @__PURE__ */ __name((projectRoot, packa
|
|
|
50
53
|
name,
|
|
51
54
|
root: projectRoot
|
|
52
55
|
});
|
|
53
|
-
}
|
|
54
|
-
var getProjectRoot =
|
|
56
|
+
};
|
|
57
|
+
var getProjectRoot = (configPath, workspaceRoot) => {
|
|
55
58
|
try {
|
|
56
59
|
const root = dirname(configPath);
|
|
57
60
|
const projectRoot = join(workspaceRoot, root);
|
|
@@ -63,7 +66,7 @@ var getProjectRoot = /* @__PURE__ */ __name((configPath, workspaceRoot) => {
|
|
|
63
66
|
console.error(error_);
|
|
64
67
|
return null;
|
|
65
68
|
}
|
|
66
|
-
}
|
|
69
|
+
};
|
|
67
70
|
|
|
68
71
|
export {
|
|
69
72
|
getProjectPlatform,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/generators/init/init.ts
|
|
2
|
+
import {
|
|
3
|
+
addDependenciesToPackageJson,
|
|
4
|
+
formatFiles
|
|
5
|
+
} from "@nx/devkit";
|
|
6
|
+
async function initGenerator(tree, schema) {
|
|
7
|
+
const task = addDependenciesToPackageJson(
|
|
8
|
+
tree,
|
|
9
|
+
{
|
|
10
|
+
nx: "^19.6.2",
|
|
11
|
+
"@nx/workspace": "^19.6.2",
|
|
12
|
+
"@nx/js": "^19.6.2",
|
|
13
|
+
"@storm-software/eslint": "latest",
|
|
14
|
+
"@storm-software/prettier": "latest",
|
|
15
|
+
"@storm-software/config-tools": "latest",
|
|
16
|
+
"@storm-software/testing-tools": "latest",
|
|
17
|
+
"@storm-software/git-tools": "latest",
|
|
18
|
+
"@storm-software/linting-tools": "latest"
|
|
19
|
+
},
|
|
20
|
+
{}
|
|
21
|
+
);
|
|
22
|
+
if (!schema.skipFormat) {
|
|
23
|
+
await formatFiles(tree);
|
|
24
|
+
}
|
|
25
|
+
return task;
|
|
26
|
+
}
|
|
27
|
+
var init_default = initGenerator;
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
initGenerator,
|
|
31
|
+
init_default
|
|
32
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/utils/cargo.ts
|
|
2
|
+
var _devkit = require('@nx/devkit');
|
|
3
|
+
|
|
2
4
|
|
|
3
|
-
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
4
5
|
|
|
5
|
-
// src/utils/cargo.ts
|
|
6
|
-
var _devkit = require('@nx/devkit');
|
|
7
6
|
var _child_process = require('child_process');
|
|
8
7
|
var _path = require('path');
|
|
9
8
|
var INVALID_CARGO_ARGS = [
|
|
@@ -15,7 +14,7 @@ var INVALID_CARGO_ARGS = [
|
|
|
15
14
|
"tsConfig"
|
|
16
15
|
];
|
|
17
16
|
var childProcess;
|
|
18
|
-
var buildCargoCommand =
|
|
17
|
+
var buildCargoCommand = (baseCommand, options, context) => {
|
|
19
18
|
const args = [];
|
|
20
19
|
if (options.toolchain && options.toolchain !== "stable") {
|
|
21
20
|
args.push(`+${options.toolchain}`);
|
|
@@ -53,54 +52,38 @@ var buildCargoCommand = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (ba
|
|
|
53
52
|
args.push("--target-dir", options.outputPath);
|
|
54
53
|
}
|
|
55
54
|
return args;
|
|
56
|
-
}
|
|
55
|
+
};
|
|
57
56
|
async function cargoCommand(...args) {
|
|
58
57
|
console.log(`> cargo ${args.join(" ")}`);
|
|
59
58
|
args.push("--color", "always");
|
|
60
59
|
return await Promise.resolve(runProcess("cargo", ...args));
|
|
61
60
|
}
|
|
62
|
-
_chunk3GQAWCBQjs.__name.call(void 0, cargoCommand, "cargoCommand");
|
|
63
61
|
function cargoRunCommand(...args) {
|
|
64
62
|
console.log(`> cargo ${args.join(" ")}`);
|
|
65
63
|
return new Promise((resolve, reject) => {
|
|
66
|
-
childProcess = exports.childProcess = _child_process.spawn.call(void 0, "cargo", [
|
|
67
|
-
...args,
|
|
68
|
-
"--color",
|
|
69
|
-
"always"
|
|
70
|
-
], {
|
|
64
|
+
childProcess = exports.childProcess = _child_process.spawn.call(void 0, "cargo", [...args, "--color", "always"], {
|
|
71
65
|
cwd: process.cwd(),
|
|
72
66
|
windowsHide: true,
|
|
73
67
|
detached: true,
|
|
74
68
|
shell: false,
|
|
75
|
-
stdio: [
|
|
76
|
-
"inherit",
|
|
77
|
-
"inherit",
|
|
78
|
-
"inherit"
|
|
79
|
-
]
|
|
69
|
+
stdio: ["inherit", "inherit", "inherit"]
|
|
80
70
|
});
|
|
81
71
|
process.on("exit", () => _optionalChain([childProcess, 'optionalAccess', _ => _.kill, 'call', _2 => _2()]));
|
|
82
72
|
process.on("SIGTERM", () => _optionalChain([childProcess, 'optionalAccess', _3 => _3.kill, 'call', _4 => _4()]));
|
|
83
73
|
process.on("SIGINT", () => _optionalChain([childProcess, 'optionalAccess', _5 => _5.kill, 'call', _6 => _6()]));
|
|
84
74
|
childProcess.on("error", (_err) => {
|
|
85
|
-
reject({
|
|
86
|
-
success: false
|
|
87
|
-
});
|
|
75
|
+
reject({ success: false });
|
|
88
76
|
});
|
|
89
77
|
childProcess.on("exit", (code) => {
|
|
90
78
|
childProcess = exports.childProcess = null;
|
|
91
79
|
if (code === 0) {
|
|
92
|
-
resolve({
|
|
93
|
-
success: true
|
|
94
|
-
});
|
|
80
|
+
resolve({ success: true });
|
|
95
81
|
} else {
|
|
96
|
-
reject({
|
|
97
|
-
success: false
|
|
98
|
-
});
|
|
82
|
+
reject({ success: false });
|
|
99
83
|
}
|
|
100
84
|
});
|
|
101
85
|
});
|
|
102
86
|
}
|
|
103
|
-
_chunk3GQAWCBQjs.__name.call(void 0, cargoRunCommand, "cargoRunCommand");
|
|
104
87
|
function cargoCommandSync(args = "", options) {
|
|
105
88
|
const normalizedOptions = {
|
|
106
89
|
stdio: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _7 => _7.stdio]), () => ( "inherit")),
|
|
@@ -127,7 +110,6 @@ function cargoCommandSync(args = "", options) {
|
|
|
127
110
|
};
|
|
128
111
|
}
|
|
129
112
|
}
|
|
130
|
-
_chunk3GQAWCBQjs.__name.call(void 0, cargoCommandSync, "cargoCommandSync");
|
|
131
113
|
function cargoMetadata() {
|
|
132
114
|
const output = cargoCommandSync("metadata --format-version=1", {
|
|
133
115
|
stdio: "pipe"
|
|
@@ -138,22 +120,18 @@ function cargoMetadata() {
|
|
|
138
120
|
}
|
|
139
121
|
return JSON.parse(output.output);
|
|
140
122
|
}
|
|
141
|
-
_chunk3GQAWCBQjs.__name.call(void 0, cargoMetadata, "cargoMetadata");
|
|
142
123
|
function isExternal(packageOrDep, workspaceRoot2) {
|
|
143
124
|
const isRegistry = _nullishCoalesce(_optionalChain([packageOrDep, 'access', _9 => _9.source, 'optionalAccess', _10 => _10.startsWith, 'call', _11 => _11("registry+")]), () => ( false));
|
|
144
125
|
const isGit = _nullishCoalesce(_optionalChain([packageOrDep, 'access', _12 => _12.source, 'optionalAccess', _13 => _13.startsWith, 'call', _14 => _14("git+")]), () => ( false));
|
|
145
126
|
const isOutsideWorkspace = "path" in packageOrDep && _path.relative.call(void 0, workspaceRoot2, packageOrDep.path).startsWith("..");
|
|
146
127
|
return isRegistry || isGit || isOutsideWorkspace;
|
|
147
128
|
}
|
|
148
|
-
_chunk3GQAWCBQjs.__name.call(void 0, isExternal, "isExternal");
|
|
149
129
|
function runProcess(processCmd, ...args) {
|
|
150
130
|
const metadata = cargoMetadata();
|
|
151
131
|
const targetDir = _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _15 => _15.target_directory]), () => ( _devkit.joinPathFragments.call(void 0, _devkit.workspaceRoot, "dist", "cargo")));
|
|
152
132
|
return new Promise((resolve) => {
|
|
153
133
|
if (process.env.VERCEL) {
|
|
154
|
-
return resolve({
|
|
155
|
-
success: true
|
|
156
|
-
});
|
|
134
|
+
return resolve({ success: true });
|
|
157
135
|
}
|
|
158
136
|
_child_process.execSync.call(void 0, `${processCmd} ${args.join(" ")}`, {
|
|
159
137
|
cwd: process.cwd(),
|
|
@@ -164,18 +142,11 @@ function runProcess(processCmd, ...args) {
|
|
|
164
142
|
CARGO_BUILD_TARGET_DIR: targetDir
|
|
165
143
|
},
|
|
166
144
|
windowsHide: true,
|
|
167
|
-
stdio: [
|
|
168
|
-
"inherit",
|
|
169
|
-
"inherit",
|
|
170
|
-
"inherit"
|
|
171
|
-
]
|
|
172
|
-
});
|
|
173
|
-
resolve({
|
|
174
|
-
success: true
|
|
145
|
+
stdio: ["inherit", "inherit", "inherit"]
|
|
175
146
|
});
|
|
147
|
+
resolve({ success: true });
|
|
176
148
|
});
|
|
177
149
|
}
|
|
178
|
-
_chunk3GQAWCBQjs.__name.call(void 0, runProcess, "runProcess");
|
|
179
150
|
|
|
180
151
|
|
|
181
152
|
|