From 94b4c4bb7fbccc13da5492d727c6e02b4e7c8eac Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 17 May 2023 07:59:34 +0100 Subject: [PATCH 1/4] fix: add tsconfig to exports map (#1278) TypeScript used to be able to resolve the extends field in `tsconfig.json` using the node require algorithm. Recent versions of TypeScript have a regression that means that if a module has an exports map, the extendable typescript config file has to be in that exports map so add it here. Refs: https://github.com/microsoft/TypeScript/issues/53314 --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index ac3617a58..ab2b0e6af 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,9 @@ "types": "./dist/utils/resolve.d.ts", "browser": "./utils/resolve.browser.js", "import": "./utils/resolve.js" + }, + "./src/config/tsconfig.aegir.json": { + "require": "./src/config/tsconfig.aegir.json" } }, "eslintConfig": { From 20069fcc2fb830e4a26eae816ef270c3239313aa Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 17 May 2023 07:08:51 +0000 Subject: [PATCH 2/4] chore(release): 39.0.7 [skip ci] ## [39.0.7](https://github.com/ipfs/aegir/compare/v39.0.6...v39.0.7) (2023-05-17) ### Bug Fixes * add tsconfig to exports map ([#1278](https://github.com/ipfs/aegir/issues/1278)) ([94b4c4b](https://github.com/ipfs/aegir/commit/94b4c4bb7fbccc13da5492d727c6e02b4e7c8eac)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40235a66b..9e87ad04c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [39.0.7](https://github.com/ipfs/aegir/compare/v39.0.6...v39.0.7) (2023-05-17) + + +### Bug Fixes + +* add tsconfig to exports map ([#1278](https://github.com/ipfs/aegir/issues/1278)) ([94b4c4b](https://github.com/ipfs/aegir/commit/94b4c4bb7fbccc13da5492d727c6e02b4e7c8eac)) + ## [39.0.6](https://github.com/ipfs/aegir/compare/v39.0.5...v39.0.6) (2023-05-09) diff --git a/package.json b/package.json index ab2b0e6af..4f9114cd3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aegir", - "version": "39.0.6", + "version": "39.0.7", "description": "JavaScript project management", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/aegir#readme", From 5e9c2fa44508ffbc5cf89042d44dc22c13b260d2 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Fri, 19 May 2023 13:10:24 +0100 Subject: [PATCH 3/4] fix: do not enforce engines in package.json (#1277) The engines field causes warnings on npm but errors on yarn when the required node version is not met. Not all of our modules require LTS node and they are used by projects outside of libp2p/helia/etc. This change removes the automatic addition of an engines field to a project's `package.json` while running the `check-project` command, instead projects that do require a certain node version are free to define it and deal with the breakage that subsequently occurs. Partial revert of: #1184 Refs: https://github.com/ipfs/aegir/issues/1276 --- src/check-project/utils.js | 4 ---- src/config/.npmpackagejsonlintrc.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/check-project/utils.js b/src/check-project/utils.js index 8c1944bc8..3efa619de 100644 --- a/src/check-project/utils.js +++ b/src/check-project/utils.js @@ -248,10 +248,6 @@ export function constructManifest (manifest, manifestFields, repoUrl, homePage = url: `${repoUrl}/issues` }, keywords: manifest.keywords ? manifest.keywords.sort() : undefined, - engines: { - node: '>=18.0.0', - npm: '>=8.6.0' - }, bin: manifest.bin, ...manifestFields, scripts: manifest.scripts, diff --git a/src/config/.npmpackagejsonlintrc.json b/src/config/.npmpackagejsonlintrc.json index 3e3cf1d7c..0a3756afe 100644 --- a/src/config/.npmpackagejsonlintrc.json +++ b/src/config/.npmpackagejsonlintrc.json @@ -11,7 +11,7 @@ "require-description": "error", "require-devDependencies": "off", "require-directories": "off", - "require-engines": "error", + "require-engines": "off", "require-files": "error", "require-funding": "off", "require-homepage": "error" , From fe1e1216bb212a285d82b4642cc8d8a3cbc383ed Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 19 May 2023 12:20:50 +0000 Subject: [PATCH 4/4] chore(release): 39.0.8 [skip ci] ## [39.0.8](https://github.com/ipfs/aegir/compare/v39.0.7...v39.0.8) (2023-05-19) ### Bug Fixes * do not enforce engines in package.json ([#1277](https://github.com/ipfs/aegir/issues/1277)) ([5e9c2fa](https://github.com/ipfs/aegir/commit/5e9c2fa44508ffbc5cf89042d44dc22c13b260d2)), closes [#1184](https://github.com/ipfs/aegir/issues/1184) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e87ad04c..3d6f07982 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [39.0.8](https://github.com/ipfs/aegir/compare/v39.0.7...v39.0.8) (2023-05-19) + + +### Bug Fixes + +* do not enforce engines in package.json ([#1277](https://github.com/ipfs/aegir/issues/1277)) ([5e9c2fa](https://github.com/ipfs/aegir/commit/5e9c2fa44508ffbc5cf89042d44dc22c13b260d2)), closes [#1184](https://github.com/ipfs/aegir/issues/1184) + ## [39.0.7](https://github.com/ipfs/aegir/compare/v39.0.6...v39.0.7) (2023-05-17) diff --git a/package.json b/package.json index 4f9114cd3..6a06c4714 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aegir", - "version": "39.0.7", + "version": "39.0.8", "description": "JavaScript project management", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/ipfs/aegir#readme",