@storm-software/workspace-tools 1.296.65 → 1.296.69
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/README.md +1 -1
- package/dist/{chunk-JSF2U5XJ.mjs → chunk-5HFH7JXU.mjs} +1 -1
- package/dist/chunk-6JPLZS7V.js +63 -0
- package/dist/{chunk-33X22YHZ.js → chunk-6SGLYIAR.js} +38 -62
- package/dist/{chunk-7GR34ULJ.mjs → chunk-DWFH4BRZ.mjs} +1 -1
- package/dist/{chunk-HHIEI52S.mjs → chunk-F2YQJNBF.mjs} +1 -1
- package/dist/{chunk-ZLMX7HR5.mjs → chunk-LWUEYMYK.mjs} +1 -1
- package/dist/chunk-NVQEK4YA.mjs +63 -0
- package/dist/{chunk-PVNPMJZX.mjs → chunk-QJ7X75J7.mjs} +18 -42
- package/dist/chunk-QTRRVFW3.js +646 -0
- package/dist/{chunk-26UFEUQD.mjs → chunk-TCAUYQGJ.mjs} +1 -1
- package/dist/chunk-WCG3YZT5.mjs +646 -0
- package/dist/{executor-C5219i5t.d.ts → executor-Bvhe30H9.d.mts} +1 -1
- package/dist/{executor-DadFjUp3.d.mts → executor-Bvhe30H9.d.ts} +1 -1
- package/dist/{executor-CIWrRfZk.d.ts → executor-ByqK10v5.d.mts} +1 -1
- package/dist/{executor-CG97uTCS.d.mts → executor-ByqK10v5.d.ts} +1 -1
- package/dist/{executor-k7EKIXAK.d.ts → executor-CfRFawOI.d.mts} +1 -1
- package/dist/{executor-CMTGEhxz.d.mts → executor-CfRFawOI.d.ts} +1 -1
- package/dist/{executor-DwZoSq9d.d.mts → executor-DGBYJ2e9.d.mts} +2 -2
- package/dist/{executor-ClfwHhlC.d.ts → executor-DGBYJ2e9.d.ts} +2 -2
- package/dist/{executor-Dy3y0dK8.d.ts → executor-DnAgSSQo.d.mts} +1 -1
- package/dist/{executor-BvyV-AUf.d.mts → executor-DnAgSSQo.d.ts} +1 -1
- package/dist/{executor-J46dd9vs.d.ts → executor-gZ6drqad.d.mts} +1 -1
- package/dist/{executor-BIJn8SVe.d.mts → executor-gZ6drqad.d.ts} +1 -1
- package/dist/executors.d.mts +8 -9
- package/dist/executors.d.ts +8 -9
- package/dist/executors.js +4 -5
- package/dist/executors.mjs +4 -5
- package/dist/{generator-pH8SQ4XZ.d.ts → generator-B84zOfal.d.ts} +1 -1
- package/dist/{generator-DKHHWoGN.d.mts → generator-B8e9I6Mc.d.mts} +1 -1
- package/dist/{generator-COkrr-Oe.d.ts → generator-BC0IbdKh.d.ts} +2 -2
- package/dist/{generator-B5dG5dVY.d.ts → generator-BIDPDi0P.d.ts} +2 -2
- package/dist/{generator-Dmk05ap8.d.mts → generator-BS0iminO.d.mts} +2 -2
- package/dist/{generator-CXLEWJAF.d.ts → generator-Bg8GF2dN.d.mts} +2 -2
- package/dist/{generator-RLXG3OeQ.d.ts → generator-CPtINS_d.d.mts} +2 -2
- package/dist/{generator-C3dM_v6y.d.mts → generator-D7IL5mT3.d.ts} +2 -2
- package/dist/{generator-BKQGstaG.d.mts → generator-DZxxv_h5.d.mts} +2 -2
- package/dist/{generator-OpEc9gcp.d.mts → generator-Dq3a21FT.d.ts} +2 -2
- package/dist/generators.d.mts +9 -10
- package/dist/generators.d.ts +9 -10
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +7 -7
- package/dist/index.d.mts +17 -16
- package/dist/index.d.ts +17 -16
- package/dist/index.js +6 -7
- package/dist/index.mjs +10 -11
- package/dist/src/base/base-executor.d.mts +3 -5
- package/dist/src/base/base-executor.d.ts +3 -5
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.d.mts +3 -5
- package/dist/src/base/base-generator.d.ts +3 -5
- package/dist/src/base/base-generator.mjs +1 -1
- 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.d.mts +3 -5
- package/dist/src/base/index.d.ts +3 -5
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.mjs +1 -1
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.mjs +1 -1
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.mjs +1 -1
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.mjs +1 -1
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.mjs +1 -1
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +1 -1
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.d.mts +1 -3
- package/dist/src/executors/clean-package/executor.d.ts +1 -3
- package/dist/src/executors/clean-package/executor.mjs +1 -1
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.d.mts +2 -4
- package/dist/src/executors/esbuild/executor.d.ts +2 -4
- package/dist/src/executors/esbuild/executor.js +2 -3
- package/dist/src/executors/esbuild/executor.mjs +2 -3
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/napi/executor.d.mts +2 -4
- package/dist/src/executors/napi/executor.d.ts +2 -4
- package/dist/src/executors/napi/executor.mjs +1 -1
- package/dist/src/executors/napi/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.js +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +2 -2
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.d.mts +2 -4
- package/dist/src/executors/size-limit/executor.d.ts +2 -4
- package/dist/src/executors/size-limit/executor.mjs +1 -1
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.d.mts +2 -4
- package/dist/src/executors/tsdown/executor.d.ts +2 -4
- package/dist/src/executors/tsdown/executor.js +2 -3
- package/dist/src/executors/tsdown/executor.mjs +2 -3
- package/dist/src/executors/tsdown/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.d.mts +2 -4
- package/dist/src/executors/typia/executor.d.ts +2 -4
- package/dist/src/executors/typia/executor.mjs +1 -1
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.d.mts +2 -4
- package/dist/src/executors/unbuild/executor.d.ts +2 -4
- package/dist/src/executors/unbuild/executor.mjs +1 -1
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.d.mts +4 -6
- package/dist/src/generators/browser-library/generator.d.ts +4 -6
- package/dist/src/generators/browser-library/generator.mjs +2 -2
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.d.mts +4 -5
- package/dist/src/generators/config-schema/generator.d.ts +4 -5
- package/dist/src/generators/config-schema/generator.mjs +1 -1
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.d.mts +4 -6
- package/dist/src/generators/neutral-library/generator.d.ts +4 -6
- package/dist/src/generators/neutral-library/generator.mjs +2 -2
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.d.mts +4 -6
- package/dist/src/generators/node-library/generator.d.ts +4 -6
- package/dist/src/generators/node-library/generator.mjs +2 -2
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.d.mts +4 -6
- package/dist/src/generators/preset/generator.d.ts +4 -6
- package/dist/src/generators/preset/generator.mjs +2 -2
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.d.mts +3 -5
- package/dist/src/plugins/typescript/index.d.ts +3 -5
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/tsdown.d.mts +3 -5
- package/dist/src/plugins/typescript/tsdown.d.ts +3 -5
- package/dist/src/plugins/typescript/tsdown.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.d.mts +3 -5
- package/dist/src/plugins/typescript/tsup.d.ts +3 -5
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/release/index.d.mts +2 -3
- package/dist/src/release/index.d.ts +2 -3
- package/dist/src/release/index.mjs +1 -1
- package/dist/src/release/js-version-actions.d.mts +1 -3
- package/dist/src/release/js-version-actions.d.ts +1 -3
- package/dist/src/release/js-version-actions.mjs +1 -1
- package/dist/src/release/rust-version-actions.d.mts +1 -3
- package/dist/src/release/rust-version-actions.d.ts +1 -3
- package/dist/src/release/rust-version-actions.mjs +1 -1
- package/dist/src/types.d.mts +77 -6
- package/dist/src/types.d.ts +77 -6
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/github.d.mts +1 -3
- package/dist/src/utils/github.d.ts +1 -3
- package/dist/src/utils/github.mjs +1 -1
- package/dist/src/utils/index.d.mts +4 -5
- package/dist/src/utils/index.d.ts +4 -5
- package/dist/src/utils/index.mjs +1 -1
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/nx-json.mjs +1 -1
- package/dist/src/utils/package-helpers.mjs +1 -1
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/project-tags.d.mts +3 -57
- package/dist/src/utils/project-tags.d.ts +3 -57
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/registry-helpers.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +11 -11
- package/dist/chunk-BCJOE7LL.mjs +0 -469
- package/dist/chunk-CX7LLOXP.js +0 -363
- package/dist/chunk-F4NO6JZL.mjs +0 -319
- package/dist/chunk-MI4DOBNH.js +0 -319
- package/dist/chunk-TFGZLFCS.mjs +0 -363
- package/dist/chunk-UCM45E6T.js +0 -469
- package/dist/types-CHANfFBa.d.ts +0 -77
- package/dist/types-D2zxYEAh.d.mts +0 -41
- package/dist/types-D2zxYEAh.d.ts +0 -41
- package/dist/types-DI57BUsw.d.mts +0 -243
- package/dist/types-DI57BUsw.d.ts +0 -243
- package/dist/types-E53OUdCr.d.mts +0 -77
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
+
|
|
3
|
+
var _chunk3QCVXOSBjs = require('./chunk-3QCVXOSB.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkCLKU7UMGjs = require('./chunk-CLKU7UMG.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
10
|
+
|
|
11
|
+
// src/executors/esbuild/executor.ts
|
|
12
|
+
var _jiti = require('jiti');
|
|
13
|
+
async function esbuildExecutorFn(options, context, config) {
|
|
14
|
+
_chunkCLKU7UMGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
15
|
+
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root])) {
|
|
16
|
+
throw new Error(
|
|
17
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
const jiti = _jiti.createJiti.call(void 0, _optionalChain([config, 'optionalAccess', _7 => _7.workspaceRoot]) || process.cwd(), {
|
|
21
|
+
fsCache: _optionalChain([config, 'optionalAccess', _8 => _8.skipCache]) ? false : _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
22
|
+
_optionalChain([config, 'optionalAccess', _9 => _9.workspaceRoot]) || process.cwd(),
|
|
23
|
+
_optionalChain([config, 'optionalAccess', _10 => _10.directories, 'optionalAccess', _11 => _11.cache]) || "node_modules/.cache/storm",
|
|
24
|
+
"jiti"
|
|
25
|
+
),
|
|
26
|
+
interopDefault: true
|
|
27
|
+
});
|
|
28
|
+
const { build } = await jiti.import(jiti.esmResolve("@storm-software/esbuild"));
|
|
29
|
+
await build({
|
|
30
|
+
...options,
|
|
31
|
+
projectRoot: (
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
33
|
+
_optionalChain([context, 'access', _12 => _12.projectsConfigurations, 'access', _13 => _13.projects, 'optionalAccess', _14 => _14[context.projectName], 'access', _15 => _15.root])
|
|
34
|
+
),
|
|
35
|
+
name: context.projectName,
|
|
36
|
+
sourceRoot: _optionalChain([context, 'access', _16 => _16.projectsConfigurations, 'access', _17 => _17.projects, 'optionalAccess', _18 => _18[context.projectName], 'optionalAccess', _19 => _19.sourceRoot]),
|
|
37
|
+
format: options.format,
|
|
38
|
+
platform: options.platform
|
|
39
|
+
});
|
|
40
|
+
return {
|
|
41
|
+
success: true
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
var executor_default = _chunk3QCVXOSBjs.withRunExecutor.call(void 0,
|
|
45
|
+
"Storm ESBuild build",
|
|
46
|
+
esbuildExecutorFn,
|
|
47
|
+
{
|
|
48
|
+
skipReadingConfig: false,
|
|
49
|
+
hooks: {
|
|
50
|
+
applyDefaultOptions: async (options) => {
|
|
51
|
+
options.entry ??= ["src/index.ts"];
|
|
52
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
53
|
+
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
54
|
+
return options;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
exports.esbuildExecutorFn = esbuildExecutorFn; exports.executor_default = executor_default;
|
|
@@ -14,57 +14,20 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
14
14
|
|
|
15
15
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
16
16
|
|
|
17
|
-
// ../npm-tools/src/helpers/get-
|
|
17
|
+
// ../npm-tools/src/helpers/get-version.ts
|
|
18
18
|
var _child_process = require('child_process');
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
19
|
+
var _semver = require('semver');
|
|
20
|
+
var _stripansi = require('strip-ansi'); var _stripansi2 = _interopRequireDefault(_stripansi);
|
|
22
21
|
|
|
23
22
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
24
|
-
async function getRegistry(executable = "npm") {
|
|
25
|
-
return new Promise((resolve, reject) => {
|
|
26
|
-
_child_process.exec.call(void 0, `${executable} config get registry`, (error, stdout, stderr) => {
|
|
27
|
-
if (error && !error.message.toLowerCase().trim().startsWith("npm warn")) {
|
|
28
|
-
return reject(error);
|
|
29
|
-
}
|
|
30
|
-
if (stderr && !stderr.toLowerCase().trim().startsWith("npm warn")) {
|
|
31
|
-
return reject(stderr);
|
|
32
|
-
}
|
|
33
|
-
return resolve(stdout.trim());
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
async function getNpmRegistry() {
|
|
38
|
-
if (process.env.STORM_REGISTRY_NPM) {
|
|
39
|
-
return process.env.STORM_REGISTRY_NPM;
|
|
40
|
-
}
|
|
41
|
-
const workspaceConfig = await _chunkLQ4UTUAFjs.getConfig.call(void 0, );
|
|
42
|
-
if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
|
|
43
|
-
return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
|
|
44
|
-
}
|
|
45
|
-
return DEFAULT_NPM_REGISTRY;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var _devkit = require('@nx/devkit');
|
|
53
|
-
var _fs = require('fs');
|
|
54
|
-
var _promises = require('fs/promises');
|
|
55
|
-
var _prettier = require('prettier');
|
|
56
|
-
|
|
57
|
-
// ../npm-tools/src/helpers/get-version.ts
|
|
58
23
|
|
|
59
|
-
var _semver = require('semver');
|
|
60
|
-
var _stripansi = require('strip-ansi'); var _stripansi2 = _interopRequireDefault(_stripansi);
|
|
61
24
|
|
|
62
25
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
63
26
|
|
|
64
27
|
|
|
65
28
|
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
66
|
-
|
|
67
|
-
|
|
29
|
+
var _fs = require('fs');
|
|
30
|
+
var _promises = require('fs/promises');
|
|
68
31
|
var _yaml = require('yaml');
|
|
69
32
|
function getPnpmWorkspaceFilePath(workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
70
33
|
const pnpmWorkspacePath = _chunkCQDBLKPFjs.joinPaths.call(void 0, workspaceRoot, "pnpm-workspace.yaml");
|
|
@@ -92,7 +55,7 @@ async function getCatalogSafe(workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot
|
|
|
92
55
|
if (!pnpmWorkspaceFile) {
|
|
93
56
|
throw new Error("No pnpm-workspace.yaml file found");
|
|
94
57
|
}
|
|
95
|
-
if (_optionalChain([pnpmWorkspaceFile, 'optionalAccess',
|
|
58
|
+
if (_optionalChain([pnpmWorkspaceFile, 'optionalAccess', _ => _.catalog])) {
|
|
96
59
|
return Object.fromEntries(
|
|
97
60
|
Object.entries(pnpmWorkspaceFile.catalog).map(([key, value]) => {
|
|
98
61
|
return [key, value.replaceAll('"', "").replaceAll("'", "")];
|
|
@@ -119,6 +82,13 @@ async function getCatalog(workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.cal
|
|
|
119
82
|
}
|
|
120
83
|
|
|
121
84
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
var _devkit = require('@nx/devkit');
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
var _prettier = require('prettier');
|
|
122
92
|
async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, packageRoot)) {
|
|
123
93
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
124
94
|
const packageJsonFile = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
@@ -180,7 +150,7 @@ async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = _
|
|
|
180
150
|
await Promise.all(
|
|
181
151
|
Object.keys(projectGraph.nodes).map(async (node) => {
|
|
182
152
|
const projectNode = projectGraph.nodes[node];
|
|
183
|
-
if (_optionalChain([projectNode, 'optionalAccess',
|
|
153
|
+
if (_optionalChain([projectNode, 'optionalAccess', _2 => _2.data, 'access', _3 => _3.root])) {
|
|
184
154
|
const projectPackageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
185
155
|
workspaceRoot,
|
|
186
156
|
projectNode.data.root,
|
|
@@ -243,6 +213,7 @@ async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = _
|
|
|
243
213
|
}
|
|
244
214
|
|
|
245
215
|
// src/executors/npm-publish/executor.ts
|
|
216
|
+
var _jiti = require('jiti');
|
|
246
217
|
|
|
247
218
|
|
|
248
219
|
|
|
@@ -255,7 +226,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
255
226
|
github.error("The `npm-publish` executor requires a `projectName`.");
|
|
256
227
|
return { success: false };
|
|
257
228
|
}
|
|
258
|
-
const projectConfig = _optionalChain([context, 'access',
|
|
229
|
+
const projectConfig = _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'optionalAccess', _5 => _5.projects, 'optionalAccess', _6 => _6[context.projectName]]);
|
|
259
230
|
if (!projectConfig) {
|
|
260
231
|
github.error(
|
|
261
232
|
`Could not find project configuration for \`${context.projectName}\``
|
|
@@ -266,11 +237,16 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
266
237
|
context.root,
|
|
267
238
|
options.packageRoot || _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", projectConfig.root)
|
|
268
239
|
);
|
|
269
|
-
const projectRoot = _optionalChain([context, 'access',
|
|
240
|
+
const projectRoot = _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.root]) ? _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
270
241
|
context.root,
|
|
271
242
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
272
243
|
context.projectsConfigurations.projects[context.projectName].root
|
|
273
244
|
) : packageRoot;
|
|
245
|
+
const jiti = _jiti.createJiti.call(void 0, context.root, {
|
|
246
|
+
fsCache: _chunkCQDBLKPFjs.joinPaths.call(void 0, context.root, "node_modules/.cache/storm", "jiti"),
|
|
247
|
+
interopDefault: true
|
|
248
|
+
});
|
|
249
|
+
const { getNpmRegistry, getRegistry: getRegistry2 } = await jiti.import(jiti.esmResolve("@storm-software/npm-tools/helpers"));
|
|
274
250
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
275
251
|
const packageJsonFile = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
276
252
|
if (!packageJsonFile) {
|
|
@@ -332,7 +308,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
332
308
|
`npm view ${packageName} versions dist-tags --json`
|
|
333
309
|
];
|
|
334
310
|
const registry = await Promise.resolve(
|
|
335
|
-
await _asyncNullishCoalesce(options.registry, async () => ( (await
|
|
311
|
+
await _asyncNullishCoalesce(options.registry, async () => ( (await getRegistry2() || getNpmRegistry())))
|
|
336
312
|
);
|
|
337
313
|
if (registry) {
|
|
338
314
|
npmPublishCommandSegments.push(`--registry="${registry}" `);
|
|
@@ -342,7 +318,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
342
318
|
npmPublishCommandSegments.push(`--otp="${options.otp}" `);
|
|
343
319
|
}
|
|
344
320
|
let token;
|
|
345
|
-
if (!options.otp) {
|
|
321
|
+
if (!options.otp && registry) {
|
|
346
322
|
token = await github.getIDToken(
|
|
347
323
|
`npm:${registry.replace(/^https?:\/\//, "")}`
|
|
348
324
|
);
|
|
@@ -432,34 +408,34 @@ Execution response: ${result.toString()}`
|
|
|
432
408
|
return { success: true };
|
|
433
409
|
} catch (err) {
|
|
434
410
|
try {
|
|
435
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access',
|
|
436
|
-
if (_optionalChain([stdoutData, 'optionalAccess',
|
|
411
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _11 => _11.stdout, 'optionalAccess', _12 => _12.toString, 'call', _13 => _13()]) || "{}");
|
|
412
|
+
if (_optionalChain([stdoutData, 'optionalAccess', _14 => _14.error]) && !(_optionalChain([stdoutData, 'access', _15 => _15.error, 'optionalAccess', _16 => _16.code, 'optionalAccess', _17 => _17.includes, 'call', _18 => _18("E404")]) && _optionalChain([stdoutData, 'access', _19 => _19.error, 'optionalAccess', _20 => _20.summary, 'optionalAccess', _21 => _21.includes, 'call', _22 => _22("no such package available")])) && !(_optionalChain([err, 'access', _23 => _23.stderr, 'optionalAccess', _24 => _24.toString, 'call', _25 => _25(), 'access', _26 => _26.includes, 'call', _27 => _27("E404")]) && _optionalChain([err, 'access', _28 => _28.stderr, 'optionalAccess', _29 => _29.toString, 'call', _30 => _30(), 'access', _31 => _31.includes, 'call', _32 => _32("no such package available")]))) {
|
|
437
413
|
const errorMessage = `An unexpected error occured while running the npm dist-tag add command:
|
|
438
414
|
|
|
439
|
-
${_optionalChain([stdoutData, 'optionalAccess',
|
|
440
|
-
` : ""}${_optionalChain([stdoutData, 'optionalAccess',
|
|
415
|
+
${_optionalChain([stdoutData, 'optionalAccess', _33 => _33.error, 'optionalAccess', _34 => _34.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _35 => _35.error, 'optionalAccess', _36 => _36.summary])}${_optionalChain([stdoutData, 'optionalAccess', _37 => _37.error, 'optionalAccess', _38 => _38.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _39 => _39.error, 'optionalAccess', _40 => _40.code])})` : ""}
|
|
416
|
+
` : ""}${_optionalChain([stdoutData, 'optionalAccess', _41 => _41.error, 'optionalAccess', _42 => _42.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _43 => _43.error, 'optionalAccess', _44 => _44.detail])}
|
|
441
417
|
` : ""}`;
|
|
442
418
|
github.error(errorMessage);
|
|
443
419
|
return { success: false };
|
|
444
420
|
}
|
|
445
421
|
} catch (err2) {
|
|
446
|
-
const stdoutData = JSON.parse(_optionalChain([err2, 'access',
|
|
422
|
+
const stdoutData = JSON.parse(_optionalChain([err2, 'access', _45 => _45.stdout, 'optionalAccess', _46 => _46.toString, 'call', _47 => _47()]) || "{}");
|
|
447
423
|
const errorMessage = `An unexpected error occured while processing the npm dist-tag add output:
|
|
448
424
|
|
|
449
|
-
${_optionalChain([stdoutData, 'optionalAccess',
|
|
450
|
-
` : ""}${_optionalChain([stdoutData, 'optionalAccess',
|
|
425
|
+
${_optionalChain([stdoutData, 'optionalAccess', _48 => _48.error, 'optionalAccess', _49 => _49.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _50 => _50.error, 'optionalAccess', _51 => _51.summary])}${_optionalChain([stdoutData, 'optionalAccess', _52 => _52.error, 'optionalAccess', _53 => _53.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _54 => _54.error, 'optionalAccess', _55 => _55.code])})` : ""}
|
|
426
|
+
` : ""}${_optionalChain([stdoutData, 'optionalAccess', _56 => _56.error, 'optionalAccess', _57 => _57.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _58 => _58.error, 'optionalAccess', _59 => _59.detail])}
|
|
451
427
|
` : ""}`;
|
|
452
428
|
github.error(errorMessage);
|
|
453
429
|
return { success: false };
|
|
454
430
|
}
|
|
455
431
|
}
|
|
456
432
|
} catch (err) {
|
|
457
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access',
|
|
458
|
-
if (!(_optionalChain([stdoutData, 'access',
|
|
433
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _60 => _60.stdout, 'optionalAccess', _61 => _61.toString, 'call', _62 => _62()]) || "{}");
|
|
434
|
+
if (!(_optionalChain([stdoutData, 'access', _63 => _63.error, 'optionalAccess', _64 => _64.code, 'optionalAccess', _65 => _65.includes, 'call', _66 => _66("E404")]) && _optionalChain([stdoutData, 'access', _67 => _67.error, 'optionalAccess', _68 => _68.summary, 'optionalAccess', _69 => _69.toLowerCase, 'call', _70 => _70(), 'access', _71 => _71.includes, 'call', _72 => _72("not found")])) && !(_optionalChain([err, 'access', _73 => _73.stderr, 'optionalAccess', _74 => _74.toString, 'call', _75 => _75(), 'access', _76 => _76.includes, 'call', _77 => _77("E404")]) && _optionalChain([err, 'access', _78 => _78.stderr, 'optionalAccess', _79 => _79.toString, 'call', _80 => _80(), 'access', _81 => _81.toLowerCase, 'call', _82 => _82(), 'access', _83 => _83.includes, 'call', _84 => _84("not found")]))) {
|
|
459
435
|
const errorMessage = `An unexpected error occured while checking for existing dist-tags:
|
|
460
436
|
|
|
461
|
-
${_optionalChain([stdoutData, 'optionalAccess',
|
|
462
|
-
` : ""}${_optionalChain([stdoutData, 'optionalAccess',
|
|
437
|
+
${_optionalChain([stdoutData, 'optionalAccess', _85 => _85.error, 'optionalAccess', _86 => _86.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _87 => _87.error, 'optionalAccess', _88 => _88.summary])}${_optionalChain([stdoutData, 'optionalAccess', _89 => _89.error, 'optionalAccess', _90 => _90.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _91 => _91.error, 'optionalAccess', _92 => _92.code])})` : ""}
|
|
438
|
+
` : ""}${_optionalChain([stdoutData, 'optionalAccess', _93 => _93.error, 'optionalAccess', _94 => _94.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _95 => _95.error, 'optionalAccess', _96 => _96.detail])}
|
|
463
439
|
` : ""}`;
|
|
464
440
|
github.error(errorMessage);
|
|
465
441
|
return { success: false };
|
|
@@ -498,11 +474,11 @@ Execution response: ${result.toString()}` : ""}`
|
|
|
498
474
|
return { success: true };
|
|
499
475
|
} catch (err) {
|
|
500
476
|
try {
|
|
501
|
-
const stdoutData = JSON.parse(_optionalChain([err, 'access',
|
|
477
|
+
const stdoutData = JSON.parse(_optionalChain([err, 'access', _97 => _97.stdout, 'optionalAccess', _98 => _98.toString, 'call', _99 => _99()]) || "{}");
|
|
502
478
|
const errorMessage = `An error occurred while publishing the npm package:
|
|
503
479
|
|
|
504
|
-
${_optionalChain([stdoutData, 'optionalAccess',
|
|
505
|
-
` : ""}${_optionalChain([stdoutData, 'optionalAccess',
|
|
480
|
+
${_optionalChain([stdoutData, 'optionalAccess', _100 => _100.error, 'optionalAccess', _101 => _101.summary]) ? `Summary: ${_optionalChain([stdoutData, 'optionalAccess', _102 => _102.error, 'optionalAccess', _103 => _103.summary])}${_optionalChain([stdoutData, 'optionalAccess', _104 => _104.error, 'optionalAccess', _105 => _105.code]) ? ` (${_optionalChain([stdoutData, 'optionalAccess', _106 => _106.error, 'optionalAccess', _107 => _107.code])})` : ""}
|
|
481
|
+
` : ""}${_optionalChain([stdoutData, 'optionalAccess', _108 => _108.error, 'optionalAccess', _109 => _109.detail]) ? `Detail: ${_optionalChain([stdoutData, 'optionalAccess', _110 => _110.error, 'optionalAccess', _111 => _111.detail])}
|
|
506
482
|
` : ""}`;
|
|
507
483
|
github.error(errorMessage);
|
|
508
484
|
return { success: false };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=a9def7e06ce25c19654987ab91979289197bf4d3e7e124c514a4487c3e8d68c6__ef1fef24ce052691cc8bddab0b397938/node_modules/tsup/assets/esm_shims.js
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import path from "path";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-BVY6TUTT.mjs";
|
|
4
|
+
import {
|
|
5
|
+
writeInfo
|
|
6
|
+
} from "./chunk-45CW7OJB.mjs";
|
|
7
|
+
import {
|
|
8
|
+
joinPaths
|
|
9
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
10
|
+
|
|
11
|
+
// src/executors/esbuild/executor.ts
|
|
12
|
+
import { createJiti } from "jiti";
|
|
13
|
+
async function esbuildExecutorFn(options, context, config) {
|
|
14
|
+
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
15
|
+
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
|
|
16
|
+
throw new Error(
|
|
17
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
const jiti = createJiti(config?.workspaceRoot || process.cwd(), {
|
|
21
|
+
fsCache: config?.skipCache ? false : joinPaths(
|
|
22
|
+
config?.workspaceRoot || process.cwd(),
|
|
23
|
+
config?.directories?.cache || "node_modules/.cache/storm",
|
|
24
|
+
"jiti"
|
|
25
|
+
),
|
|
26
|
+
interopDefault: true
|
|
27
|
+
});
|
|
28
|
+
const { build } = await jiti.import(jiti.esmResolve("@storm-software/esbuild"));
|
|
29
|
+
await build({
|
|
30
|
+
...options,
|
|
31
|
+
projectRoot: (
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
33
|
+
context.projectsConfigurations.projects?.[context.projectName].root
|
|
34
|
+
),
|
|
35
|
+
name: context.projectName,
|
|
36
|
+
sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot,
|
|
37
|
+
format: options.format,
|
|
38
|
+
platform: options.platform
|
|
39
|
+
});
|
|
40
|
+
return {
|
|
41
|
+
success: true
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
var executor_default = withRunExecutor(
|
|
45
|
+
"Storm ESBuild build",
|
|
46
|
+
esbuildExecutorFn,
|
|
47
|
+
{
|
|
48
|
+
skipReadingConfig: false,
|
|
49
|
+
hooks: {
|
|
50
|
+
applyDefaultOptions: async (options) => {
|
|
51
|
+
options.entry ??= ["src/index.ts"];
|
|
52
|
+
options.outputPath ??= "dist/{projectRoot}";
|
|
53
|
+
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
54
|
+
return options;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
esbuildExecutorFn,
|
|
62
|
+
executor_default
|
|
63
|
+
};
|
|
@@ -14,51 +14,14 @@ import {
|
|
|
14
14
|
joinPaths
|
|
15
15
|
} from "./chunk-TBW5MCN6.mjs";
|
|
16
16
|
|
|
17
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
18
|
-
import { exec } from "node:child_process";
|
|
19
|
-
|
|
20
|
-
// ../npm-tools/src/constants.ts
|
|
21
|
-
var DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
22
|
-
|
|
23
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
24
|
-
async function getRegistry(executable = "npm") {
|
|
25
|
-
return new Promise((resolve, reject) => {
|
|
26
|
-
exec(`${executable} config get registry`, (error, stdout, stderr) => {
|
|
27
|
-
if (error && !error.message.toLowerCase().trim().startsWith("npm warn")) {
|
|
28
|
-
return reject(error);
|
|
29
|
-
}
|
|
30
|
-
if (stderr && !stderr.toLowerCase().trim().startsWith("npm warn")) {
|
|
31
|
-
return reject(stderr);
|
|
32
|
-
}
|
|
33
|
-
return resolve(stdout.trim());
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
async function getNpmRegistry() {
|
|
38
|
-
if (process.env.STORM_REGISTRY_NPM) {
|
|
39
|
-
return process.env.STORM_REGISTRY_NPM;
|
|
40
|
-
}
|
|
41
|
-
const workspaceConfig = await getConfig();
|
|
42
|
-
if (workspaceConfig?.registry?.npm) {
|
|
43
|
-
return workspaceConfig?.registry?.npm;
|
|
44
|
-
}
|
|
45
|
-
return DEFAULT_NPM_REGISTRY;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
49
|
-
import {
|
|
50
|
-
createProjectGraphAsync,
|
|
51
|
-
readCachedProjectGraph
|
|
52
|
-
} from "@nx/devkit";
|
|
53
|
-
import { existsSync as existsSync2 } from "node:fs";
|
|
54
|
-
import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
55
|
-
import { format } from "prettier";
|
|
56
|
-
|
|
57
17
|
// ../npm-tools/src/helpers/get-version.ts
|
|
58
18
|
import { exec as exec2 } from "node:child_process";
|
|
59
19
|
import { valid } from "semver";
|
|
60
20
|
import stripAnsi from "strip-ansi";
|
|
61
21
|
|
|
22
|
+
// ../npm-tools/src/helpers/get-registry.ts
|
|
23
|
+
import { exec } from "node:child_process";
|
|
24
|
+
|
|
62
25
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
63
26
|
import { coerce, gt, valid as valid2 } from "semver";
|
|
64
27
|
|
|
@@ -119,6 +82,13 @@ async function getCatalog(workspaceRoot = findWorkspaceRoot(process.cwd())) {
|
|
|
119
82
|
}
|
|
120
83
|
|
|
121
84
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
85
|
+
import {
|
|
86
|
+
createProjectGraphAsync,
|
|
87
|
+
readCachedProjectGraph
|
|
88
|
+
} from "@nx/devkit";
|
|
89
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
90
|
+
import { readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
|
|
91
|
+
import { format } from "prettier";
|
|
122
92
|
async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = findWorkspaceRoot(packageRoot)) {
|
|
123
93
|
const packageJsonPath = joinPaths(packageRoot, "package.json");
|
|
124
94
|
const packageJsonFile = await readFile2(packageJsonPath, "utf8");
|
|
@@ -243,6 +213,7 @@ async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = f
|
|
|
243
213
|
}
|
|
244
214
|
|
|
245
215
|
// src/executors/npm-publish/executor.ts
|
|
216
|
+
import { createJiti } from "jiti";
|
|
246
217
|
import { execSync } from "node:child_process";
|
|
247
218
|
import { readFile as readFile3, writeFile as writeFile3 } from "node:fs/promises";
|
|
248
219
|
import { format as format2 } from "prettier";
|
|
@@ -271,6 +242,11 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
271
242
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
272
243
|
context.projectsConfigurations.projects[context.projectName].root
|
|
273
244
|
) : packageRoot;
|
|
245
|
+
const jiti = createJiti(context.root, {
|
|
246
|
+
fsCache: joinPaths(context.root, "node_modules/.cache/storm", "jiti"),
|
|
247
|
+
interopDefault: true
|
|
248
|
+
});
|
|
249
|
+
const { getNpmRegistry, getRegistry: getRegistry2 } = await jiti.import(jiti.esmResolve("@storm-software/npm-tools/helpers"));
|
|
274
250
|
const packageJsonPath = joinPaths(packageRoot, "package.json");
|
|
275
251
|
const packageJsonFile = await readFile3(packageJsonPath, "utf8");
|
|
276
252
|
if (!packageJsonFile) {
|
|
@@ -332,7 +308,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
332
308
|
`npm view ${packageName} versions dist-tags --json`
|
|
333
309
|
];
|
|
334
310
|
const registry = await Promise.resolve(
|
|
335
|
-
options.registry ?? (await
|
|
311
|
+
options.registry ?? (await getRegistry2() || getNpmRegistry())
|
|
336
312
|
);
|
|
337
313
|
if (registry) {
|
|
338
314
|
npmPublishCommandSegments.push(`--registry="${registry}" `);
|
|
@@ -342,7 +318,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
342
318
|
npmPublishCommandSegments.push(`--otp="${options.otp}" `);
|
|
343
319
|
}
|
|
344
320
|
let token;
|
|
345
|
-
if (!options.otp) {
|
|
321
|
+
if (!options.otp && registry) {
|
|
346
322
|
token = await github.getIDToken(
|
|
347
323
|
`npm:${registry.replace(/^https?:\/\//, "")}`
|
|
348
324
|
);
|