@pnpm/core-loggers 1100.2.5 → 1100.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/lib/all.d.ts +1 -0
- package/lib/all.js +1 -0
- package/lib/reportPackageImported.d.ts +15 -0
- package/lib/reportPackageImported.js +27 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @pnpm/core-loggers
|
|
2
2
|
|
|
3
|
+
## 1100.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Restored the store block a first install prints, naming how packages were materialized and where the stores live [#13315](https://github.com/pnpm/pnpm/issues/13315):
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
Packages are hard linked from the content-addressable store to the virtual store.
|
|
11
|
+
Content-addressable store is at: ~/.local/share/pnpm/store/v11
|
|
12
|
+
Virtual store is at: node_modules/.pnpm
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies:
|
|
18
|
+
- @pnpm/types@1101.7.0
|
|
19
|
+
|
|
3
20
|
## 1100.2.5
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/lib/all.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './progressLogger.js';
|
|
|
16
16
|
export * from './promptLogger.js';
|
|
17
17
|
export * from './registryLogger.js';
|
|
18
18
|
export * from './removalLogger.js';
|
|
19
|
+
export * from './reportPackageImported.js';
|
|
19
20
|
export * from './requestRetryLogger.js';
|
|
20
21
|
export * from './rootLogger.js';
|
|
21
22
|
export * from './scopeLogger.js';
|
package/lib/all.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from './progressLogger.js';
|
|
|
16
16
|
export * from './promptLogger.js';
|
|
17
17
|
export * from './registryLogger.js';
|
|
18
18
|
export * from './removalLogger.js';
|
|
19
|
+
export * from './reportPackageImported.js';
|
|
19
20
|
export * from './requestRetryLogger.js';
|
|
20
21
|
export * from './rootLogger.js';
|
|
21
22
|
export * from './scopeLogger.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Report one package materialized from the content-addressable store into
|
|
3
|
+
* the virtual store.
|
|
4
|
+
*
|
|
5
|
+
* The import itself runs in a `@pnpm/worker` thread, whose loggers are not
|
|
6
|
+
* connected to the reporter, so both channels are emitted here — in the main
|
|
7
|
+
* process — from the method the worker reported back. `pnpm:progress` drives
|
|
8
|
+
* the "imported" counter; `pnpm:package-import-method` tells the reporter
|
|
9
|
+
* which wording to use for the store block it prints on a first install.
|
|
10
|
+
*/
|
|
11
|
+
export declare function reportPackageImported(opts: {
|
|
12
|
+
method: string;
|
|
13
|
+
requester: string;
|
|
14
|
+
to: string;
|
|
15
|
+
}): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { packageImportMethodLogger } from './packageImportMethodLogger.js';
|
|
2
|
+
import { progressLogger } from './progressLogger.js';
|
|
3
|
+
/**
|
|
4
|
+
* Report one package materialized from the content-addressable store into
|
|
5
|
+
* the virtual store.
|
|
6
|
+
*
|
|
7
|
+
* The import itself runs in a `@pnpm/worker` thread, whose loggers are not
|
|
8
|
+
* connected to the reporter, so both channels are emitted here — in the main
|
|
9
|
+
* process — from the method the worker reported back. `pnpm:progress` drives
|
|
10
|
+
* the "imported" counter; `pnpm:package-import-method` tells the reporter
|
|
11
|
+
* which wording to use for the store block it prints on a first install.
|
|
12
|
+
*/
|
|
13
|
+
export function reportPackageImported(opts) {
|
|
14
|
+
progressLogger.debug({
|
|
15
|
+
method: opts.method,
|
|
16
|
+
requester: opts.requester,
|
|
17
|
+
status: 'imported',
|
|
18
|
+
to: opts.to,
|
|
19
|
+
});
|
|
20
|
+
if (isKnownImportMethod(opts.method)) {
|
|
21
|
+
packageImportMethodLogger.debug({ method: opts.method });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function isKnownImportMethod(method) {
|
|
25
|
+
return method === 'clone' || method === 'hardlink' || method === 'copy';
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=reportPackageImported.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/core-loggers",
|
|
3
|
-
"version": "1100.
|
|
3
|
+
"version": "1100.3.0",
|
|
4
4
|
"description": "Core loggers of pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"test": "test"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@pnpm/types": "1101.
|
|
33
|
+
"@pnpm/types": "1101.7.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@pnpm/logger": "^1100.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@pnpm/core-loggers": "1100.
|
|
39
|
+
"@pnpm/core-loggers": "1100.3.0",
|
|
40
40
|
"@pnpm/logger": "1100.0.0"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|