@pnpm/config.commands 1101.0.4 → 1101.0.6
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 +23 -0
- package/lib/configSet.js +1 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @pnpm/plugin-commands-config
|
|
2
2
|
|
|
3
|
+
## 1101.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- pnpm now treats a missing global `config.yaml`, `auth.ini`, or other optional config file as absent in Node.js-compatible runtimes such as StackBlitz WebContainers. Commands such as `pnpm --version` failed there with `ENOENT` [#14030](https://github.com/pnpm/pnpm/issues/14030).
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @pnpm/cli.utils@1101.0.29
|
|
11
|
+
- @pnpm/config.normalize-registries@1101.0.2
|
|
12
|
+
- @pnpm/config.reader@1102.3.0
|
|
13
|
+
- @pnpm/error@1100.2.0
|
|
14
|
+
- @pnpm/object.property-path@1100.1.7
|
|
15
|
+
- @pnpm/workspace.workspace-manifest-writer@1100.2.2
|
|
16
|
+
|
|
17
|
+
## 1101.0.5
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies:
|
|
22
|
+
- @pnpm/cli.utils@1101.0.28
|
|
23
|
+
- @pnpm/config.reader@1102.2.1
|
|
24
|
+
- @pnpm/workspace.workspace-manifest-writer@1100.2.1
|
|
25
|
+
|
|
3
26
|
## 1101.0.4
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/lib/configSet.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import util from 'node:util';
|
|
3
2
|
import { isConfigFileKey, isIniConfigKey, isProjectManifestSkippedKey, types, whereRefusedKeyBelongs } from '@pnpm/config.reader';
|
|
4
3
|
import { GLOBAL_CONFIG_YAML_FILENAME, WORKSPACE_MANIFEST_FILENAME } from '@pnpm/constants';
|
|
5
4
|
import { PnpmError } from '@pnpm/error';
|
|
@@ -226,7 +225,7 @@ async function safeReadIniFile(configPath) {
|
|
|
226
225
|
return await readIniFile(configPath);
|
|
227
226
|
}
|
|
228
227
|
catch (err) {
|
|
229
|
-
if (
|
|
228
|
+
if (err != null && typeof err === 'object' && 'code' in err && err.code === 'ENOENT')
|
|
230
229
|
return {};
|
|
231
230
|
throw err;
|
|
232
231
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/config.commands",
|
|
3
|
-
"version": "1101.0.
|
|
3
|
+
"version": "1101.0.6",
|
|
4
4
|
"description": "Commands for reading and writing settings to/from config files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"!*.map"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pnpm/cli.utils": "1101.0.
|
|
32
|
-
"@pnpm/config.normalize-registries": "1101.0.
|
|
33
|
-
"@pnpm/config.reader": "1102.
|
|
31
|
+
"@pnpm/cli.utils": "1101.0.29",
|
|
32
|
+
"@pnpm/config.normalize-registries": "1101.0.2",
|
|
33
|
+
"@pnpm/config.reader": "1102.3.0",
|
|
34
34
|
"@pnpm/constants": "1102.0.0",
|
|
35
|
-
"@pnpm/error": "1100.
|
|
35
|
+
"@pnpm/error": "1100.2.0",
|
|
36
36
|
"@pnpm/object.key-sorting": "1100.0.2",
|
|
37
|
-
"@pnpm/object.property-path": "1100.1.
|
|
37
|
+
"@pnpm/object.property-path": "1100.1.7",
|
|
38
38
|
"@pnpm/text.naming-cases": "1100.0.2",
|
|
39
|
-
"@pnpm/workspace.workspace-manifest-writer": "1100.2.
|
|
39
|
+
"@pnpm/workspace.workspace-manifest-writer": "1100.2.2",
|
|
40
40
|
"camelcase": "^9.0.0",
|
|
41
41
|
"ini": "6.0.0",
|
|
42
42
|
"lodash.kebabcase": "^4.1.1",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@jest/globals": "30.4.1",
|
|
53
|
-
"@pnpm/config.commands": "1101.0.
|
|
53
|
+
"@pnpm/config.commands": "1101.0.6",
|
|
54
54
|
"@pnpm/logger": "1100.0.0",
|
|
55
|
-
"@pnpm/prepare": "1100.0.
|
|
55
|
+
"@pnpm/prepare": "1100.0.32",
|
|
56
56
|
"@types/ini": "4.1.1",
|
|
57
57
|
"@types/lodash.kebabcase": "4.1.9",
|
|
58
58
|
"read-yaml-file": "^3.0.0"
|