@lerna-lite/publish 1.17.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -43
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/lib/create-temp-licenses.d.ts +0 -5
- package/dist/lib/create-temp-licenses.js +7 -21
- package/dist/lib/create-temp-licenses.js.map +1 -1
- package/dist/lib/fetch-config.d.ts +0 -6
- package/dist/lib/fetch-config.js +3 -14
- package/dist/lib/fetch-config.js.map +1 -1
- package/dist/lib/get-current-sha.d.ts +0 -4
- package/dist/lib/get-current-sha.js +6 -15
- package/dist/lib/get-current-sha.js.map +1 -1
- package/dist/lib/get-current-tags.d.ts +0 -6
- package/dist/lib/get-current-tags.js +7 -23
- package/dist/lib/get-current-tags.js.map +1 -1
- package/dist/lib/get-npm-username.d.ts +0 -5
- package/dist/lib/get-npm-username.js +12 -27
- package/dist/lib/get-npm-username.js.map +1 -1
- package/dist/lib/get-packages-without-license.d.ts +0 -6
- package/dist/lib/get-packages-without-license.js +3 -16
- package/dist/lib/get-packages-without-license.js.map +1 -1
- package/dist/lib/get-packed.d.ts +1 -1
- package/dist/lib/get-packed.js +12 -17
- package/dist/lib/get-packed.js.map +1 -1
- package/dist/lib/get-profile-data.d.ts +0 -5
- package/dist/lib/get-profile-data.js +5 -17
- package/dist/lib/get-profile-data.js.map +1 -1
- package/dist/lib/get-tagged-packages.d.ts +0 -7
- package/dist/lib/get-tagged-packages.js +8 -23
- package/dist/lib/get-tagged-packages.js.map +1 -1
- package/dist/lib/get-two-factor-auth-required.d.ts +0 -5
- package/dist/lib/get-two-factor-auth-required.js +8 -23
- package/dist/lib/get-two-factor-auth-required.js.map +1 -1
- package/dist/lib/get-unpublished-packages.d.ts +0 -6
- package/dist/lib/get-unpublished-packages.js +13 -29
- package/dist/lib/get-unpublished-packages.js.map +1 -1
- package/dist/lib/get-whoami.d.ts +0 -5
- package/dist/lib/get-whoami.js +4 -14
- package/dist/lib/get-whoami.js.map +1 -1
- package/dist/lib/git-checkout.d.ts +0 -6
- package/dist/lib/git-checkout.js +5 -16
- package/dist/lib/git-checkout.js.map +1 -1
- package/dist/lib/index.d.ts +19 -19
- package/dist/lib/index.js +19 -22
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/log-packed.d.ts +1 -1
- package/dist/lib/log-packed.js +28 -36
- package/dist/lib/log-packed.js.map +1 -1
- package/dist/lib/npm-dist-tag.d.ts +1 -24
- package/dist/lib/npm-dist-tag.js +18 -60
- package/dist/lib/npm-dist-tag.js.map +1 -1
- package/dist/lib/npm-publish.d.ts +1 -8
- package/dist/lib/npm-publish.js +18 -50
- package/dist/lib/npm-publish.js.map +1 -1
- package/dist/lib/override-publish-config.d.ts +0 -4
- package/dist/lib/override-publish-config.js +4 -13
- package/dist/lib/override-publish-config.js.map +1 -1
- package/dist/lib/pack-directory.d.ts +1 -7
- package/dist/lib/pack-directory.js +24 -42
- package/dist/lib/pack-directory.js.map +1 -1
- package/dist/lib/remove-temp-licenses.d.ts +0 -4
- package/dist/lib/remove-temp-licenses.js +4 -13
- package/dist/lib/remove-temp-licenses.js.map +1 -1
- package/dist/lib/verify-npm-package-access.d.ts +0 -7
- package/dist/lib/verify-npm-package-access.js +11 -32
- package/dist/lib/verify-npm-package-access.js.map +1 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +1 -2
- package/dist/publish-command.d.ts +0 -7
- package/dist/publish-command.js +119 -274
- package/dist/publish-command.js.map +1 -1
- package/package.json +40 -24
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# @lerna-lite/publish
|
|
6
6
|
|
|
7
|
-
## (`lerna publish`) - Publish command ☁️
|
|
7
|
+
## (`lerna publish`) - Publish command [optional] ☁️
|
|
8
8
|
|
|
9
9
|
Lerna-Lite Publish command, publish package(s) in the current project
|
|
10
10
|
|
|
@@ -13,8 +13,7 @@ Lerna-Lite Publish command, publish package(s) in the current project
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
|
|
17
|
-
npm install @lerna-lite/cli -D -W
|
|
16
|
+
npm install @lerna-lite/publish -D -W
|
|
18
17
|
|
|
19
18
|
# then use it (see usage below)
|
|
20
19
|
lerna publish
|
|
@@ -72,7 +71,7 @@ This is useful when a previous `lerna publish` failed to publish all packages to
|
|
|
72
71
|
- [semver `--bump from-package`](#semver--bump-from-package)
|
|
73
72
|
- [Options](#options)
|
|
74
73
|
- [`--canary`](#--canary)
|
|
75
|
-
- [`--cleanup-temp-files`](#--cleanup-temp-files)
|
|
74
|
+
- [`--cleanup-temp-files`](#--cleanup-temp-files)
|
|
76
75
|
- [`--contents <dir>`](#--contents-dir)
|
|
77
76
|
- [`--dist-tag <tag>`](#--dist-tag-tag)
|
|
78
77
|
- [`--force-publish`](#--force-publish)
|
|
@@ -86,17 +85,15 @@ This is useful when a previous `lerna publish` failed to publish all packages to
|
|
|
86
85
|
- [`--otp`](#--otp)
|
|
87
86
|
- [`--preid`](#--preid)
|
|
88
87
|
- [`--pre-dist-tag <tag>`](#--pre-dist-tag-tag)
|
|
89
|
-
- [`--remove-package-fields <fields>`](#--remove-package-fields-fields)
|
|
88
|
+
- [`--remove-package-fields <fields>`](#--remove-package-fields-fields)
|
|
90
89
|
- [`--registry <url>`](#--registry-url)
|
|
91
90
|
- [`--tag-version-prefix`](#--tag-version-prefix)
|
|
92
91
|
- [`--temp-tag`](#--temp-tag)
|
|
93
|
-
- [`--summary-file <dir>`](#--summary-file)
|
|
92
|
+
- [`--summary-file <dir>`](#--summary-file)
|
|
94
93
|
- [`--verify-access`](#--verify-access)
|
|
95
94
|
- [`--yes`](#--yes)
|
|
96
95
|
- [`publishConfig` Overrides](#publishconfig-overrides)
|
|
97
96
|
- [`workspace:` protocol](#workspace-protocol)
|
|
98
|
-
- [`--workspace-strict-match (default)`](#with---workspace-strict-match-default)
|
|
99
|
-
- [`--no-workspace-strict-match`](#with---no-workspace-strict-match-deprecated)
|
|
100
97
|
|
|
101
98
|
### `--canary`
|
|
102
99
|
|
|
@@ -554,11 +551,9 @@ So for example, if we have `foo`, `bar`, `qar`, `zoo` in the workspace and they
|
|
|
554
551
|
|
|
555
552
|
> **Note** semver range with an operator (ie `workspace:>=2.0.0`) are also supported but will never be mutated.
|
|
556
553
|
|
|
557
|
-
####
|
|
554
|
+
#### versions that will be published
|
|
558
555
|
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
_this is the default and is usually what most user will want to use since it will strictly adhere to pnpm/yarn workspace protocol._
|
|
556
|
+
The library is doing a strict match and it will transform and publish the following:
|
|
562
557
|
|
|
563
558
|
```json
|
|
564
559
|
{
|
|
@@ -571,23 +566,6 @@ _this is the default and is usually what most user will want to use since it wil
|
|
|
571
566
|
}
|
|
572
567
|
```
|
|
573
568
|
|
|
574
|
-
#### with `--no-workspace-strict-match` (deprecated)
|
|
575
|
-
|
|
576
|
-
When strict match is disabled, it will be transformed and publish with the following:
|
|
577
|
-
|
|
578
|
-
_you would rarely want to disable the strict match, in fact this option will be removed entirely in a future release, this flag was created for the sole purpose of making it compatible with previous Lerna-Lite version `1.2.0`. When disabled, in most cases Lerna will assume that the caret (^) is needed unless the option [--exact](https://github.com/lerna-lite/lerna-lite/tree/main/packages/version#--exact) is provided and by doing so will not be strictly following pnpm/yarn workspace protocol and for that reason is not recommended._
|
|
579
|
-
|
|
580
|
-
```json
|
|
581
|
-
{
|
|
582
|
-
"dependencies": {
|
|
583
|
-
"foo": "^1.5.0",
|
|
584
|
-
"bar": "^1.5.0",
|
|
585
|
-
"qar": "^1.5.0",
|
|
586
|
-
"zoo": "^1.5.0"
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
```
|
|
590
|
-
|
|
591
569
|
## FAQ
|
|
592
570
|
|
|
593
571
|
### Recovering from a network error
|
|
@@ -595,17 +573,3 @@ _you would rarely want to disable the strict match, in fact this option will be
|
|
|
595
573
|
In the case that some packages were successfully published and others were not, `lerna publish` may have left the repository in an inconsistent state with some changed files. To recover from this, reset any extraneous local changes from the failed run to get back to a clean working tree. Then, retry the same `lerna publish` command. Lerna will attempt to publish all of the packages again, but will recognize those that have already been published and skip over them with a warning.
|
|
596
574
|
|
|
597
575
|
If you used the `lerna publish` command without positional arguments to select a new version for the packages, then you can run `lerna publish from-git` to retry publishing that same already-tagged version instead of having to bump the version again while retrying.
|
|
598
|
-
|
|
599
|
-
## Deprecated Options
|
|
600
|
-
|
|
601
|
-
### `--no-verify-access`
|
|
602
|
-
|
|
603
|
-
The legacy preemptive access verification is now off by default, so `--no-verify-access` is not needed. Requests will fail with appropriate errors when not authorized correctly. To opt-in to the legacy access verification, use [`--verify-access`](#--verify-access).
|
|
604
|
-
|
|
605
|
-
### `--skip-npm`
|
|
606
|
-
|
|
607
|
-
Call [`lerna version`](https://github.com/lerna/lerna/tree/main/commands/version#readme) directly, instead.
|
|
608
|
-
|
|
609
|
-
### `--no-workspace-strict-match`
|
|
610
|
-
|
|
611
|
-
Providing --no-workspace-strict-match is deprecated and will be removed in future version, we will make `workspace:` protocol strict matching in every case.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './lib';
|
|
2
|
-
export * from './models';
|
|
3
|
-
export * from './publish-command';
|
|
1
|
+
export * from './lib/index.js';
|
|
2
|
+
export * from './models/index.js';
|
|
3
|
+
export * from './publish-command.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
tslib_1.__exportStar(require("./lib"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./models"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./publish-command"), exports);
|
|
1
|
+
export * from './lib/index.js';
|
|
2
|
+
export * from './models/index.js';
|
|
3
|
+
export * from './publish-command.js';
|
|
7
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { Package } from '@lerna-lite/core';
|
|
2
|
-
/**
|
|
3
|
-
* Create temporary license files.
|
|
4
|
-
* @param {string} srcLicensePath
|
|
5
|
-
* @param {Packages[]} packagesToBeLicensed
|
|
6
|
-
*/
|
|
7
2
|
export declare function createTempLicenses(srcLicensePath: string, packagesToBeLicensed: Package[]): Promise<any>;
|
|
@@ -1,31 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
-
const p_map_1 = tslib_1.__importDefault(require("p-map"));
|
|
8
|
-
/**
|
|
9
|
-
* Create temporary license files.
|
|
10
|
-
* @param {string} srcLicensePath
|
|
11
|
-
* @param {Packages[]} packagesToBeLicensed
|
|
12
|
-
*/
|
|
13
|
-
function createTempLicenses(srcLicensePath, packagesToBeLicensed) {
|
|
1
|
+
import { copy } from 'fs-extra/esm';
|
|
2
|
+
import { basename, join } from 'node:path';
|
|
3
|
+
import pMap from 'p-map';
|
|
4
|
+
export function createTempLicenses(srcLicensePath, packagesToBeLicensed) {
|
|
14
5
|
if (!srcLicensePath || !packagesToBeLicensed.length) {
|
|
15
6
|
return Promise.resolve();
|
|
16
7
|
}
|
|
17
|
-
|
|
18
|
-
const licenseFileName = path_1.default.basename(srcLicensePath);
|
|
8
|
+
const licenseFileName = basename(srcLicensePath);
|
|
19
9
|
const options = {
|
|
20
|
-
// make an effort to keep package contents stable over time
|
|
21
10
|
preserveTimestamps: process.arch !== 'ia32',
|
|
22
|
-
// (give up on 32-bit architecture to avoid fs-extra warning)
|
|
23
11
|
};
|
|
24
|
-
// store target path for removal later
|
|
25
12
|
packagesToBeLicensed.forEach((pkg) => {
|
|
26
|
-
pkg.licensePath =
|
|
13
|
+
pkg.licensePath = join(pkg.contents, licenseFileName);
|
|
27
14
|
});
|
|
28
|
-
return (
|
|
15
|
+
return pMap(packagesToBeLicensed, (pkg) => copy(srcLicensePath, pkg.licensePath, options));
|
|
29
16
|
}
|
|
30
|
-
exports.createTempLicenses = createTempLicenses;
|
|
31
17
|
//# sourceMappingURL=create-temp-licenses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-temp-licenses.js","sourceRoot":"","sources":["../../src/lib/create-temp-licenses.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-temp-licenses.js","sourceRoot":"","sources":["../../src/lib/create-temp-licenses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,IAAI,MAAM,OAAO,CAAC;AASzB,MAAM,UAAU,kBAAkB,CAAC,cAAsB,EAAE,oBAA+B;IACxF,IAAI,CAAC,cAAc,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE;QACnD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;KAC1B;IAGD,MAAM,eAAe,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;IACjD,MAAM,OAAO,GAAG;QAEd,kBAAkB,EAAE,OAAO,CAAC,IAAI,KAAK,MAAM;KAE5C,CAAC;IAGF,oBAAoB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,oBAAoB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AAC7F,CAAC"}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { FetchConfig } from '@lerna-lite/core';
|
|
2
|
-
/**
|
|
3
|
-
* Create a merged options object suitable for npm-registry-fetch.
|
|
4
|
-
* @param {{ [key: string]: unknown }} options
|
|
5
|
-
* @param {Partial<FetchConfig>} [extra]
|
|
6
|
-
* @returns {FetchConfig}
|
|
7
|
-
*/
|
|
8
2
|
export declare function getFetchConfig(options?: {
|
|
9
3
|
[key: string]: any;
|
|
10
4
|
}, extra?: Partial<FetchConfig>): FetchConfig;
|
package/dist/lib/fetch-config.js
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getFetchConfig = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const npmlog_1 = tslib_1.__importDefault(require("npmlog"));
|
|
6
|
-
/**
|
|
7
|
-
* Create a merged options object suitable for npm-registry-fetch.
|
|
8
|
-
* @param {{ [key: string]: unknown }} options
|
|
9
|
-
* @param {Partial<FetchConfig>} [extra]
|
|
10
|
-
* @returns {FetchConfig}
|
|
11
|
-
*/
|
|
12
|
-
function getFetchConfig(options, extra) {
|
|
1
|
+
import log from 'npmlog';
|
|
2
|
+
export function getFetchConfig(options, extra) {
|
|
13
3
|
return {
|
|
14
|
-
log
|
|
4
|
+
log,
|
|
15
5
|
...options,
|
|
16
6
|
...extra,
|
|
17
7
|
};
|
|
18
8
|
}
|
|
19
|
-
exports.getFetchConfig = getFetchConfig;
|
|
20
9
|
//# sourceMappingURL=fetch-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-config.js","sourceRoot":"","sources":["../../src/lib/fetch-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-config.js","sourceRoot":"","sources":["../../src/lib/fetch-config.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,QAAQ,CAAC;AAQzB,MAAM,UAAU,cAAc,CAAC,OAAgC,EAAE,KAA4B;IAC3F,OAAO;QACL,GAAG;QACH,GAAG,OAAO;QACV,GAAG,KAAK;KACM,CAAC;AACnB,CAAC"}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Retrieve current SHA from git.
|
|
9
|
-
* @param {import("@lerna/child-process").ExecOpts} opts
|
|
10
|
-
*/
|
|
11
|
-
function getCurrentSHA(opts, dryRun = false) {
|
|
12
|
-
npmlog_1.default.silly('getCurrentSHA', '');
|
|
13
|
-
const sha = (0, core_1.execSync)('git', ['rev-parse', 'HEAD'], opts, dryRun);
|
|
14
|
-
npmlog_1.default.verbose('getCurrentSHA', sha);
|
|
1
|
+
import log from 'npmlog';
|
|
2
|
+
import { execSync } from '@lerna-lite/core';
|
|
3
|
+
export function getCurrentSHA(opts, dryRun = false) {
|
|
4
|
+
log.silly('getCurrentSHA', '');
|
|
5
|
+
const sha = execSync('git', ['rev-parse', 'HEAD'], opts, dryRun);
|
|
6
|
+
log.verbose('getCurrentSHA', sha);
|
|
15
7
|
return sha;
|
|
16
8
|
}
|
|
17
|
-
exports.getCurrentSHA = getCurrentSHA;
|
|
18
9
|
//# sourceMappingURL=get-current-sha.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-sha.js","sourceRoot":"","sources":["../../src/lib/get-current-sha.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-current-sha.js","sourceRoot":"","sources":["../../src/lib/get-current-sha.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,QAAQ,CAAC;AACzB,OAAO,EAAY,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,UAAU,aAAa,CAAC,IAAc,EAAE,MAAM,GAAG,KAAK;IAC1D,GAAG,CAAC,KAAK,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAE/B,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACjE,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IAElC,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import { ExecOpts } from '@lerna-lite/core';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve a list of git tags pointing to the current HEAD that match the provided pattern.
|
|
4
|
-
* @param {import("@lerna/child-process").ExecOpts} execOpts
|
|
5
|
-
* @param {string} matchingPattern
|
|
6
|
-
* @returns {string[]}
|
|
7
|
-
*/
|
|
8
2
|
export declare function getCurrentTags(execOpts: ExecOpts, matchingPattern: string, dryRun?: boolean): Promise<string[]>;
|
|
@@ -1,33 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const npm_package_arg_1 = tslib_1.__importDefault(require("npm-package-arg"));
|
|
7
|
-
const core_1 = require("@lerna-lite/core");
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve a list of git tags pointing to the current HEAD that match the provided pattern.
|
|
10
|
-
* @param {import("@lerna/child-process").ExecOpts} execOpts
|
|
11
|
-
* @param {string} matchingPattern
|
|
12
|
-
* @returns {string[]}
|
|
13
|
-
*/
|
|
14
|
-
function getCurrentTags(execOpts, matchingPattern, dryRun = false) {
|
|
15
|
-
npmlog_1.default.silly('getCurrentTags', 'matching %j', matchingPattern);
|
|
1
|
+
import log from 'npmlog';
|
|
2
|
+
import npa from 'npm-package-arg';
|
|
3
|
+
import { exec } from '@lerna-lite/core';
|
|
4
|
+
export function getCurrentTags(execOpts, matchingPattern, dryRun = false) {
|
|
5
|
+
log.silly('getCurrentTags', 'matching %j', matchingPattern);
|
|
16
6
|
const opts = Object.assign({}, execOpts, {
|
|
17
|
-
// don't reject due to non-zero exit code when there are no results
|
|
18
7
|
reject: false,
|
|
19
8
|
});
|
|
20
|
-
return
|
|
9
|
+
return exec('git', ['tag', '--sort', 'version:refname', '--points-at', 'HEAD', '--list', matchingPattern], opts, dryRun).then((result) => {
|
|
21
10
|
const lines = result.stdout.split('\n').filter(Boolean);
|
|
22
11
|
if (matchingPattern === '*@*') {
|
|
23
|
-
|
|
24
|
-
// but embeds the package name in the tag "prefix"
|
|
25
|
-
return lines.map((tag) => (0, npm_package_arg_1.default)(tag).name);
|
|
12
|
+
return lines.map((tag) => npa(tag).name);
|
|
26
13
|
}
|
|
27
|
-
// "fixed" mode can have a custom tagVersionPrefix,
|
|
28
|
-
// but it doesn't really matter as it is not used to extract package names
|
|
29
14
|
return lines;
|
|
30
15
|
});
|
|
31
16
|
}
|
|
32
|
-
exports.getCurrentTags = getCurrentTags;
|
|
33
17
|
//# sourceMappingURL=get-current-tags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-tags.js","sourceRoot":"","sources":["../../src/lib/get-current-tags.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-current-tags.js","sourceRoot":"","sources":["../../src/lib/get-current-tags.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,QAAQ,CAAC;AACzB,OAAO,GAAG,MAAM,iBAAiB,CAAC;AAClC,OAAO,EAAE,IAAI,EAAY,MAAM,kBAAkB,CAAC;AAQlD,MAAM,UAAU,cAAc,CAAC,QAAkB,EAAE,eAAuB,EAAE,MAAM,GAAG,KAAK;IACxF,GAAG,CAAC,KAAK,CAAC,gBAAgB,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;IAE5D,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE;QAEvC,MAAM,EAAE,KAAK;KACd,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,CAC3H,CAAC,MAAM,EAAE,EAAE;QACT,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAExD,IAAI,eAAe,KAAK,KAAK,EAAE;YAG7B,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;SAC1C;QAID,OAAO,KAAK,CAAC;IACf,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { FetchConfig } from '@lerna-lite/core';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve username of logged-in user.
|
|
4
|
-
* @param {import("./fetch-config").FetchConfig} options
|
|
5
|
-
* @returns {Promise<string>}
|
|
6
|
-
*/
|
|
7
2
|
export declare function getNpmUsername(options: FetchConfig): Promise<string | undefined>;
|
|
@@ -1,53 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const core_1 = require("@lerna-lite/core");
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve username of logged-in user.
|
|
10
|
-
* @param {import("./fetch-config").FetchConfig} options
|
|
11
|
-
* @returns {Promise<string>}
|
|
12
|
-
*/
|
|
13
|
-
function getNpmUsername(options) {
|
|
14
|
-
const opts = (0, fetch_config_1.getFetchConfig)(options, {
|
|
15
|
-
// don't wait forever for third-party failures to be dealt with
|
|
1
|
+
import { ValidationError } from '@lerna-lite/core';
|
|
2
|
+
import { getFetchConfig } from './fetch-config.js';
|
|
3
|
+
import { getProfileData } from './get-profile-data.js';
|
|
4
|
+
import { getWhoAmI } from './get-whoami.js';
|
|
5
|
+
export function getNpmUsername(options) {
|
|
6
|
+
const opts = getFetchConfig(options, {
|
|
16
7
|
fetchRetries: 0,
|
|
17
8
|
});
|
|
18
9
|
opts.log.info('', 'Verifying npm credentials');
|
|
19
|
-
return
|
|
10
|
+
return getProfileData(opts)
|
|
20
11
|
.catch((err) => {
|
|
21
|
-
// Many third-party registries do not implement the user endpoint
|
|
22
|
-
// Legacy npm Enterprise returns E500 instead of E404
|
|
23
12
|
if (err.code === 'E500' || err.code === 'E404') {
|
|
24
|
-
return
|
|
13
|
+
return getWhoAmI(opts);
|
|
25
14
|
}
|
|
26
|
-
// re-throw 401 Unauthorized (and all other unexpected errors)
|
|
27
15
|
throw err;
|
|
28
16
|
})
|
|
29
17
|
.then(success, failure);
|
|
30
18
|
function success(result) {
|
|
31
19
|
opts.log.silly('get npm username', 'received %j', result);
|
|
32
20
|
if (!result.username) {
|
|
33
|
-
throw new
|
|
21
|
+
throw new ValidationError('ENEEDAUTH', 'You must be logged in to publish packages. Use `npm login` and try again.');
|
|
34
22
|
}
|
|
35
23
|
return result.username;
|
|
36
24
|
}
|
|
37
|
-
// catch request errors, not auth expired errors
|
|
38
25
|
function failure(err) {
|
|
39
|
-
// Log the error cleanly to stderr
|
|
40
26
|
opts.log.pause();
|
|
41
|
-
console.error(err.message);
|
|
27
|
+
console.error(err.message);
|
|
42
28
|
opts.log.resume();
|
|
43
29
|
if (opts.registry === 'https://registry.npmjs.org/') {
|
|
44
30
|
if (err.code === 'E403') {
|
|
45
|
-
throw new
|
|
31
|
+
throw new ValidationError('ENEEDAUTH', 'Access verification failed. Ensure that your npm access token has both read and write access, or remove the verifyAccess option to skip this verification. Note that npm automation tokens do NOT have read access (https://docs.npmjs.com/creating-and-viewing-access-tokens).');
|
|
46
32
|
}
|
|
47
|
-
throw new
|
|
33
|
+
throw new ValidationError('EWHOAMI', 'Authentication error. Use `npm whoami` to troubleshoot.');
|
|
48
34
|
}
|
|
49
35
|
opts.log.warn('EWHOAMI', 'Unable to determine npm username from third-party registry, this command will likely fail soon!');
|
|
50
36
|
}
|
|
51
37
|
}
|
|
52
|
-
exports.getNpmUsername = getNpmUsername;
|
|
53
38
|
//# sourceMappingURL=get-npm-username.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-npm-username.js","sourceRoot":"","sources":["../../src/lib/get-npm-username.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-npm-username.js","sourceRoot":"","sources":["../../src/lib/get-npm-username.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAO5C,MAAM,UAAU,cAAc,CAAC,OAAoB;IACjD,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,EAAE;QAEnC,YAAY,EAAE,CAAC;KAChB,CAAC,CAAC;IAEH,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,2BAA2B,CAAC,CAAC;IAE/C,OAAO,cAAc,CAAC,IAAI,CAAC;SACxB,KAAK,CAAC,CAAC,GAAQ,EAAE,EAAE;QAGlB,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,EAAE;YAC9C,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;SACxB;QAGD,MAAM,GAAG,CAAC;IACZ,CAAC,CAAC;SACD,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAE1B,SAAS,OAAO,CAAC,MAAW;QAC1B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kBAAkB,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;QAE1D,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YACpB,MAAM,IAAI,eAAe,CAAC,WAAW,EAAE,2EAA2E,CAAC,CAAC;SACrH;QAED,OAAO,MAAM,CAAC,QAAQ,CAAC;IACzB,CAAC;IAGD,SAAS,OAAO,CAAC,GAAQ;QAEvB,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;QACjB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC3B,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QAElB,IAAI,IAAI,CAAC,QAAQ,KAAK,6BAA6B,EAAE;YACnD,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,EAAE;gBACvB,MAAM,IAAI,eAAe,CACvB,WAAW,EACX,iRAAiR,CAClR,CAAC;aACH;YAED,MAAM,IAAI,eAAe,CAAC,SAAS,EAAE,yDAAyD,CAAC,CAAC;SACjG;QAED,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,iGAAiG,CAAC,CAAC;IAC9H,CAAC;AACH,CAAC"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import { Package, Project } from '@lerna-lite/core';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve a list of packages that lack a license file.
|
|
4
|
-
* @param {Project} project
|
|
5
|
-
* @param {Package[]} packagesToPublish
|
|
6
|
-
* @returns {Package[]}
|
|
7
|
-
*/
|
|
8
2
|
export declare function getPackagesWithoutLicense(project: Project, packagesToPublish: Package[]): Promise<Package[]>;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getPackagesWithoutLicense = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
|
-
/**
|
|
7
|
-
* Retrieve a list of packages that lack a license file.
|
|
8
|
-
* @param {Project} project
|
|
9
|
-
* @param {Package[]} packagesToPublish
|
|
10
|
-
* @returns {Package[]}
|
|
11
|
-
*/
|
|
12
|
-
function getPackagesWithoutLicense(project, packagesToPublish) {
|
|
1
|
+
import { dirname } from 'node:path';
|
|
2
|
+
export function getPackagesWithoutLicense(project, packagesToPublish) {
|
|
13
3
|
return project.getPackageLicensePaths().then((licensePaths) => {
|
|
14
|
-
|
|
15
|
-
// it also dedupes package locations, since we don't care about duplicate license files
|
|
16
|
-
const licensed = new Set(licensePaths.map((lp) => path_1.default.dirname(lp)));
|
|
4
|
+
const licensed = new Set(licensePaths.map((lp) => dirname(lp)));
|
|
17
5
|
return packagesToPublish.filter((pkg) => !licensed.has(pkg.location));
|
|
18
6
|
});
|
|
19
7
|
}
|
|
20
|
-
exports.getPackagesWithoutLicense = getPackagesWithoutLicense;
|
|
21
8
|
//# sourceMappingURL=get-packages-without-license.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-packages-without-license.js","sourceRoot":"","sources":["../../src/lib/get-packages-without-license.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-packages-without-license.js","sourceRoot":"","sources":["../../src/lib/get-packages-without-license.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,MAAM,UAAU,yBAAyB,CAAC,OAAgB,EAAE,iBAA4B;IACtF,OAAO,OAAO,CAAC,sBAAsB,EAAE,CAAC,IAAI,CAAC,CAAC,YAAsB,EAAE,EAAE;QAGtE,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,EAAU,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAExE,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/lib/get-packed.d.ts
CHANGED
package/dist/lib/get-packed.js
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const tar_1 = tslib_1.__importDefault(require("tar"));
|
|
9
|
-
function getPacked(pkg, tarFilePath) {
|
|
10
|
-
const bundledWanted = new Set(/* pkg.bundleDependencies || pkg.bundledDependencies || */ []);
|
|
1
|
+
import { createReadStream } from 'node:fs';
|
|
2
|
+
import { stat } from 'fs/promises';
|
|
3
|
+
import { basename } from 'node:path';
|
|
4
|
+
import ssri from 'ssri';
|
|
5
|
+
import tar from 'tar';
|
|
6
|
+
export function getPacked(pkg, tarFilePath) {
|
|
7
|
+
const bundledWanted = new Set([]);
|
|
11
8
|
const bundled = new Set();
|
|
12
9
|
const files = [];
|
|
13
10
|
let totalEntries = 0;
|
|
14
11
|
let totalEntrySize = 0;
|
|
15
|
-
return
|
|
12
|
+
return tar
|
|
16
13
|
.list({
|
|
17
14
|
file: tarFilePath,
|
|
18
15
|
onentry(entry) {
|
|
19
16
|
totalEntries += 1;
|
|
20
17
|
totalEntrySize += entry.size;
|
|
21
18
|
const p = entry.path;
|
|
22
|
-
/* istanbul ignore if */
|
|
23
19
|
if (p.startsWith('package/node_modules/')) {
|
|
24
20
|
const name = p.match(/^package\/node_modules\/((?:@[^/]+\/)?[^/]+)/)[1];
|
|
25
21
|
if (bundledWanted.has(name)) {
|
|
@@ -37,8 +33,8 @@ function getPacked(pkg, tarFilePath) {
|
|
|
37
33
|
strip: 1,
|
|
38
34
|
})
|
|
39
35
|
.then(() => Promise.all([
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
stat(tarFilePath),
|
|
37
|
+
ssri.fromStream(createReadStream(tarFilePath), {
|
|
42
38
|
algorithms: ['sha1', 'sha512'],
|
|
43
39
|
}),
|
|
44
40
|
]))
|
|
@@ -51,8 +47,8 @@ function getPacked(pkg, tarFilePath) {
|
|
|
51
47
|
size,
|
|
52
48
|
unpackedSize: totalEntrySize,
|
|
53
49
|
shasum,
|
|
54
|
-
integrity:
|
|
55
|
-
filename:
|
|
50
|
+
integrity: ssri.parse(sha512[0]),
|
|
51
|
+
filename: basename(tarFilePath),
|
|
56
52
|
files,
|
|
57
53
|
entryCount: totalEntries,
|
|
58
54
|
bundled: Array.from(bundled),
|
|
@@ -60,5 +56,4 @@ function getPacked(pkg, tarFilePath) {
|
|
|
60
56
|
};
|
|
61
57
|
});
|
|
62
58
|
}
|
|
63
|
-
exports.getPacked = getPacked;
|
|
64
59
|
//# sourceMappingURL=get-packed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-packed.js","sourceRoot":"","sources":["../../src/lib/get-packed.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-packed.js","sourceRoot":"","sources":["../../src/lib/get-packed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,KAAK,CAAC;AAKtB,MAAM,UAAU,SAAS,CAAC,GAAY,EAAE,WAAmB;IACzD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAoE,EAAE,CAAC,CAAC;IACrG,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,MAAM,KAAK,GAAmD,EAAE,CAAC;IAEjE,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,IAAI,cAAc,GAAG,CAAC,CAAC;IAEvB,OAAO,GAAG;SACP,IAAI,CAAC;QACJ,IAAI,EAAE,WAAW;QACjB,OAAO,CAAC,KAAK;YACX,YAAY,IAAI,CAAC,CAAC;YAClB,cAAc,IAAI,KAAK,CAAC,IAAI,CAAC;YAE7B,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC;YAGrB,IAAI,CAAC,CAAC,UAAU,CAAC,uBAAuB,CAAC,EAAE;gBACzC,MAAM,IAAI,GAAW,CAAC,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC,CAAC,CAAC,CAAC;gBAEhF,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC3B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;iBACnB;aACF;iBAAM;gBACL,KAAK,CAAC,IAAI,CAAC;oBACT,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC;oBAC1C,IAAI,EAAE,KAAK,CAAC,IAAI;oBAChB,IAAI,EAAE,KAAK,CAAC,IAAI;iBACjB,CAAC,CAAC;aACJ;QACH,CAAC;QACD,KAAK,EAAE,CAAC;KACT,CAAC;SACD,IAAI,CAAC,GAAG,EAAE,CACT,OAAO,CAAC,GAAG,CAAC;QACV,IAAI,CAAC,WAAW,CAAC;QACjB,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE;YAC7C,UAAU,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SAC/B,CAAC;KACH,CAAC,CACH;SACA,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;QAEnC,OAAO;YACL,EAAE,EAAE,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE;YAChC,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,IAAI;YACJ,YAAY,EAAE,cAAc;YAC5B,MAAM;YACN,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAChC,QAAQ,EAAE,QAAQ,CAAC,WAAW,CAAC;YAC/B,KAAK;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;YAC5B,WAAW;SACD,CAAC;IACf,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { FetchConfig, ProfileData } from '@lerna-lite/core';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve profile data of logged-in user.
|
|
4
|
-
* @param {import("./fetch-config").FetchConfig} opts
|
|
5
|
-
* @returns {Promise<ProfileData>}
|
|
6
|
-
*/
|
|
7
2
|
export declare function getProfileData(opts: FetchConfig): Promise<ProfileData>;
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const npm_registry_fetch_1 = tslib_1.__importDefault(require("npm-registry-fetch"));
|
|
6
|
-
const core_1 = require("@lerna-lite/core");
|
|
7
|
-
/**
|
|
8
|
-
* Retrieve profile data of logged-in user.
|
|
9
|
-
* @param {import("./fetch-config").FetchConfig} opts
|
|
10
|
-
* @returns {Promise<ProfileData>}
|
|
11
|
-
*/
|
|
12
|
-
async function getProfileData(opts) {
|
|
1
|
+
import fetch from 'npm-registry-fetch';
|
|
2
|
+
import { pulseTillDone } from '@lerna-lite/core';
|
|
3
|
+
export async function getProfileData(opts) {
|
|
13
4
|
opts.log.verbose('', 'Retrieving npm user profile');
|
|
14
|
-
const data = await
|
|
5
|
+
const data = await pulseTillDone(await fetch.json('/-/npm/v1/user', opts));
|
|
15
6
|
opts.log.silly('npm profile get', 'received %j', data);
|
|
16
|
-
return Object.assign(
|
|
17
|
-
// remap to match legacy whoami format
|
|
18
|
-
{ username: data.name }, data);
|
|
7
|
+
return Object.assign({ username: data.name }, data);
|
|
19
8
|
}
|
|
20
|
-
exports.getProfileData = getProfileData;
|
|
21
9
|
//# sourceMappingURL=get-profile-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-profile-data.js","sourceRoot":"","sources":["../../src/lib/get-profile-data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-profile-data.js","sourceRoot":"","sources":["../../src/lib/get-profile-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,oBAAoB,CAAC;AAEvC,OAAO,EAA4B,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAO3E,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAiB;IACpD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,6BAA6B,CAAC,CAAC;IAEpD,MAAM,IAAI,GAAgB,MAAM,aAAa,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC,CAAC;IACxF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,iBAAiB,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;IAEvD,OAAO,MAAM,CAAC,MAAM,CAElB,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,EACvB,IAAI,CACU,CAAC;AACnB,CAAC"}
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
import { ExecOpts, PackageGraph } from '@lerna-lite/core';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve a list of graph nodes for packages that were tagged in a non-independent release.
|
|
4
|
-
* @param {import("@lerna/package-graph").PackageGraph} packageGraph
|
|
5
|
-
* @param {string} rootPath
|
|
6
|
-
* @param {import("@lerna/child-process").ExecOpts} execOpts
|
|
7
|
-
* @returns {Promise<import("@lerna/package-graph").PackageGraphNode[]>}
|
|
8
|
-
*/
|
|
9
2
|
export declare function getTaggedPackages(packageGraph: PackageGraph, rootPath: string, execOpts: ExecOpts, dryRun?: boolean): Promise<import("@lerna-lite/core").PackageGraphNode[]>;
|