| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c23ce06 commit 94f8ee8
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,17 @@ | |||
| 1 | 1 | # Changelog | |
| 2 | 2 | ||
| 3 | + ## [0.24.1](https://github.com/nodejs/corepack/compare/v0.24.0...v0.24.1) (2024-01-13) | ||
| 4 | + | ||
| 5 | + | ||
| 6 | + ### Features | ||
| 7 | + | ||
| 8 | + * update package manager versions ([#348](https://github.com/nodejs/corepack/issues/348)) ([cc3ada7](https://github.com/nodejs/corepack/commit/cc3ada73bccd0a5b0ff16834e518efa521c9eea4)) | ||
| 9 | + | ||
| 10 | + | ||
| 11 | + ### Bug Fixes | ||
| 12 | + | ||
| 13 | + * **use:** create `package.json` when calling `corepack use` on empty dir ([#350](https://github.com/nodejs/corepack/issues/350)) ([2950a8a](https://github.com/nodejs/corepack/commit/2950a8a30b64b4598abc354e45400e83d56e541b)) | ||
| 14 | + | ||
| 3 | 15 | ## [0.24.0](https://github.com/nodejs/corepack/compare/v0.23.0...v0.24.0) (2023-12-29) | |
| 4 | 16 | ||
| 5 | 17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41952,7 +41952,7 @@ function String2(descriptor, ...args) { | |||
| 41952 | 41952 | } | |
| 41953 | 41953 | ||
| 41954 | 41954 | // package.json | |
| 41955 | - var version = "0.24.0"; | ||
| 41955 | + var version = "0.24.1"; | ||
| 41956 | 41956 | ||
| 41957 | 41957 | // sources/Engine.ts | |
| 41958 | 41958 | var import_fs3 = __toESM(require("fs")); | |
@@ -41964,7 +41964,7 @@ var import_semver3 = __toESM(require_semver2()); | |||
| 41964 | 41964 | var config_default = { | |
| 41965 | 41965 | definitions: { | |
| 41966 | 41966 | npm: { | |
| 41967 | - default: "10.2.5+sha1.ef86b9aafd9965e60814ed11a3d4fb00a4e3b006", | ||
| 41967 | + default: "10.3.0+sha1.554e1f13e4c09d581ad27cdc4a92f085ab74ce1a", | ||
| 41968 | 41968 | fetchLatestFrom: { | |
| 41969 | 41969 | type: "npm", | |
| 41970 | 41970 | package: "npm" | |
@@ -42001,7 +42001,7 @@ var config_default = { | |||
| 42001 | 42001 | } | |
| 42002 | 42002 | }, | |
| 42003 | 42003 | pnpm: { | |
| 42004 | - default: "8.13.1+sha1.90f9b2bb3ed58632bcb7b13c3902d6873ee9501c", | ||
| 42004 | + default: "8.14.1+sha1.d039b38e0b20ad012ed548e44267b8d4c88b447a", | ||
| 42005 | 42005 | fetchLatestFrom: { | |
| 42006 | 42006 | type: "npm", | |
| 42007 | 42007 | package: "pnpm" | |
@@ -42829,9 +42829,14 @@ async function loadSpec(initialCwd) { | |||
| 42829 | 42829 | if (nodeModulesRegExp.test(currCwd)) | |
| 42830 | 42830 | continue; | |
| 42831 | 42831 | const manifestPath = import_path6.default.join(currCwd, `package.json`); | |
| 42832 | - if (!import_fs6.default.existsSync(manifestPath)) | ||
| 42833 | - continue; | ||
| 42834 | - const content = await import_fs6.default.promises.readFile(manifestPath, `utf8`); | ||
| 42832 | + let content; | ||
| 42833 | + try { | ||
| 42834 | + content = await import_fs6.default.promises.readFile(manifestPath, `utf8`); | ||
| 42835 | + } catch (err) { | ||
| 42836 | + if (err?.code === `ENOENT`) | ||
| 42837 | + continue; | ||
| 42838 | + throw err; | ||
| 42839 | + } | ||
| 42835 | 42840 | let data; | |
| 42836 | 42841 | try { | |
| 42837 | 42842 | data = JSON.parse(content); | |
@@ -42916,7 +42921,7 @@ var BaseCommand = class extends Command { | |||
| 42916 | 42921 | } | |
| 42917 | 42922 | async setLocalPackageManager(info) { | |
| 42918 | 42923 | const lookup = await loadSpec(this.context.cwd); | |
| 42919 | - const content = lookup.target !== `NoProject` ? await import_fs7.default.promises.readFile(lookup.target, `utf8`) : ``; | ||
| 42924 | + const content = lookup.type !== `NoProject` ? await import_fs7.default.promises.readFile(lookup.target, `utf8`) : ``; | ||
| 42920 | 42925 | const { data, indent } = readPackageJson(content); | |
| 42921 | 42926 | const previousPackageManager = data.packageManager ?? `unknown`; | |
| 42922 | 42927 | data.packageManager = `${info.locator.name}@${info.locator.reference}+${info.hash}`; | |
@@ -43195,7 +43200,7 @@ var UseCommand = class extends BaseCommand { | |||
| 43195 | 43200 | `, | |
| 43196 | 43201 | examples: [[ | |
| 43197 | 43202 | `Configure the project to use the latest Yarn release`, | |
| 43198 | - `corepack use 'yarn@*'` | ||
| 43203 | + `corepack use yarn` | ||
| 43199 | 43204 | ]] | |
| 43200 | 43205 | }); | |
| 43201 | 43206 | pattern = options_exports.String(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "corepack", | |
| 3 | - "version": "0.24.0", | ||
| 3 | + "version": "0.24.1", | ||
| 4 | 4 | "homepage": "https://github.com/nodejs/corepack#readme", | |
| 5 | 5 | "bugs": { | |
| 6 | 6 | "url": "https://github.com/nodejs/corepack/issues" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments